I use English and Persian keyboard layout on my Ubuntu system. I want to change the keyboard layout both with Left Alt+Left Shift and Right Alt + Right Shift. Currently I can not use Right Alt+Right Shift to change the Keyboard layout from Persian to English so that I have to use Left Alt+Left Shift to change it.
Does anybody know how I can set Alt+Shift to change the keyboard layout on both sides? I use ubuntu 12.04.
Thanks!
Best Answer
Ok, yet another try, this one will do the trick I hope... ;)
Credits are due to reverendj1, who described a way of assigning a Custom key to toggle keyboard layout, using setxkbmap, which featured in the workaround alluded to in Edit 2 of my previous answer...
I think you'd need to change
"de"
to"ir"
.Again, good luck!
Edit
You may even get away with a one-liner, if you prefer:
See also http://wiki.lxde.org/en/Change_keyboard_layouts and http://www.x.org/releases/X11R7.7/doc/man/man1/setxkbmap.1.xhtml
Edit 2
Depending on how you decide to achieve your goal, you may want to include
lv3:ralt_alt
in your command, resulting inSee
man xkeyboard-config | grep lv3
for details: