Swapping Control and Caps Lock in X
Posted: December 19th, 2011 | Author: win | Filed under: Linux, Notes | Tags: custom, customize, emacs, MPD, terminal, x | No Comments »Source: http://www.emacswiki.org/emacs/EmacsNiftyTricks
Added the following to ~/.xmodmaprc to swap the functionality of the left control key and the caps-lock key:
! ! Swap Caps_Lock and Control_L ! 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
Load the above with the following command (which I put in my ~/.config/openbox/autostart.sh):
xmodmap ~/.xmodmaprc