24

Switching language settings made by Tweaks tool (gnome-tweak-tool) like described in accepted answer here.

After performing update to release version by

sudo apt update && sudo apt upgrade

language switching by Alt + Shift stopped working. How to fix it?

Related question: How to have Alt+Shift shortcut for language switching and be able to use other shortcuts that contain Alt+Shift combination keys?

6 Answers6

60

Execute the following line by line in terminal on Ubuntu 22 LTS:

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

Open Settings > Keyboard > Keyboard Shortcuts (View and Customise Shortcuts) > Typing to confirm changes.

keyboard shortcut settings

As noted by @egelev you can choose to forward switch the language or backwards only by assigning multiple key sequences to the same shortcut. This may be convenient if you have more than two languages and want a strict loop clockwise:

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

or counterclockwise:

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

Source: https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1956916/comments/38

igor
  • 781
14

Like in recommended setup:

  • Launch Tweaks tool
  • Go to Keyboard & Mouse section.
  • Click on the Additional Layout Options. A new window should pop up.
  • Look for Switching to another layout and expand it.

Here uncheck all checked options. Check Alt+Shift option again. Leave only one this option. Or only Ctrl+Shift if you prefer to use it.

After this Alt + Shift started working for me but in top right corner of the screen there was no information about corresponding switch - seems to bug introduced in Ubuntu 22.04. In Ubuntu 20.04 this function worked fine.

Win + Space also works normally (with updating of corresponding information about current language in top right corner) even if unchecked in Tweeks.

9
  1. Use gnome-tweaks to set shortcut
  2. For Ubuntu 22.04: Open /etc/gdm3/custom.conf and uncomment WaylandEnable=false than save it and reboot. This step makes layout indication work. (and xdotool too...)
muru
  • 207,228
Serj
  • 99
3

Look at https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1956916/comments/38

In short:
Use dconf editor, navigate to org.gnome.desktop.wm.keybindings.switch-input-source and set it to '<Alt>Shift_L'

Peter Kese
  • 31
  • 1
3

Here it is for Alt-Shift / Shift-Alt on both keyboard sides

gsettings set org.gnome.desktop.wm.keybindings switch-input-source "['<Alt>Shift_L', '<Shift>Alt_L', '<Alt>Shift_R', '<Shift>Alt_R']"
ololoye
  • 31
  • 2
-2

For Ubuntu 24.04 there is a shortcut for switching between keyboard input languages. Use shortcut keys Super + Space and Shift + Super + Space to go back and forth.

Go to Settings > Keyboard > Keyboard Shortcuts > View and Customize Shortcuts and choose Typing. There you can find more useful shortcuts.

enter image description here