Using Caps Key As Second Tab
rating: 0+x

1261576185|%e %B %Y

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

More posts on this topic

Comments

Use escape instead?
dpcdpc 1266699782|%e %b %Y, %H:%M %Z|agohover

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

Unfold Use escape instead? by dpcdpc, 1266699782|%e %b %Y, %H:%M %Z|agohover
GabrysGabrys 1266850694|%e %b %Y, %H:%M %Z|agohover

remove Lock = Caps_Lock
keycode 0x42 = Esc

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, Wikidot Inc.
visit my blog

Unfold by GabrysGabrys, 1266850694|%e %b %Y, %H:%M %Z|agohover
Add a New Comment

Blog Author

386ba7d.jpg

My name is Piotr Gabryjeluk.

I study at Nicolaus Copernicus University in Toruń, Poland.
I work for Wikidot Inc as a web architect, developer and designer.

I have my own About page here.

Page tags: caps dev keys tab
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License