0

I'm trying to configure the keyboard shortcut to change layout, but I want to change by ⇧ Shift + CTRL (not CTRL + ⇧ Shift). I've read the similar question there 18.04 ctrl+shift to change language , but I could setup only combination CTRL + ⇧ Shift with ⇧ Shift + CTRL. I need to get rid of CTRL + ⇧ Shift and left only ⇧ Shift + CTRL.

vvvvv
  • 608
  • 1
    I don't understand your question. They need to be pressed simultaneously, but to me it works both if I hold Ctrl and press Shift and if I hold Shift and press Ctrl. – Gunnar Hjalmarsson Jan 05 '21 at 13:20
  • Yes, it works for me too if I setup hotkey using gnome-tweaks. But I need to press shift + ctrl only (avoid changing layout by pressing ctrl+shift) on Ubuntu 20.04. – user1570891 Jan 05 '21 at 14:07
  • @user1570891: How about explaining what you want to achieve? The question you linked to has an accepted answer with quite some information, including references to a bug report and a PPA. I would guess that your question is actually a duplicate of that other question. – Gunnar Hjalmarsson Jan 05 '21 at 14:22
  • 2
    Does this answer your question? 18.04 ctrl+shift to change language and add my PPA and remove GNOME shell. – N0rbert Jan 05 '21 at 18:10

1 Answers1

0

The next command does what is needed:

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

The command switches the language pressing "Alt" first and then "Shift", but not vise versa. Instead of "Alt" can be "Ctrl" (<Control>) as well.