Search
Tweets
Blogroll
Powered by Squarespace
« OpenID and email | Main | Week 3: What part of no don't you understand? »
Thursday
Oct302008

Swap Ctrl and Caps lock

On Linux and want to swap locations of Ctrl and Caps Lock? Then save this in a file swap_caps_ctrl.modmap:

remove Lock = Caps_Lock
remove Control = Control_L
keysym Control_L = Caps_Lock
keysym Caps_Lock = Control_L
add Lock = Caps_Lock
add Control = Control_L

and then simply

$ xmodmap swap_caps_ctrl.modmap

(The tip is actually in the xmodmap man page, see $ man xmodmap, but hard to find if you don’t know where to look.)

Reader Comments (1)

Under Gnome, this is also a:

System -> Preferences -> Keyboard -> Layout -> Other Options...

Expand "Ctrl key position"

Select "Swap Ctrl and CapsLock"
November 4, 2008 | Unregistered Commentertvaughan

PostPost a New Comment

Enter your information below to add a new comment.
Author Email (optional):
Author URL (optional):
Post:
 
All HTML will be escaped. Hyperlinks will be created for URLs automatically.