Thursday
Oct302008
Swap Ctrl and Caps lock
Thursday, October 30, 2008 at 08:58AM 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.)
in
programming
programming 


Reader Comments (1)
System -> Preferences -> Keyboard -> Layout -> Other Options...
Expand "Ctrl key position"
Select "Swap Ctrl and CapsLock"