4 ms·
You can make the Caps Lock key even more useful by turning it into a "Hyper" modifier (Command+Ctrl+Option+Shift) when it is held down (great for system-wide sh
by eddyg 9y ago
You can make the Caps Lock key even more useful by turning it into a "Hyper" modifier (Command+Ctrl+Option+Shift) when it is held down (great for system-wide shortcuts in Hammerspoon[0], since application shortcuts that use all four modifiers are very rare) but acts like pressing "Escape" when it is tapped.
This is easily done with Karabiner Elements[1] and a simple rule[2] you import and enable.
[0] http://www.hammerspoon.org http://www.hammerspoon.org
[1] https://github.com/tekezo/Karabiner-Elements https://github.com/tekezo/Karabiner-Elements
[2] https://pqrs.org/osx/karabiner/complex_modifications/#caps_lock https://pqrs.org/osx/karabiner/complex_modifications/#caps_l...
- mikenew 9y agoDo you happen to know how to do that on a linux machine running X? I'm afraid to dive back into the xkb rule hell-hole to figure it out myself.
- stonogo 9y agosetxkbmap -option 'caps:ctrl_modifier' handles part of it and xcape -e 'Caps_Lock=Escape' does the rest. xcape is in the ubuntu repos, for fedora there's a copr (dawid/xcape).
- mikenew 9y agoThanks, I'll check out xcape.
- rileyphone 9y agoTry xcape
- SpaceNugget 9y agoyou don't need xcape as others have suggested, setxkbmap -option caps:escape does it with just xkbmap.