I использовал ubuntu 15.10 and have 3 keyboard languages layout. In Unity DE I поверьте custom shortcuts:
key: CTRL+1; command: gsettings set org.gnome.desktop.input-sources current 0
key: CTRL+2; command: gsettings set org.gnome.desktop.input-sources current 1
key: CTRL+3; command: gsettings set org.gnome.desktop.input-sources current 2
With this shortcuts I хан переключатель to first keyboard layout with CTRL+1, second with CTRL+2 and third with CTRL+3. Now I try gnome-shell and this shortcuts not work on it. Хан anybody help? Thank you for any advices.
Добавьте пользовательскую горячую клавишу с командой.
Переключаться на первое расположение:
gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval "imports.ui.status.keyboard.getInputSourceManager().inputSources[0].activate()"
inputSources[0] - индекс расположения.
> inputSources[0] - first,
> inputSources[1] - second.
и т.д.