After upgrading to 13.10 it looks like we have no more deal with XKB for layout settings and input language switching, so I have a question.

Some times I need to add one ore two more input languages and remove them after little time. It's frequently operation, and in the pas there was a way to make it simple, like:

setxkbmap -layout "us,ru,de"

So I was able to bind such command to hotkeys and add or remove needed language very fast and easy.

for now setxkbmap no affect laout at all, so what can I do?

I tried to do something like:

gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'us'), ('xkb', 'ru'), ('xkb', 'ar')]"

And it really added layout to keyboard-indicator, but wan't change the input at all, so if I open GUI settings tool, i wan't find there new language.

I tried also to do:

gsettings set org.gnome.libgnomekbd.keyboard layouts "['us', 'ru', 'de']"

But that have no effect at all.

diff between gsettings list-recursively before adding new layout from gui and after that isn't showing any difference except in org.gnome.desktop.input-sources sources, diff between gconftool-2 --recursive-list before and after insn't showing any differences at all.

Give me pleace any solution to make that working. Console command or even API-call to do that. I think writing simple app isn't a problem.

  • This command: gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'us'), ('xkb', 'ru'), ('xkb', 'ar')]" is working perfect for me. – Radu Rădeanu Nov 1 '13 at 5:47
  • I wrote here that i tried. It's addding language just into switcher, but no new layout. Why can be so? – user2819650 Nov 1 '13 at 14:24

I found what was that. It's a naming issue. Arabic langugage must be ('xkb', 'ara') NOT ar. Strange, that there is a difference from setxkbmap notation.

| improve this answer | |
  • setxkbmap is presumably looking for the filename in /usr/share/X11/xkb/symbols, which is 2 letters, while input-sources needs the 3-letter ISO 639-2/3 code. – chaskes Nov 1 '13 at 16:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.