[comp.windows.x] Changing modifiers & keymaps using xmodmap

lanzo@wgate.wgate.com (Mark Lanzo) (06/24/91)

Okay --

   I'm using an HP-9000 series 300 machine and I want to modify the
bindinds of some of the keys on the keyboard, to compensate for the
fact that the HP keyboard layout drives me nuts.  Basically, I want
to rearrange the CapsLock, Control, Escape, etc. keys to what I 
consider a more "standard" layout.

What I want to do is:
   1)  Make the CapsLock key act as a Control key 
       (leaving the Control key as is),
   2)  Make the "Reset/Break" key function as the Escape key
   3)  Make <Shift>CapsLock act as the actual caps-lock key.

The first two items haven't posed a problem.  They can be solved with:
       xmodmap - << BINDINGS
          remove Lock    = Caps_Lock
          add    Control = Caps_Lock
          keysym Break   = Escape
       BINDINGS

However, this leaves me with no CapsLock key anywhere on the keyboard.
So:  how do I make "<Shift>Caps_Lock" act as the "Lock" modifier?

   I've read TFM and checked the FAQ, but still couldn't figure out how
to do this.  I guess that reading The Manual and understanding it are not
necessarily the same thing :-) ...

                             Thanks,
                                -- Mark --


p.s.  note that I'm NOT interested in setting up some other key (like any
of the function keys) as the "lock" modifier key.  I already use all of the
function keys, special keys, etc. for other things (most notably within
emacs), and I'm not willing to give up the use of any of those keys for
the sake of a CapsLock key.