From: knaff@mururoa.imag.fr Subject: Re: Can't swap capslock and control in X Date: 8 Feb 1993 09:29:55 GMT
tom@ksr.com (Tom Varga) writes:
:
:
: 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.
Try these:
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