1

I use 3 different languages on my laptop, but most of time I need only 2 of them, so switching with Ctrl+Shift is quite annoying. Is there a way to use Ctrl+Shift for 2 languages and have some special combination to temporarily switch to the 3rd one?

Note: there's very similar question, but in my question I'd like to make emphasis on switching between 2 languages with normal key combination.

ffriend
  • 111

1 Answers1

4

Remove languages from keyboard layout

Then From Dash choose keyboard settings and then click on shortcuts then add custom shortcut

choose a name and command similar to this

setxkbmap -layout en

enter image description here

Then click on the "Disabled " on the right to make you shortcut lets say Alt+Shift+1

Do it again for other languages you want

  • 1
    Thanks for your answer, but as I said in my "note", I'm looking for a way to switch between 2 languages with normal key combination. E.g. I'd like to use Ctrl-Shift to switch between Lang1 and Lang2 and use, say, Alt-Shift to turn Lang3 on and off. – ffriend Oct 13 '12 at 10:10
  • 1
    you can do that also with answer above. Remove the third unused language from keyboard layout so you can use ctrl-shift with lang1 and lang2. Then create a shortcut for the third with the above answer. so you can user ctrl-alt for switching between lang1 and lang2 and the created shortcut for lang3 –  Oct 13 '12 at 10:14
  • 1
    Check the updated asnwer –  Oct 13 '12 at 10:21
  • Unfortunately, it doesn't work. First of all, Alt+Shift doesn't have effect at all (maybe reserved combination or something like that), so I used Alt+Alt R (left and right Alt keys). After setting, when I pressed them for the first time it really switched layout... but it also broke Ctrl-Shift combination! That is, I had only one layout (Lang3) left, and to get Lang1 and Lang2 back I had to reboot the whole system. Also, in "Keyboard Layout" settings Ctrl+Shift is shown as active, and in layout list there are still Lang1 and Lang2, and nothing about currently active Lang3. – ffriend Oct 13 '12 at 11:02
  • 1
    ok then you should make a shortcut for each layout as prposed before. I think this is the only solution(maybe not) –  Oct 13 '12 at 11:29
  • For me it worked, but I had to use en_US instead of en (setxkbmap -layout en_US). – Michal Vician Apr 24 '15 at 08:43