> On 2018-05-21, at 19:38, Damo Brisbane <dhatche...@gmail.com> wrote:
> 
> Under X, xmodmap perhaps?

I use this to map caps lock to escape in my ~/.xprofile (which gets sourced 
somewhere in my ~/.bash_profile if DISPLAY is set):

xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape'

(Also it unsets caps lock if it was on.)

This way I don’t have to rely on my DE’s way of doing this. Any X client will 
have this set, even remote ones.

Andrew

Reply via email to