23 Dec 2009 13:49
TAGS: caps dev keys tab
As we all know, Caps Lock key is useless and annoying, so some folks change it to behave as third Control key. I prefer using two Controls I already have, so I mapped the Caps Lock key to Tab (which I use very often).
$ xmodmap - remove Lock = Caps_Lock keycode 0x42 = Tab <hit Ctrl-D now>
This works till you logout. If it does work, you can make this persistent by adding those two lines to your empty or missing ~/.Xmodmap file:
remove Lock = Caps_Lock keycode 0x42 = Tab
If this doesn't work for you, it's possible your window manager doesn't take care of this file, but if you have a way to execute commands at each start of GNOME/KDE/whatever, just add the following command to those run it startup sequence: