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
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)
3 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)
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)
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)
8 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)
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
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
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
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
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
Question Vim key bindings not working in terminal python interpreter
MWE To reproduce: 1. Add `bindkey -v` to your `/.zshrc`. 2. Invoke python interpreter: `python`. 3. Type something into the prompt without hitting `ENTER`: `this = "this" + "that"`. 4. Press `ESC` and try any `vim` bindings successively: `bb`. Problem The behavior is not consistent. Some...
(more)
about 1 year ago
Question How to convert PDF to docx
How can I convert PDF to docx using the terminal or a Linux app? The output docx must be formatted with editable text. Some alternative solutions I've seen online using `soffice` and `abiword` output a docx with images of each paragraph.
(more)
over 1 year ago
Question How to append commands to startx from console
MWE ```sh startx && xrandr-invert-colors ``` Problem It seems that anything after `startx` does not get issued in the resulting X session. I'd like to make a bash function that sets up my monitors based on which office I'm working out of. Assuming the `-display` commands are `xrandr` commands...
(more)
over 1 year ago
Question What partition type should be used for cross-platform FAT partitions?
Question What partition type should I use for FAT partitions such that Linux and Windows systems both recognize the drive? Notes I am partitioning the drive with `fdisk` and making the filesystem with `mkfs.fat /dev/sdx`. Linux seems to recognize anything I throw at it. Microsoft is the problem....
(more)
over 1 year ago
Question How to reduce DPI of external monitor using xrandr
Have I have the DPI on my laptop set in `.Xresources` with `Xft.dpi: 192`. I am outputting to the external monitor with: ```sh xrandr --output HDMI-2 --auto --rotate left --right-of eDP-1 ``` Want I want to decrease the DPI of the external monitor. Because the screen is bigger, everything g...
(more)
over 1 year ago
Answer A: xrandr rotate not filling external monitor
This was fixed after restart. I believe this was caused by updating without restarting. It's possible it also had to do with disconnecting the HDMI cable.
(more)
over 1 year ago
Question xrandr rotate not filling external monitor
Problem I can rotate output, but it does not fill screen. Instead it rotates in place so that the right side of the screen goes off the monitor. ```sh xrandr --output HDMI-2 --auto --mode 1920x1080 --rotate left --same-as eDP-1 ``` Tried I've tried `1080x1920` but it errors as not a mode. ...
(more)
over 1 year ago
Question Running `bashcompinit` in zsh to enable use of bash completion specifications gives "command not found"
I'd like to use the answers in this post while using zsh: > ```sh > compgen -c # will list all the commands you could run. > compgen -a # will list all the aliases you could run. > compgen -b # will list all the built-ins you could run. > compgen -k # will list all the keywords you could run....
(more)
over 1 year ago
Question How to edit file from less
MWE ```sh touch d less d jump to editing d without leaving less ``` Question Is there a way to edit a file from viewing it in `less`? Jumping straight into Vim would be preferred, but an answer for emacs as well would be thorough.
(more)
almost 2 years ago
Question How to get number of files in directory
How do you find out the number of files in a directory from the command line?
(more)
almost 2 years ago
Question How to make vi-mode bindings in terminal copy to clipboard
If I want to yank my last command I can `UP` `yy`, but this does not copy to the system clipboard. How do I configure my terminal to copy to the system clipboard so I can paste into other programs? I am using zsh, but an answer for bash and zsh would be thorough and appreciated.
(more)
almost 2 years ago