Ubuntu 17.10 <ALT> + <SHIFT> shortcut

I have the problem with Alt+Shift shortcut.
I cannot set up to change keyboard layouts.

I have seen How to reset Keyboard Shortcuts on Ubuntu 17.10 and Ubuntu 17.10 can't change the input switching shortcut to alt+shift.
I tried to fix the issue with Tweak tool. Anyway, it doesn't work and issue is still there.

I use Unity.

Is there another approach?


Solution 1:

As I suggested in Ubuntu 17.10 can't change the input switching shortcut to alt+shift :

You can achieve this using gsettings (command-line configuration tool).

  1. Set forward switch to Shift+Alt(left)

    gsettings set org.gnome.desktop.wm.keybindings switch-input-source "['<Shift>Alt_L']"
    
  2. Set backward switch to Alt+Shift(left)

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

To see the current setting value use get command:

    gsettings get org.gnome.desktop.wm.keybindings switch-input-source
    gsettings get org.gnome.desktop.wm.keybindings switch-input-source-backward

Examples of other key bindings:

    <Primary>space, Alt_R, <Shift>Control_R, <Shift><Super>space

Changes will take effect immediately.