I am a vim user and I use Esc frequently so I mapped Caps Lock to Esc.
I currently have this in my ~/.profile
:
# remap Esc to Caps Lock
xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape'
The problem is that every time I suspend my computer or even lock the screen, the mapping of Caps Lock goes back to its default.
My question is, where should I put this line so that the remap remains even after suspension and locking the screen (etc).
xkb
system is complex and saying that it is sparsely documented is an understatment... read the first quote here: http://www.charvolant.org/~doug/xkb/html/xkb.html – Rmano Oct 02 '15 at 17:05