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
Answer
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
No comments:
Post a Comment