by clircle · 8y ago · 0 comments
setxkbmap -option 'caps:escape'
setxkbmap -option 'ctrl:swap_lalt_lctl'
This works well for me and would probably work even better if my keyboard had big alt keys.Edit, as another user said, everyone should probably be using sticky keys. On linux I run
xkbset sticky -twokey -latchlock
on login with Xorg. Sorry, not sure how to do this under Wayland.> For Emacs users, common wisdom is to swap control and caps.
This is terrible advice and it causes so much unnecessary pain.
- The pinkie is the weakest finger.
- Stretching sideways is a terrible movement. Try it several times and compare it to moving a finger up, or curling the thumb. Stretching sideways should be reserved for infrequent actions -- hitting a modifier key is much too frequent for Emacs users.
- You should have modifier keys on BOTH sides of the keyboard. Using Emacs with just one Ctrl key is just... awkward. There are so many common keybindings (like C-x C-c) that are difficult with this scheme. With Ctrl to the left and right of the keyboard, however, I can just curl my right thumb a bit and then press x and c.
If you have RSI, maybe one of your hands is overworked (i.e. you only use Shift with one hand). Big opportunity for improvement there. Unfortunately not all modern keyboards have modifier keys on both sides of the keyboard, so you definitely have to watch out for this when e.g. buying a laptop.
With the key system you suggest, Emacs bindings are even better even than Vi modal editing, in my opinion. Pressing/lifting a thumb is much easier than changing editing modes.
setxkbmap -option 'ctrl:nocaps'
As far as sticky keys go, I'm going to pass. That's a modal change that I don't want interrupting me.As far as Wayland goes, keyboard layouts are handled by the compositor (window manager), and have to be supported and configured by each compositor. That's probably the main design flaw that has been keeping me away from Wayland.