Ivan Tomica

Modifiers only input sources

In Fedora Workstation (using Gnome 3) keyboard shortcut for changing input source defaults to using Super+Space key combination and Super+Shift+Space for switching it back. But what happens if you want to use your “modifiers” to change your keyboard layout?

Launching System Settings and changing keyboard shortcuts won’t allow you to use “modifier only” shortcuts, you’ll need to specify one more “regular” key for it to accept your new shortcut. Some guides are suggesting that you can change this option via Gnome Tweak tool but unfortunately I don’t see this option, do you? ;-)

Screenshot of gnome tweak tool

Do not despair! As always, there’s a solution for this problem. You can use following commands to set your shortcuts directly with gsettings. To set Alt+Left Shift as your “Switch input source” use following command:

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

and to set Alt+Control+Left shift as your “Switch to previous input source” use this command:

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

If you don’t want to use gsettings command and you want more “graphical way” you can use dconf to do the same thing. Install dconf with:

sudo dnf install -y dconf

open it up and navigate to org > gnome > desktop > wm > keybindings to change the options switch-input-source and switch-input-source-backward.

Sysadmin on the everlasting journey of learning. Always in search for an opportunity to prove myself and to learn something new. My addiction is learning and my main goal is to excel in every aspect of Linux/Unix system administration.


  1. Zilon

    2015-12-12 - 20:40

    Ivan, very nice blog!!! Keep on man!

    I found that Modifiers-only switch to next source…is (unlocked) under the Switch to previous input source on keyboard settings…Fedora 23

    • Ivan Tomica

      2015-12-12 - 22:08

      Hi Zilon, thank you, I’ll try my best to keep it on ;-) What do you mean by “is (unlocked) under the Switch to previous”? Has something changed since F22 regarding that? :-)

Leave a Reply

Your email address will not be published. Required fields are marked *