3 ms·
In linux, if you want to make Capslock as both ESC and Ctrl, $ setxkboption -option -option 'ctrl:nocaps' $ xcape https://github.com/alols/xcape https
by mattengi 13y ago
In linux, if you want to make Capslock as both ESC and Ctrl,
$ setxkboption -option -option 'ctrl:nocaps'
$ xcape
https://github.com/alols/xcape https://github.com/alols/xcape
What is good for?
- Happy with vim
- Happy with emacs like - readline - keybinding. C-a, C-e, C-u, C-k, C-d, C-h, C-w, C-p, C-n, C-y ...
- Ctrl key is most used in any gui application.
You can abandon both bottomleft Ctrl and topleft Esc.
- StavrosK 13y agoHow does that work? Pressing it alone is escape, pressing it in combination with another key is Ctrl?
- mattengi 13y agoYes
- keenerd 13y agoIf you use Emacs, I've heard great things about used xkb to remap spacebar to control, and using xcape to make control generate a space when tapped. It sounds messy but now you'll get emacs thumb instead of emacs pinky.