Xmodmap: six characters to one key and two layouts?

Posted by sup on Super User See other posts from Super User or by sup
Published on 2011-11-24T23:45:48Z Indexed on 2011/11/25 2:03 UTC
Read the original article Hit count: 196

Filed under:
|

I know how to have six symbols on one key thanks to this question: Xmodmap: Six characters to one key?

However, when I have two layouts and switch them, weird things happen. I have the following (well, different, but this is easier to talk about) line in my xmodmap:

keycode  31 = a A b B c C                      

When I log in, everything works as you would expect. Pressing key 31 give a, with Shift A, with AltGr c and C respectively and with ISO_Level3_Shift.

However, when I change the layout, key 31 gives me b and B with shift and c and C with AltGr.

This is on Ubuntu 11.10 under Ubuntu. Does anybody undestand what is happening? Could I restrict xmodmap to just one layout?

© Super User or respective owner

Related posts about keyboard-layout

Related posts about xmodmap