18.04 ctrl+shift to change language
up vote
49
down vote
favorite
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.
18.04 input-language key-binding
add a comment |
up vote
49
down vote
favorite
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.
18.04 input-language key-binding
3
Possible duplicate of Ubuntu 17.10 can't change the input switching shortcut to alt+shift
– Fabby
May 19 at 21:52
add a comment |
up vote
49
down vote
favorite
up vote
49
down vote
favorite
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.
18.04 input-language key-binding
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.
18.04 input-language key-binding
18.04 input-language key-binding
edited Apr 29 at 8:52
Graham
2,19961527
2,19961527
asked Apr 29 at 8:45
Hayate
348137
348137
3
Possible duplicate of Ubuntu 17.10 can't change the input switching shortcut to alt+shift
– Fabby
May 19 at 21:52
add a comment |
3
Possible duplicate of Ubuntu 17.10 can't change the input switching shortcut to alt+shift
– Fabby
May 19 at 21:52
3
3
Possible duplicate of Ubuntu 17.10 can't change the input switching shortcut to alt+shift
– Fabby
May 19 at 21:52
Possible duplicate of Ubuntu 17.10 can't change the input switching shortcut to alt+shift
– Fabby
May 19 at 21:52
add a comment |
2 Answers
2
active
oldest
votes
up vote
90
down vote
accepted
You can set such keyboard shortcut as follows:
On Ubuntu 18.04 LTS with GNOME desktop from GNOME Tweaks.
Install it
sudo apt-get install gnome-tweaks
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:
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 18.04 LTS MATE this is possible from
mate-keyboard-properties
:
- Open MATE Control Center
- Click Keyboard
- Go to Layouts tab
- Click Options
- Expand Switching to another layout
Select Ctrl + Shift here
See screenshot below:
Or simply:
gsettings set org.mate.peripherals-keyboard-xkb.kbd options
"['grptgrp:ctrl_shift_toggle']"
Note: here bug 1683383 is fixed by packages from my PPA :
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
- Ubuntu 16.04 LTS with HWE (Unity, MATE, Xfce);
- Ubuntu 18.04 LTS (Cinnamon, KDE, MATE, Xfce);
- Ubuntu 18.10 (Cinnamon, KDE, MATE, Xfce).
However other desktops may have issues even after applying the patch. For example these packages do not fix problems for GNOME Shell and Unity (in 18.04 LTS and 18.10).
If you are interested you can participate in poll and discussion on community.ubuntu.com.
4
gnome-tweaks broke text selection via ctrl+shift+arrow :( Does another solutions allow such text selection?
– Hayate
Apr 30 at 5:34
You have been warned about this. Possible solution is to switch to normal DE such as MATE, Xfce, Cinnamon, KDE. See links in my answer.
– N0rbert
Apr 30 at 9:45
Ok, i see, thx.
– Hayate
May 1 at 2:14
2
Works fine on Ubuntu 18.04.1 LTS.
– Hemã Vidal
Sep 10 at 0:46
1
Thanks, it works fine :) It is really sad that you can't do that without installing a program, bad UX.
– gdaras
Nov 24 at 13:15
|
show 2 more comments
up vote
4
down vote
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
then:
- run it;
- open "Keyboard & Mouse" tab;
- click "Additional Layout Options" button;
- instead of selecting
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:
gnome-control-center
then
- 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!!!):
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
:
sudo apt install dconf-editor
run it from terminal:
dconf-editor
go to
org
>gnome
>desktop
>wm
>keybindings
;- select
switch-input-source
orswitch-input-source-backward
; - switch off "Use default value" and input "Custom Value":
<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:
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 Shift
and Ctrl
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.
add a comment |
protected by Community♦ Aug 22 at 7:02
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
90
down vote
accepted
You can set such keyboard shortcut as follows:
On Ubuntu 18.04 LTS with GNOME desktop from GNOME Tweaks.
Install it
sudo apt-get install gnome-tweaks
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:
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 18.04 LTS MATE this is possible from
mate-keyboard-properties
:
- Open MATE Control Center
- Click Keyboard
- Go to Layouts tab
- Click Options
- Expand Switching to another layout
Select Ctrl + Shift here
See screenshot below:
Or simply:
gsettings set org.mate.peripherals-keyboard-xkb.kbd options
"['grptgrp:ctrl_shift_toggle']"
Note: here bug 1683383 is fixed by packages from my PPA :
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
- Ubuntu 16.04 LTS with HWE (Unity, MATE, Xfce);
- Ubuntu 18.04 LTS (Cinnamon, KDE, MATE, Xfce);
- Ubuntu 18.10 (Cinnamon, KDE, MATE, Xfce).
However other desktops may have issues even after applying the patch. For example these packages do not fix problems for GNOME Shell and Unity (in 18.04 LTS and 18.10).
If you are interested you can participate in poll and discussion on community.ubuntu.com.
4
gnome-tweaks broke text selection via ctrl+shift+arrow :( Does another solutions allow such text selection?
– Hayate
Apr 30 at 5:34
You have been warned about this. Possible solution is to switch to normal DE such as MATE, Xfce, Cinnamon, KDE. See links in my answer.
– N0rbert
Apr 30 at 9:45
Ok, i see, thx.
– Hayate
May 1 at 2:14
2
Works fine on Ubuntu 18.04.1 LTS.
– Hemã Vidal
Sep 10 at 0:46
1
Thanks, it works fine :) It is really sad that you can't do that without installing a program, bad UX.
– gdaras
Nov 24 at 13:15
|
show 2 more comments
up vote
90
down vote
accepted
You can set such keyboard shortcut as follows:
On Ubuntu 18.04 LTS with GNOME desktop from GNOME Tweaks.
Install it
sudo apt-get install gnome-tweaks
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:
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 18.04 LTS MATE this is possible from
mate-keyboard-properties
:
- Open MATE Control Center
- Click Keyboard
- Go to Layouts tab
- Click Options
- Expand Switching to another layout
Select Ctrl + Shift here
See screenshot below:
Or simply:
gsettings set org.mate.peripherals-keyboard-xkb.kbd options
"['grptgrp:ctrl_shift_toggle']"
Note: here bug 1683383 is fixed by packages from my PPA :
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
- Ubuntu 16.04 LTS with HWE (Unity, MATE, Xfce);
- Ubuntu 18.04 LTS (Cinnamon, KDE, MATE, Xfce);
- Ubuntu 18.10 (Cinnamon, KDE, MATE, Xfce).
However other desktops may have issues even after applying the patch. For example these packages do not fix problems for GNOME Shell and Unity (in 18.04 LTS and 18.10).
If you are interested you can participate in poll and discussion on community.ubuntu.com.
4
gnome-tweaks broke text selection via ctrl+shift+arrow :( Does another solutions allow such text selection?
– Hayate
Apr 30 at 5:34
You have been warned about this. Possible solution is to switch to normal DE such as MATE, Xfce, Cinnamon, KDE. See links in my answer.
– N0rbert
Apr 30 at 9:45
Ok, i see, thx.
– Hayate
May 1 at 2:14
2
Works fine on Ubuntu 18.04.1 LTS.
– Hemã Vidal
Sep 10 at 0:46
1
Thanks, it works fine :) It is really sad that you can't do that without installing a program, bad UX.
– gdaras
Nov 24 at 13:15
|
show 2 more comments
up vote
90
down vote
accepted
up vote
90
down vote
accepted
You can set such keyboard shortcut as follows:
On Ubuntu 18.04 LTS with GNOME desktop from GNOME Tweaks.
Install it
sudo apt-get install gnome-tweaks
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:
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 18.04 LTS MATE this is possible from
mate-keyboard-properties
:
- Open MATE Control Center
- Click Keyboard
- Go to Layouts tab
- Click Options
- Expand Switching to another layout
Select Ctrl + Shift here
See screenshot below:
Or simply:
gsettings set org.mate.peripherals-keyboard-xkb.kbd options
"['grptgrp:ctrl_shift_toggle']"
Note: here bug 1683383 is fixed by packages from my PPA :
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
- Ubuntu 16.04 LTS with HWE (Unity, MATE, Xfce);
- Ubuntu 18.04 LTS (Cinnamon, KDE, MATE, Xfce);
- Ubuntu 18.10 (Cinnamon, KDE, MATE, Xfce).
However other desktops may have issues even after applying the patch. For example these packages do not fix problems for GNOME Shell and Unity (in 18.04 LTS and 18.10).
If you are interested you can participate in poll and discussion on community.ubuntu.com.
You can set such keyboard shortcut as follows:
On Ubuntu 18.04 LTS with GNOME desktop from GNOME Tweaks.
Install it
sudo apt-get install gnome-tweaks
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:
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 18.04 LTS MATE this is possible from
mate-keyboard-properties
:
- Open MATE Control Center
- Click Keyboard
- Go to Layouts tab
- Click Options
- Expand Switching to another layout
Select Ctrl + Shift here
See screenshot below:
Or simply:
gsettings set org.mate.peripherals-keyboard-xkb.kbd options
"['grptgrp:ctrl_shift_toggle']"
Note: here bug 1683383 is fixed by packages from my PPA :
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
- Ubuntu 16.04 LTS with HWE (Unity, MATE, Xfce);
- Ubuntu 18.04 LTS (Cinnamon, KDE, MATE, Xfce);
- Ubuntu 18.10 (Cinnamon, KDE, MATE, Xfce).
However other desktops may have issues even after applying the patch. For example these packages do not fix problems for GNOME Shell and Unity (in 18.04 LTS and 18.10).
If you are interested you can participate in poll and discussion on community.ubuntu.com.
edited Dec 1 at 8:10
answered Apr 29 at 9:15
N0rbert
20.3k54494
20.3k54494
4
gnome-tweaks broke text selection via ctrl+shift+arrow :( Does another solutions allow such text selection?
– Hayate
Apr 30 at 5:34
You have been warned about this. Possible solution is to switch to normal DE such as MATE, Xfce, Cinnamon, KDE. See links in my answer.
– N0rbert
Apr 30 at 9:45
Ok, i see, thx.
– Hayate
May 1 at 2:14
2
Works fine on Ubuntu 18.04.1 LTS.
– Hemã Vidal
Sep 10 at 0:46
1
Thanks, it works fine :) It is really sad that you can't do that without installing a program, bad UX.
– gdaras
Nov 24 at 13:15
|
show 2 more comments
4
gnome-tweaks broke text selection via ctrl+shift+arrow :( Does another solutions allow such text selection?
– Hayate
Apr 30 at 5:34
You have been warned about this. Possible solution is to switch to normal DE such as MATE, Xfce, Cinnamon, KDE. See links in my answer.
– N0rbert
Apr 30 at 9:45
Ok, i see, thx.
– Hayate
May 1 at 2:14
2
Works fine on Ubuntu 18.04.1 LTS.
– Hemã Vidal
Sep 10 at 0:46
1
Thanks, it works fine :) It is really sad that you can't do that without installing a program, bad UX.
– gdaras
Nov 24 at 13:15
4
4
gnome-tweaks broke text selection via ctrl+shift+arrow :( Does another solutions allow such text selection?
– Hayate
Apr 30 at 5:34
gnome-tweaks broke text selection via ctrl+shift+arrow :( Does another solutions allow such text selection?
– Hayate
Apr 30 at 5:34
You have been warned about this. Possible solution is to switch to normal DE such as MATE, Xfce, Cinnamon, KDE. See links in my answer.
– N0rbert
Apr 30 at 9:45
You have been warned about this. Possible solution is to switch to normal DE such as MATE, Xfce, Cinnamon, KDE. See links in my answer.
– N0rbert
Apr 30 at 9:45
Ok, i see, thx.
– Hayate
May 1 at 2:14
Ok, i see, thx.
– Hayate
May 1 at 2:14
2
2
Works fine on Ubuntu 18.04.1 LTS.
– Hemã Vidal
Sep 10 at 0:46
Works fine on Ubuntu 18.04.1 LTS.
– Hemã Vidal
Sep 10 at 0:46
1
1
Thanks, it works fine :) It is really sad that you can't do that without installing a program, bad UX.
– gdaras
Nov 24 at 13:15
Thanks, it works fine :) It is really sad that you can't do that without installing a program, bad UX.
– gdaras
Nov 24 at 13:15
|
show 2 more comments
up vote
4
down vote
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
then:
- run it;
- open "Keyboard & Mouse" tab;
- click "Additional Layout Options" button;
- instead of selecting
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:
gnome-control-center
then
- 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!!!):
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
:
sudo apt install dconf-editor
run it from terminal:
dconf-editor
go to
org
>gnome
>desktop
>wm
>keybindings
;- select
switch-input-source
orswitch-input-source-backward
; - switch off "Use default value" and input "Custom Value":
<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:
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 Shift
and Ctrl
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.
add a comment |
up vote
4
down vote
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
then:
- run it;
- open "Keyboard & Mouse" tab;
- click "Additional Layout Options" button;
- instead of selecting
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:
gnome-control-center
then
- 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!!!):
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
:
sudo apt install dconf-editor
run it from terminal:
dconf-editor
go to
org
>gnome
>desktop
>wm
>keybindings
;- select
switch-input-source
orswitch-input-source-backward
; - switch off "Use default value" and input "Custom Value":
<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:
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 Shift
and Ctrl
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.
add a comment |
up vote
4
down vote
up vote
4
down vote
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
then:
- run it;
- open "Keyboard & Mouse" tab;
- click "Additional Layout Options" button;
- instead of selecting
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:
gnome-control-center
then
- 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!!!):
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
:
sudo apt install dconf-editor
run it from terminal:
dconf-editor
go to
org
>gnome
>desktop
>wm
>keybindings
;- select
switch-input-source
orswitch-input-source-backward
; - switch off "Use default value" and input "Custom Value":
<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:
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 Shift
and Ctrl
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.
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
then:
- run it;
- open "Keyboard & Mouse" tab;
- click "Additional Layout Options" button;
- instead of selecting
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:
gnome-control-center
then
- 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!!!):
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
:
sudo apt install dconf-editor
run it from terminal:
dconf-editor
go to
org
>gnome
>desktop
>wm
>keybindings
;- select
switch-input-source
orswitch-input-source-backward
; - switch off "Use default value" and input "Custom Value":
<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:
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 Shift
and Ctrl
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.
edited Oct 30 at 16:06
N0rbert
20.3k54494
20.3k54494
answered Oct 30 at 13:16
Ezze
2601414
2601414
add a comment |
add a comment |
protected by Community♦ Aug 22 at 7:02
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
3
Possible duplicate of Ubuntu 17.10 can't change the input switching shortcut to alt+shift
– Fabby
May 19 at 21:52