I have Ubuntu 16.04 with GNOME shell. I set ctrl+shift for the "Modifiers-only switch to next source" option.

This shortcut conflicts with apps hot-keys. I can't use ctrl+shift+i to open devtools in Chrome, it just switches the layout. In VS code IDE if I press shortcuts with ctrl+shift (for example ctrl+shift+f), shortcuts work but always switch a keyboard layout. When I used Windows this problem didn't exist.

Can I set the ctrl+shift shortcut in such a way that it causes a switch action only after the keys are released and only if this 2 keys were pressed (without additional keys)?

  • 2
    🤦🤦🤦🤦🤦🤦🤦🤦 2021 it is still there
    – mevsme
    Commented May 31, 2021 at 14:52

2 Answers 2


It is known bug 1245473.

Nobody cares about it even on modern Ubuntu Community.

I'm citing my other answer here:

Myself I found only one resolution - I'll stay on Ubuntu 16.04 LTS MATE until 2021 year (really 2019 because it's Ubuntu flavor).

In Ubuntu 16.04 LTS MATE I use Ctrl+Shift without issues.

I have created PPA with patched packages for:

  • Ubuntu 16.04 LTS (xenial) with xserver-xorg-hwe-16.04
  • Ubuntu 18.04 LTS (bionic)
  • Ubuntu 18.04 LTS (bionic) with xserver-xorg-hwe-18.04
  • Ubuntu 18.10 (cosmic)
  • Ubuntu 19.04 (disco)
  • Ubuntu 19.10 (eoan)
  • Ubuntu 20.04 LTS (focal)
  • Ubuntu 20.10 (groovy)
  • Ubuntu 21.04 (hirsute)
  • Ubuntu 21.10 (impish)

You can test them by the following commands:

sudo add-apt-repository ppa:nrbrtx/xorg-hotkeys
sudo apt-get update
sudo apt-get dist-upgrade

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). To remove GNOME Shell and install other desktop follow my other answers - for 18.04 LTS and for 20.04 LTS.

  • 2
    Ubuntu flavors like Ubuntu MATE have LTS releases lasting only three years rather than five, so MATE 16.04 is only good until April 2019. Commented Feb 24, 2018 at 16:08
  • Thanks, but I hope that my system will not compromised between 2019 and 2021 :)
    – N0rbert
    Commented Feb 24, 2018 at 16:12
  • 1
    Worked on KDE (kubuntu 20.04) for me and fixed all the konsole conflicts as well.
    – Coder_fox
    Commented Sep 11, 2020 at 9:41
  • Working but layout switching takes about 0.5 seconds. It is very not handy. Thanks to the author of this patch he says how to remove it.
    – Nick
    Commented Aug 22, 2023 at 17:48

Try @N0rbert's answer first.

It's actually a bug (see this and this). Unfortunately it seems it's not going to be fixed (first one marked as "RESOLVED WONTFIX").

As a workaround you may have to remove those shortcuts and get used to the default ones to switch layouts (super+space & shift+super+space).


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .