Windows like switching between keyboard layouts

I understand that the first reply for this would be “Go ask on Gnome’s forums”. But maybe here someone came across such a scenario, and maybe is familiar with how to approach it.

What I am looking for is the functionality, by which one keyboard layout, for example English, has different implementations - US and UK. And you have a 3rd layout, let it be Russian.

Windows has two keyboard shortcuts - one basically switches between groups → english(the last one selected) ↔ russian. And the second one, while “english” is chosen, allows to switch between “US” and “UK”. Meaning that switching from En to Ru and back is one layout change call (instead of going en_us → en_uk → ru).

First port of call:-
Gnome Settings > Keyboard > Input Sources > Input Source Switching

Also , a wealth of information in the Help (Ubuntu Desktop Guide) pages > Keyboard

I manage to choose an en_us, and an en_uk, but they are chosen separately (not a one container with multiple sub options)

Hopefully not, given that Ubuntu actually uses iBus for keyboard switching :wink:

Have you tried the ibus-setup tool ? It has options for setting keyboard shortcuts for switching between different key maps…

The thing is, 90% of the time I switch between en_us and ru, and only in the remaining 10% I actually need to switch to en_UK. So I would wish to remain with only two kb shortcuts - alt+shift(to switch between layouts) and cltr+shift(for the sub option of a layout).

Maybe the problem somehow be with the alt+shift approach I went with
https://askubuntu.com/questions/967364/ubuntu-17-10-and-later-cant-change-the-input-switching-shortcut-to-altshift

gsettings get org.gnome.desktop.wm.keybindings switch-input-source
gsettings get org.gnome.desktop.wm.keybindings switch-input-source-backward

Well, ibus-setup gives you more and finer grained options, it is pre-installed by default, just run it from a terminal or with “alt+F2” …

Thanks. Will see what it has to offer.


UPD. No, didn’t see a way to achieve what I want by ibus. Although I did find how to set (as long as it works) the alt+shift though a gui config tool.

1 Like