Posts by mcp
How do you find out the number of files in a directory from the command line?
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 ...
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 Enter something on the commandline (without pressi...
Where can I find documentation on double asterisk in glob expansion? It is discussed in the .gitignore section of Pro Git. It works in ls **/* to list all terminal files. It is supported by py...
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...
Question How do you specify underscores as Vim word boundaries when using vim mode in either bash or zsh? MWE w on this_word should place the cursor on the underscore. A second w should place th...
Super+comma and Super+period were mapped as emoji annotations. Run ibus-setup, go to the emoji tab, delete the bindings. Thanks to this SO post.
Question How can I view storage usage breakdown by media type? MWE Notes Commandline would be great, but open to anything.
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 sett...
MWE 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 monito...
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? ...
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 decrease --size=900KB -o image_small....
Problem I have Super+. mapped to Switch to workspace on the right in gnome settings keyboard shortcuts. It works everywhere except when focus is on the terminal. There, it enters an e in the termi...
MWE To reproduce: Add bindkey -v to your ~/.zshrc. Invoke python interpreter: python. Type something into the prompt without hitting ENTER: this = "this" + "that". Press ESC and try any vim ...
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 cur...
Have I have the DPI on my laptop set in .Xresources with Xft.dpi: 192. I am outputting to the external monitor with: xrandr --output HDMI-2 --auto --rotate left --right-of eDP-1 Want I want ...
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.
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. xrandr --output HDMI-2 --auto --mode 1920x1080 --...
I'd like to use the answers in this post while using zsh: compgen -c # will list all the commands you could run. compgen -a # will list all the aliases you could run. compgen -b # will list a...
Using For the console: /etc/vconsole.conf ---- KEYMAP=dvorak For X Session: .xinitrc ---- setxkbmap -layout us -variant dvorak & Problem For the console, it applies the dvorak lay...
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 ...
This is an interesting discussion. I am late but want to give my take. I have definitely struggled with deciding where to post. I think that struggle is part of any organized community though. f~~...