Changes using setxkbmap reset after a minute or two in Ubuntu 13.10. I've been using setxkbmap to modify my keyboard settings for years using Ubuntu, and after the upgrade to 13.10, the changes don't hold for longer than a few minutes.
This is NOT a duplicate. I'm asking specifically why changes made using setxkbmap are reset after a minute or two in Ubuntu 13.10. I'm not asking how to switch keys using other programs like xmodmap, xbindkeys, etc.
Best Answer
Gnome
Gnome preserve xkb options.
Use
dconf-editor
→ Follow path/org/gnome/desktop/input-sources
Put layouts needed in
sources
, example:Add
setxkbmap
options toxkb-options
, example:Unity & Gnome
xkb setting seems to be reset by Unity/Gnome settings daemon (periodically or when clicked to change layout) or when layout switch shortcuts used.
The above the method may not work. So this should disable completely the settings daemon layout control capability. Tested on Ubuntu Unity 15.10 .
Rename the keyboard plugin of settings daemon to disable it.
Restart the settings daemon
Note:
gnome-settings-daemon
).gnome-settings-daemon
& Unity hasunity-settings-daemon