From: tom@ksr.com (Tom Varga) Subject: Can't swap capslock and control in X Date: 4 Feb 1993 10:31:18 EST
I have one of those keyboards that has the control key in the wrong
place (ie. not to the left of the a key) but luckily doesn't have a locking
capslock mechanism on the keyboard.
So, I've been able to patch keyboard.c in the kernel which enables me to
swap the control key with the caps lock key. This works beautifully in the
consoles. However, in X, the keys revert back to their original screwed up
positions.
The next obvious step is to place the following in the xmodmap file :
remove lock = Caps_Lock
remove control = Control_L
add lock = Control_L
add control = Caps_Lock
But ... this simply does not work. Could somebody please help me with
this problem? I'm finding it very difficult to work 10 hours a day on a
standard unix keyboard, and then come home to a system with a different key
layout.
Thanks very much in advance,