Can I use Ctrl+Shift for changing languages? I can’t set this hotkey for changing keyboard languages.
At this moment Alt+Shift switch languages, but I can’t see this hotkey in keyboard hotkeys list or in
gsettings list-recursively org.gnome.desktop.wm.keybindings | sort | more
Here is Solutions:
We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.
You can set such keyboard shortcut as follows:
On Ubuntu 18.04 LTS, 20.04 LTS, 21.04 and 21.10 with GNOME desktop from GNOME Tweaks.
sudo apt-get install gnome-tweaks
Then open GNOME Tweaks (
Select Keyboard & Mouse tab
Click Additional Layout Options button
Expand Switching to another layout
Select Ctrl + Shift here
See screenshot below:
gsettings set org.gnome.desktop.input-sources xkb-options \ "['grp:ctrl_shift_toggle']"
If you do not like Super + Space and Shift+Super+Space you can disable them with
gsettings set org.gnome.desktop.wm.keybindings switch-input-source "['']" gsettings set org.gnome.desktop.wm.keybindings switch-input-source-backward "['']" gsettings set org.freedesktop.ibus.general.hotkey triggers "['']"
Note: you will face interference problem as Ctrl+Shift+T in GNOME Terminal will switch language at once with opening new tab. It is known bug 1683383.
On Ubuntu MATE 18.04 LTS and newer versions this is possible from
- Open MATE Control Center
- Click Keyboard
- Go to Layouts tab
- Click Options
- Expand Switching to another layout
- Select Ctrl + Shift here
See screenshot below:
gsettings set org.mate.peripherals-keyboard-xkb.kbd options \ "['grp\tgrp:ctrl_shift_toggle']"
sudo add-apt-repository ppa:nrbrtx/xorg-hotkeys sudo apt-get update sudo apt-get dist-upgrade
So Ctrl + Shift keyboard layout switcher will work normally on MATE DE after applying patch from ArchLinux AUR "for freedesktop bug 865 (need to kick hotkeys on release, not press)".
Warranty disclaimer: packages were tested in
- 16.04 LTS with HWE (Unity, MATE, Xfce)
- 18.04 LTS (Cinnamon, KDE, MATE, Xfce)
- 18.10 (Cinnamon, KDE, MATE, Xfce)
- 19.04 (Cinnamon, KDE, MATE, Unity, Xfce).
- 19.10 (Cinnamon, KDE, MATE, Unity, Xfce)
- 20.04 LTS (Cinnamon, KDE, MATE, Unity, Xfce)
- 20.10 (Cinnamon, KDE, MATE, Unity, Xfce)
- 21.04 (Cinnamon, KDE, MATE, Xfce)
- 21.10 (Cinnamon, KDE, MATE, Xfce)
However other desktops may have issues even after applying the patch.
These packages do not fix problems for GNOME Shell (18.04 LTS, 18.10, 19.04, 19.10, 20.04 LTS, 20.10 and 21.04) and Unity (in 18.04 LTS and 18.10).
If you are interested you can participate in poll and discussion on community.ubuntu.com.
I found a partial workaround based on other answers for using Ctrl+Shift and shortcuts for GNOME in Ubuntu 18.04:
Install GNOME Tweaks as proposed in N0rbert’s anwser:
sudo apt install gnome-tweaks
- run it;
- open “Keyboard & Mouse” tab;
- click “Additional Layout Options” button;
- instead of selecting
Ctrl+Shiftkey combination in “Switching to another layout” of “Additional Layout Options” window simply untick all checkboxes:
Open “Settings” application from “Show applications” menu at the left bottom corner. Alternatively run a command in terminal:
- go to “Devices” > “Keyboard” tab;
- scroll to “Typing” group;
- set shortcuts for “Switch to next input source” and “Switch to previous input source” (an order of keys DOES MATTER!!!):
Shift+Ctrlshortcuts is impossible using this dialog (as it was in my case), then you can change these parameters in an alternative way:
sudo apt install dconf-editor
run it from terminal:
- switch off “Use default value” and input “Custom Value”:
<Control>Shift_Lfor changing layout with
<Shift>Control_L— for changing layout with
Another way is to use
gsettings setconsole command as proposed here:
gsettings set org.gnome.desktop.wm.keybindings \ switch-input-source "['<Control>Shift_L']"
A limitation of this solution is that an order of keys pressed is important. If you set
Ctrl+Shift to change keyboard layout then it will work only when you press
Ctrl key first, and then
Shift key. Pressing
Shift key first and
Ctrl after will not work in this case. But this fact allows to use shortcuts containing
Ctrl keys combination in different applications , for example:
Shift+Ctrl+Tto open new tab in Terminal;
Shift+Ctrl+Eto export image in Gimp;
Shift+Ctrl+Fto open search dialog in WebStorm/PhpStorm.
Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂