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:
xmodmap ~/.Xmodmap
I think for typists (especially Vim-addicted hackers) mapping Caps Lock to Escape key is much more beneficial as it's less accessible in standard keyboard. But just my opinion and I'm a Vim addict. :D
http://dpc.ucore.info
That're lines for you then :-).
There are people that use vim as a general tool to do anything, not only as a text editor but even though I'm a vim user, in general I use Tab more often than Escape.
Piotr Gabryjeluk
visit my blog
Post preview:
Close preview