Score:0

Problems setting keyboard layout shortcut to shift+alt via gnome-tweaks or gsettings

As many new Ubuntu users, I faced a problem of inability to set keyboard layout switch shortcut to shift + alt.

Following this thread, I installed gnome-tweaks and bumped into this problem: layout switching order was en-en-ru while I had only 2 layouts (en and ru). Also, layout changes were undisplayed in the top right corner panel (it was always showing en).

As a workaround, I tried similar solution using gsettings.

gsettings set org.gnome.desktop.wm.keybindings switch-input-source "['<Shift>Alt_L']"

It did not work at all for some reason. Digging deeper, I found that

gsettings get org.gnome.desktop.input-sources xkb-options

stored empty list, so I tried to set it to ['grp:alt_shift_toggle', 'grp_led:scroll', 'lv3:switch'] - did not help.

Finally, I found this:

gsettings get org.gnome.desktop.input-sources sources
@a(ss) []

I set it to [('xkb', 'us'), ('xkb', 'ru')] - did not help.

Any advice?

Ubuntu 22.04.01 LTS Gnome 42.2 Windowing system Wayland (idk if it is relevant)

kanehekili avatar
zw flag
Wayland is relevant, since those xkb commands are for X11Server only...
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.