3 ms·
You don't need any extra software to map Caps to Esc on X11: Just enable the caps:escape option. In context: https://github.com/majewsky/system-configuration/b
by majewsky 7y ago
You don't need any extra software to map Caps to Esc on X11: Just enable the caps:escape option.
In context: https://github.com/majewsky/system-configuration/blob/6c4478bfdbb61f6bdb4c523286b6e85b291807d5/hologram-base-gui-minimal.pkg.toml#L48 https://github.com/majewsky/system-configuration/blob/6c4478...
- dijit 7y agoYeah. That’s cool, but I’m talking about conditional context switching. ESC if pressed once. CTRL it pressed with another key.
- davefp 7y agoThis is the sort of thing I'd want to modify the keyboard firmware for. QMK has explicit support for this kind of thing, for example: https://docs.qmk.fm/#/feature_advanced_keycodes?id=mod-tap https://docs.qmk.fm/#/feature_advanced_keycodes?id=mod-tap
- silasdb 7y agoYou can also use xmodmap [1]. My xmodmap file has things like: ! Make Caps Lock be Escape and Scroll Lock be Caps Lock remove Lock = Caps_Lock keysym Caps_Lock = Escape remove Lock = Scroll_Lock keysym Scroll_Lock = Caps_Lock add Lock = Caps_Lock After reading this post, I also reverted backspace and bar/backslash: keysym BackSpace = backslash bar keysym backslash = BackSpace [1] https://wiki.archlinux.org/index.php/Xmodmap https://wiki.archlinux.org/index.php/Xmodmap EDIT: xmodmap link
- majewsky 7y agoXKB options have the advantage of also being understood by Wayland compositors.