alt+shift can't be set to toggle language

14,644

Solution 1

I had the same problem after upgrading to Saucy.

Here's how I fixed it. First you need dconf-editor, so just install it by typing (in a terminal):

sudo apt-get install dconf-editor

After installed run it by typing

dconf-editor

In the new window browse to Desktop -> ibus -> General -> Hotkey
then change the next-engine & next-engine-in-menu values to something like this:

['Shift_L+Alt']  

Close the window and go to the text entry settings.
They should now allow you to use Alt+Shift

if the above doesn't help, try this :

sudo add-apt-repository ppa:attente/1218322
sudo apt-get update
sudo apt-get upgrade

then restart.

Solution 2

To set Shift+Alt combination as your language switcher use the following:

Tweak Tool -> Typing -> Key(s) to change layout

This will change the layout using whatsoever key combination you chose from the menu. But it will not change the Layout indicator in Ubuntu 13.10 (Unity)

Install Tweak Tool from Ubuntu Software Center

Share:
14,644
Ali
Author by

Ali

Field of profession: Quantum computation/Information Some quantum optics and condensed matter as well profile for Ali on Stack Exchange http://stackexchange.com/users/flair/2784694.png?theme=clean

Updated on September 18, 2022

Comments

  • Ali
    Ali over 1 year

    I recently did a fresh installation of Ubuntu 13.10; but there is something bothering me, which I don't quite understand.

    When I first tried to toggle the keyboard language(I usually switch between Persian and English) using the good old "Alt+Shift" shortcut it didn't work. Then, I went and checked the Keyboard shortcut settings and found out that it had been set to "Super+Space"(which BTW didn't work either). So I tried to change it back to "Alt+Shift" but it just doesn't work; when I press "Alt+Shift" to set it up as the toggle-language shortcut, the box automatically resets itself to its previous value(without any errors whatsoever). As far as I've checked I couldn't find any thing obvious corresponding to the shortcut "Alt+Shift" either.

    I've currently set up the shortcut as "Ctrl+Space"; so I can toggle the language. My question is why I cannot set it up to just "Alt+Shift"?

    • Ali
      Ali over 10 years
      @GunnarHjalmarsson Which is a duplicate itself as well!!
  • Ali
    Ali over 10 years
    It didn't work for me.
  • brownian
    brownian over 10 years
    It doesn't work for me either. Tweak Tool shows my choice (CapsLock), but switching doesn't work.
  • Ali
    Ali over 10 years
    Hi Taleb, I just tried what you said, but it didn't work for me.
  • Dzero
    Dzero over 10 years
    try the second fix that i just added
  • Rytis Alekna
    Rytis Alekna over 10 years
    Second method worked!
  • Alireza
    Alireza over 10 years
    GOOD POINT: The first method didn't work when I pasted ['Shift_L+Alt'] then I left it as is and went to Text Entry Settings here I changed the keyboard shortcut to ALT+SHIFT for both. At first it gave me an error message but for the second time it worked. I didn't add attente.
  • Saud Alfadhli
    Saud Alfadhli over 9 years
    I love you <3 .. first method worked like a charm!
  • con
    con over 4 years
    this did not work for me. The repository doesn't exist anymore as of 6 January 2020.