[comp.windows.x] Three control keys?

albert@Sunburn.Stanford.EDU (Albert Peters) (03/19/91)

Hi, I have a 101-key AT-style keyboard with a caps-lock next to the "A" key
and two control keys, one below each of the shift keys.  Unfortunately, I'm
used to having the control key next to the "A" key.

So, I remapped my keyboard using xmodmap:

  remove Lock = Caps_Lock
  remove Control = Control_R
  keycode 192 = Caps_Lock
  keycode 158 = Control_R
  add Lock = Caps_Lock
  add Control = Control_R

This makes the key labeled "Caps Lock" (keycode 158) and the lefthand key 
labeled "Ctrl" (keycode 129) behave as control keys.  The righthand key 
labeled "Ctrl" (keycode 192) now acts as Caps Lock.

But, what I really want is to have THREE control keys (129, 158, and 192).
That way, I can use the key next to the "A" that I'm used to or I can try
to learn to use the keys below the shift keys.

Is there any way to do that?  Or is it impossible?

Any help would be appreciated.  Please reply by email.

--Albert

P.S. For the really adventuresome, in addition to having three control keys,
     it might be nice to put caps lock somewhere.  Ideal might be shift-ctl.
     Other arrangements would probably be fine also.

gildea@expo.lcs.mit.EDU (Stephen Gildea) (03/20/91)

    But, what I really want is to have THREE control keys (129, 158, and 192).
    That way, I can use the key next to the "A" that I'm used to or I can try
    to learn to use the keys below the shift keys.
    
    Is there any way to do that?  Or is it impossible?


Not impossible, just have two keys with the same keycode, say Control_L.

 < Stephen
   MIT X Consortium