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
output.
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.
Install it
Then open GNOME Tweaks (
gnome-tweaks
).Select Keyboard & Mouse tab
Click Additional Layout Options button
Expand Switching to another layout
Select Ctrl + Shift here
See screenshot below:
Or simply:
If you do not like Super + Space and Shift+Super+Space you can disable them with
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
mate-keyboard-properties
:See screenshot below:
Or simply:
Note: here bug 1683383 is fixed by packages from my PPA :
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)".
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:
then:
Ctrl+Shift
key 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:
then
If setting
Ctrl+Shift
orShift+Ctrl
shortcuts is impossible using this dialog (as it was in my case), then you can change these parameters in an alternative way:install
dconf-editor
:run it from terminal:
go to
org
>gnome
>desktop
>wm
>keybindings
;switch-input-source
orswitch-input-source-backward
;<Control>Shift_L
for changing layout withCtrl+Shift
or<Shift>Control_L
— for changing layout withShift+Ctrl
:Another way is to use
gsettings set
console command as proposed here: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 pressCtrl
key first, and thenShift
key. PressingShift
key first andCtrl
after will not work in this case. But this fact allows to use shortcuts containingShift
andCtrl
keys combination in different applications , for example:Shift+Ctrl+T
to open new tab in Terminal;Shift+Ctrl+E
to export image in Gimp;Shift+Ctrl+F
to open search dialog in WebStorm/PhpStorm.