Monday, June 29, 2015

HOWTO: Enable Alt Shift switch Input language

This applies to any distribution using Gnome 3.



 
Type the following command and follow steps bellow
# setxkbmap -option grp:alt_shift_toggle "us,ar"
And that conflicts with the gnome moving window between workspace shortcut

There are two ways to do that

In both ways, you need to open gnome-tweak-tool and disable "Modifiers-only switch input source" then

First way using gsetting

Just run the following command
# gsettings set org.gnome.desktop.wm.keybindings switch-input-source "['<Alt>Shift_L', '<Alt>Shift_R']" 

Second way using dconf-editor

  1. Install and open dconf-editor.
  2. Press Ctrl+F and write "switch-input-source" or navigate to org.gnome.desktop.wm.keybindings and look for the same key.
  3. Double click on the key and change it to:

    ['<alt>Shift_L', '<alt>Shift_R']</alt></alt>
This means I will use the Alt+Left Shift and Alt+Right Shift to switch the language, this way, it will work nicely with the Alt+Ctrl+Shift+[Arrow] shortcut

That's it


If you have any problem during application, just leave us a comment.

2 comments:

author
My Linux Tricks
MyLinuxTricks's a Blog That intersted in Linux Operating Systems and it try to share some tricks with visitors, and Help who needs help..