I recently upgraded to Ubuntu 13.10. In Ubuntu 12.04, I was able to define a key which, while holding it, temporarily switched to a different keyboard layout. I haven't been able to find a way to get that functionality in 13.10: the only option seems to be to toggle between different layouts using the "Switch to next source" shortcut.
Is there a way to get the "hold a key to temporarily switch to a different keyboard layout" functionality in 13.10?
Best Answer
With Gnome 3.6, layout setting method changed. So Ubuntu 13.10 and later, has different behavior then before. This should work well in Gnome (Tested Ubuntu 13.10/14.04).
Unity seems not to use
xkb-options
(Tested it in Ubuntu 13.10/14.04). Even using for example:It just works for seconds, then it is reseted.
Edit
/usr/share/X11/xkb/symbols/pc
, Remove rctrl from ctrl binding:again:
It just works, till it I use change my layout using Super+Space or directly from indicator. So as workaround for Unity, Disable layout toggle shortcuts (layout indicator could removed too) then add a
-option grp:..._toggle
tosetxkbmap
.So for Gnome:
Use
dconf-editor
→ org → gnome → desktop → input-sourcesAdd
setxkbmap
options toxkb-options
, example:To see all possible options: