Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have 3 keyboard layouts in use. English, Arabic and Hebrew. To switch from English to Hebrew for example, I have to hit alt-shift twice (English -> Arabic -> Hebrew). I wonder if I can set-up something like [ctrl]-[shift]-1 to immediately switch to English, [ctrl]-[shift]-2 for Arabic and [ctrl]-[shift]-3 for Hebrew or something similar.


share|improve this question
up vote 3 down vote accepted

You may use setxkbmap with xbindkeys. Example of .xbindkeysrc:

#Switch to english
"setxkbmap us"
   0x4 + c:10
Control + 1 

#Switch to russian
"setxkbmap ru"
   m:0x4 + c:11
Control + 2 

#Switch to japanese
"setxkbmap jp"
   m:0x4 + c:12
Control + 3 
share|improve this answer

You can assign a generic command shortcut to the setxkbmap command with the given layout as an argument.

share|improve this answer
Thanks, that's a good direction, but it doesn't do exactly what I wanted it to do. Looks like it's somehow "destructive". It doesn't play nice with the keyboard layout indicator.. Maybe I need to tweak it a little. – AmirW Sep 10 '10 at 21:30

Under Layout Options there's a section to choose keys to change the layout. This sequence will rotate the layouts though, not go to a specific one.

share|improve this answer

this seems like an old post, but at least in kubuntu 14.04 you can set shortcuts for each layout

example of setting english, hebrew and arabic with keyboard shortcuts

share|improve this answer

You must log in to answer this question.

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