I use vim and I mapped CapsLock to Escape. Recently I decided to switch from qwerty keyboard to Colemak keyboard layout. Colemak maps CapsLock to Backspace. How can I map CapsLock to Escape back? In Linux Mint (what I use) it is possible to change setting to define CapsLock behaviour. It works when I use qwerty, but it breaks when I switch to Colemak.
Also I tried xcape. After installing it, I added the following lines to my .profile:
setxkbmap -option 'caps:ctrl_modifier'
xcape -e 'Caps_Lock=Escape'
However, it does not map CapsLock to Escape back. Any suggestions?
xmodmap -pke | grep 'keycode 37'
? – Alex Stragies Nov 26 '16 at 23:54<CAPS>
in the layout; see/usr/share/X11/xkb/symbols/us
. – quixotic Dec 19 '17 at 18:21