Ubuntu – Set setxkbdmap work differently from the GUI keyboard map switcher (super-space)


This is a follow-up to an earlier question: Reassigning modifier keys with xkb. The keyboard map given in that question works with setxkbmap, but when the map is selected through the GUI (having added the map to evdev.xml).

I've since discovered the following, which is independent of that map: Switching with setxkbmap seems to be different to switching with the GUI, even for that standard maps included. Try the following

 Use GUI to switch to US (typically done with super-space or via top bar)
 press shift-3 --> #
 Use GUI to switch to United Kingdom
 press shift-3 --> £
 Terminal> setxkbmap us
 press shift-3 --> #
 use GUI to switch to United Kingdom
 press shift-3 still gives # 

Any ideas what's happening here?

(Possibly related question: xkbmap works with setxkbmap, but not in GUI)

Best Answer