kankkune@cs.Helsinki.FI (Risto Kankkunen) (11/08/90)
Is there any way to define two different keyboard layouts and have a
key to switch between them? I have done something like this with xterm,
but I'd like to do it with xmodmap to make it globally effective (e.g.
in text widgets).
The following works, except Alt_R should be a toggle:
xmodmap - <<END
keysym apostrophe = Adiaeresis adiaeresis apostrophe quotedbl
keysym Alt_R = Alt_R Mode_switch
add mod3 = Alt_R
END
Can you make any modifier to toggle, or is that hard-wired to the Lock
modifier?
Have I understood right, that the interpretation of the "columns" in
the keysym table is hard-wired, too? It would be nice, if you could say
something like:
column 1 = none
column 2 = shift
column 2 = lock
column 3 = mod3
column 4 = shift+mod3
...
XLookupKeysym could then select the row in the keysym table according to
the KeyCode, and column according to the matching modifiers. I suppose
this would require a protocol modification...
Risto
Risto Kankkunen kankkune@cs.Helsinki.FI (Internet)
Department of Computer Science rkankkunen@finuh (Bitnet)
University of Helsinki, Finland ..!mcvax!uhecs!kankkune (UUCP)