How to swap Escape and Caps Lock?
- by pexeer
I am using Archlinux. When I program , I like to swap the Escape and Caps Lock.
I know that gnome can do this job. But Gnome 3.6.2 in the Archlinux can not find this.
So i use the xmodmap and create a file : ~/.xmodmap
clear Lock
keysym Caps_Lock = Escape
keysym Escape = Caps_Lock
add Lock = Caps_Lock
when i run:
xmodmap ~/.xmodmap
it works well.
But it can not work automatic when i login the gnome, even though i add xmodmap ~/.xmodmap to ~/.xprofile.
Am I doing something wrong ? How can I solve this issue?