Ubuntu – Separate keyboard shortcuts for switching between keyboard layouts

keyboardlayoutshortcuts

I have a few language keyboard layouts installed in 12.04. I am using CtrlShift keyboard shortcut for switching between language layouts. Such switching method takes a lot of my time.

Is there any possibility to set up a different keyboard shortcut for each language keyboard layout?

For example:

CtrlShift1 (English layout),

CtrlShift2 (Polish layout),

CtrlShift3 (Italian layout), etc.

Best Answer

Simple: go to keyboard settings, click on "Shortcuts", and add "Custom shortcut". For each shortcut, add the respective command that chooses one layout. The commands are

setxkbmap -layout en
setxkbmap -layout pl
setxkbmap -layout it

etc.