Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Activity for mcp‭

Type On... Excerpt Status Date
Edit Post #290577 Post edited:
Polish and add working command
2 months ago
Edit Post #290577 Initial revision 2 months ago
Question How to find product and vendor names for xorg.conf
Problem How do I find product and vendor names for use with a xorg.conf file? Neither the `xorg.conf` nor the `xinput` manuals specify how to do this. `xinput` lists info, but the output lacks column headers and the manual doesn't specify. Have ```txt /etc/X11/xorg.conf.d/00-keyboard....
(more)
2 months ago
Comment Post #290170 Since this received no activity up to this point, I decided to duplicate it in a more specialized forum. You can track the progress [here](https://bbs.archlinux.org/viewtopic.php?id=291723).
(more)
3 months ago
Edit Post #290170 Post edited:
Add ampersand in .xinitrc line
5 months ago
Edit Post #290170 Initial revision 5 months ago
Question How to prevent keyboard layout modifications from affecting external keyboards
Using For the console: ```txt /etc/vconsole.conf KEYMAP=dvorak ``` For X Session: ```txt .xinitrc setxkbmap -layout us -variant dvorak & ``` Problem For the console, it applies the dvorak layout to a firmware dvorak keyboard, messing up the input. When starting the X Sess...
(more)
5 months ago
Edit Post #287821 Post edited:
Revert header
6 months ago
Comment Post #289874 Actually the 'printf` is useful for larger datasets where `ls` starts grouping by directory and excluding the full path.
(more)
6 months ago
Edit Post #289873 Post edited:
Add desired output
6 months ago
Comment Post #289874 This solution works and led me to a slightly simpler solution in the threads below.
(more)
6 months ago
Comment Post #289874 `find l1 -mindepth 2 -maxdepth 2 -exec sh -c "ls '{}'/* | head -n 3" \;` also works! Thanks for pointing me in the right direction.
(more)
6 months ago
Comment Post #289874 How is this sorting the output properly? It returns the first three alphabetically, but how?
(more)
6 months ago
Comment Post #289874 I was struggling with piping in an `-exec` call. Where did you read about passing `sh -c ""`? I did not find that in the `find` manual.
(more)
6 months ago
Comment Post #289874 This works, thank you! I did not need `\! -empty`. I was thinking there might be a way without `printf` using `execdir`.
(more)
6 months ago
Edit Post #289873 Post edited:
Add intention
6 months ago
Edit Post #289873 Initial revision 6 months ago
Question How to list the first x files in each directory
MWE With the following tree: ```txt l1 └── l2 ├── d0 │   ├── f0 │   ├── f1 │   ├── f2 │   ├── f3 │   ├── f4 │   └── f5 ├── d1 │   ├── f0 │   ├── f1 │   ├── f2 │   ├── f3 │   ├── f4 │   └── f5 ├── d2 │   ├── f0 ...
(more)
6 months ago
Edit Post #289603 Post edited:
Re-format
7 months ago
Edit Post #289603 Initial revision 7 months ago
Question Documentation for double asterisk glob expansion
Where can I find documentation on double asterisk in glob expansion? 1. It is discussed in the .gitignore section of Pro Git. 2. It works in `ls /` to list all terminal files. 3. It is supported by python's glob library. Despite this, I cannot find mention of it in the glob man pages.
(more)
7 months ago
Edit Post #287947 Post edited:
Add MWE
9 months ago
Edit Post #288009 Initial revision 12 months ago
Question Storage usage by media type
Question How can I view storage usage breakdown by media type? MWE Android example Notes Commandline would be great, but open to anything.
(more)
12 months ago
Edit Post #287947 Initial revision about 1 year ago
Question Copy to clipboard from terminal with Vim bindings
Question How do I copy to clipboard from terminal with `yy`, assuming it's configured to use Vim bindings? I am using zsh with `bindkey -v`. MWE 1. Enter something on the commandline (without pressing enter): `$ uptime`. 2. Enter visual mode: `ESC`. 3. Yank: `yy`. This successfully ...
(more)
about 1 year ago
Comment Post #287922 I noticed a change to make, pushed, and it's gone now, but should be in the post history.
(more)
about 1 year ago
Edit Post #287922 Post edited:
Add file path
about 1 year ago
Comment Post #287922 I can likely push with space then push a change removing to fix, but I post this here because I think it's a UI bug.
(more)
about 1 year ago
Comment Post #287922 I typed this up in a text editor, with the title up top, pasted here, then dragged the title to the title text box with a mouse. In the text box it shows as completely gone. When I posted it re-appeared. I tried adding space and what not then deleting to see, but when I push the edit it's dropped bec...
(more)
about 1 year ago
Edit Post #287922 Initial revision about 1 year ago
Question How to persist keyboard repeat rate and delay for external devices
Problem I want to set a global keyboard rate for both the X session and the console that persists for external keyboards, across plug-ins and removals. To my understanding, Xorg and console settings have to be configured independently. Ideally, I'd like to disable repeat rate entirely, which ...
(more)
about 1 year ago
Suggested Edit Post #287882 Suggested edit:
Wrap in code block
(more)
helpful about 1 year ago
Comment Post #287863 This is not a bad idea to do a wrapper that converts `--size` to percent, but `convert does not use proper unix option conventions and does not fulfill both size and percent on its own.
(more)
about 1 year ago
Edit Post #287862 Post edited:
Add comma
about 1 year ago
Edit Post #287822 Post edited:
Add headers
about 1 year ago
Edit Post #287860 Post edited:
Add headers
about 1 year ago
Edit Post #287860 Post edited:
Remove typo
about 1 year ago
Edit Post #287862 Initial revision about 1 year ago
Question How to decrease image size from commandline
Problem I'd like to be able to decrease images, particularly jpg and png's, either to a percentage of the original file, or a specified size in bytes. MWE ```sh decrease --size=900KB -o imagesmall.png image.png decrease --size=90% -o imagesmall.png image.png ``` Notes It can be two sepa...
(more)
about 1 year ago
Edit Post #287860 Post edited:
Expand on example
about 1 year ago
Edit Post #287860 Post edited:
Add example
about 1 year ago
Edit Post #287860 Initial revision about 1 year ago
Question Treat underscores as word boundaries in terminal using vim mode
Question How do you specify underscores as Vim word boundaries when using vim mode in either bash or zsh? MWE `w` on `thisword` should place the cursor on the underscore. A second `w` should place the cursor on the 'w' of "word".
(more)
about 1 year ago
Comment Post #287822 The length of the solution makes me think there is a better way. Especially when considering how short the bash solution is that you linked in the other question: ```sh # See https://stackoverflow.com/a/48449104. set editing-mode vi set show-mode-in-prompt on set vi-cmd-mode-string "\1\e[2 q\2" ...
(more)
about 1 year ago
Comment Post #287835 Outstanding! Thanks!
(more)
about 1 year ago
Edit Post #287822 Post edited:
Specify cursor shapes
about 1 year ago
Edit Post #287821 Post edited:
Add vim tag
about 1 year ago
Edit Post #287822 Initial revision about 1 year ago
Question Simplest way to change cursor to indicate vim mode
Question What is the simplest way to change the cursor to indicate vim mode when using zsh? Notes I want it to show as a vertical line in insert mode and a block in normal mode. This is the current code I am using: ```sh change cursor shape for different vi modes cursormode() { # See ...
(more)
about 1 year ago