21

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?

  • 1
    This is another of the myriad bugs in Wayland. Select normal non-Wayland (i.e. Xorg) Ubuntu session during login. – FedKad May 09 '22 at 14:00
  • @FedKad I also noticed after moving from Ubuntu 20.04 to 22.04 that temperature of working processor got a bit higher. Probably the reason also because of Wayland. – Anton Samokat May 09 '22 at 14:22
  • 1
    The rise in temperature, CPU, and memory consumption is probably due to tracker. You can Google "ubuntu disable tracker 22.04" to remove it. – FedKad May 09 '22 at 14:45
  • 1
    As @FedKad mentioned, this is most likely a bug. Probably bug #1956916. Please feel free to add observations to that bug report, if you think they may be helpful to the investigation. – Gunnar Hjalmarsson May 09 '22 at 15:28
  • I confirm that as @FedKas said there are no problems with switching language under Ubuntu Xorg. – Anton Samokat May 10 '22 at 10:05

5 Answers5

47

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.

enter image description here

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

igor
  • 627
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.

  • 2
    fw up on the bug in Ubuntu 22.04: https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1956916 As a temporary workaround, use a Super(Win)+Space shortcut in layouts (multiple can be used, but Alt + Shift won't be reflected as input indicator change) – diman82 May 26 '22 at 09:24
  • 1
    You solved my long-time problem with ubuntu 22.04 – Hosein Remezan Mar 01 '23 at 18:30
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...)
Serj
  • 99
2

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'

2

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
  • 21
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center. – Community Apr 27 '23 at 10:01