Ubuntu – How better to adjust more than 2 keyboard layouts

keyboard-layout

From time to time I have to use characters not present in my two layouts: Latin and Cyrillic and instead of digging in Character Map I thought to add 2 additional keyboard layouts.

My issue with this approach is that most of the time I use just two layouts, and while changing to different layout (Alt+Shift) I now have to press couple of times to switch to previous layout. It's not just number of pressings, but I have to press two keys at once and track keyboard indicator which is distracting.

I tried some options presented in keyboard settings, but I think there is no option that I would like – change just between first two layouts on Alt+Shift, and if I want to use additional layout I can choose it from keyboard indicator drop-down menu.

Any ideas how this might be possible?

Best Answer

my approach towards this problem would be assigning a combination of keys (via keyboard shortcuts) for either using loadkeys/setxkbmap. Although, you might want to revert back to last used layout after using 'the special one', thus you might need to write a bash script for that.