6

In windows in keyboard switch settings there is an option that you can switch keyboard language with unique combination for each one.

For example, Ctrl + 1 - for english, Ctrl + 2 - for russian, Ctrl + 3 for ukrainian etc. It would be super handy, if there is an option to set this thing in Ubuntu.

Are there any options?

1
  • Read Sneetsher's answer from this post. Then you will be able to set custom shortcut from keyboard settings.
    – VRR
    Jul 31, 2015 at 14:01

3 Answers 3

4

You can do this using setxkbmap. From man setxkbmap:

The setxkbmap command maps the keyboard to use the layout determined by the options specified on the command line.

To do this, open Keyboard from settings and click on Custom Shortcuts. Click on the + sign and add fill up the 'Custom Shortcut' windows as shown below:

enter image description here

Press Apply. Click on 'Disabled' and press Ctrl + 2 to make this as a shortcut for enabling Russian.

Now repeat the steps, but add setxkbmap us as the command and Ctrl + 1 as the shortcut. This will enable Ctrl + 1 as the shortcut for English

4
  • 1
    The problem is that it will not change the indicator in 14.04+.
    – Pilot6
    Jul 31, 2015 at 14:24
  • You are right, but is that a major problem?
    – Ron
    Jul 31, 2015 at 14:26
  • still doesn't work Jul 31, 2015 at 16:57
  • 1
    Are you getting any errors? What's the output of setxkbmap -query after you've done Ctrl+2?
    – Ron
    Jul 31, 2015 at 17:37
0

You can quickly switch between your installed keyboard layout by pressing Super + space bar.

For changing this keyboard shortcut go in :

System settings > Text Entry.

enter image description here (sorry screenshot not in English)

4
  • sorry, it doesn't work. I need those settings. Cause I'm using 4 languages. Jul 31, 2015 at 13:38
  • Have you added your 4 languages in Input sources to use ?
    – hg8
    Jul 31, 2015 at 13:43
  • it doesn't work to set combination for a certain language Jul 31, 2015 at 14:03
  • it should be - ctrl+1 - switches to english. Ctrl+2 - switches to russian. Idk if that's possible Jul 31, 2015 at 14:05
0

Don't forget! If you need to use English need print specific two symbols for different languages:

setxkbmap us - if you use us English

setxkbmap uk - if you use uk English
and so on

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .