Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

Thanks

share|improve this question

3 Answers 3

up vote 2 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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.