I am a vim user and I use Esc frequently so I mapped Caps Lock to Esc.
I currently have this in my
# 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).