Sample Header Ad - 728x90

How to permanently swap esc and caps lock in xfce / xubuntu?

25 votes
9 answers
32182 views
I followed some post a while ago, and it said to make an ~/.xmodmap file like so: ! Swap caps lock and escape remove Lock = Caps_Lock keysym Escape = Caps_Lock keysym Caps_Lock = Escape add Lock = Caps_Lock I did, and it now I can swap esc and caps lock by doing xmodmap ~/.xmodmap. I wanted this to be permanent, so I added that command to my ~/.bash_profile, but it doesn't seem to work; I still have to manually xmodmap. As an EEng dropout, I am tempted to just rewire my keyboard }:-) but I know there must be a better way. How can I make this work, permanently?
Asked by Dan Ross (655 rep)
Mar 4, 2013, 05:45 AM
Last activity: Sep 16, 2023, 01:29 PM