Replacing CapsLock with Left-Control on X
Replacing CapsLock with Left-Control on X
Create the file ~/.Xmodmap with these contents:
remove mod4 = Meta_L
remove mod1 = Alt_L
remove lock = Caps_Lock
keysym Meta_L = Alt_L
keysym Alt_L = Meta_L
add mod4 = Meta_L
add mod1 = Alt_L
add control = Caps_Lock
If you are running something like XFree86, add
to your ~/.xinitrc file or ~/.xsession file. If neither of those
exist, you can always do it from the command line.