13

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)?

8

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).

12

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)

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).

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 and 19.04) and Unity (in 18.04 LTS and 18.10).

  • 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. – Chai T. Rex Feb 24 '18 at 16:08
  • Thanks, but I hope that my system will not compromised between 2019 and 2021 :) – N0rbert Feb 24 '18 at 16:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.