Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 0 down vote accepted

Solution is here:

You need to look into the answer. This is essential:

clear mod3
clear mod5
keycode 94 = Mode_switch
add mod3 = Mode_switch
add mod5 = ISO_Level3_Shift
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .