Ubuntu 18.04 – Keyboard Layout Switch Issue

18.04keyboardkeyboard-layoutshortcut-keys

First of all for some reason I have two different "switch keyboard layout" hotkeys: one which I set in Settings->Devices->Keyboard and the second one(Left ctrl + Left shift) is produced by keyboard-configuration package.

Calling sudo dpkg-reconfigure keyboard-configuration and removing hotkey binding solves the issue just until the reboot/sleep mode.

Having tried to remove keyboard-configuration I got the following output:

The following packages will be REMOVED:
console-setup console-setup-linux kbd keyboard-configuration nvidia-384 nvidia-driver-390 ubuntu-desktop ubuntu-minimal xorg xserver-xorg xserver-xorg-core
xserver-xorg-input-all xserver-xorg-input-libinput xserver-xorg-input-wacom xserver-xorg-video-all xserver-xorg-video-amdgpu xserver-xorg-video-ati
xserver-xorg-video-fbdev xserver-xorg-video-intel xserver-xorg-video-nouveau xserver-xorg-video-nvidia-390 xserver-xorg-video-qxl xserver-xorg-video-radeon
xserver-xorg-video-vesa xserver-xorg-video-vmware

It does not look like this package should be removed. So why there are two different sources of layout switch bindings and how can I remove one?

Thanks!

Best Answer

Besides running sudo dpkg-reconfigure keyboard-configuration you probably need to remove it from the desktop settings too. Try this command:

gsettings reset org.gnome.desktop.input-sources xkb-options

After that the removal of the extra shortcut should survive a reboot.