1

I am in the progress of switching from Windows to Linux, but as I speak four languages frequently, I found a problem with switching between them.

On Windows, there is a "sub-language" feature (don't really know how is it named in English localization), which allows you to set up "groups" of languages. I have two groups, English and Czech + Ukrainian and russian. Switching between groups is bound to Alt + Shift, and switching between languages inside groups is bound to Ctrl + Shift.

I can't find such a feature in KDE Plasma. Spare Layouts is not what I am looking for, because I use all four languages frequently, and I don't want to use my mouse for switching between them.

So, is there such feature or any script/way to write some script to do this?

2 Answers2

1

I don't want to use my mouse for switching between them

You don't have to. See my 4-layouts setting:

enter image description here

The disabling of "spare layouts" has nothing to do with the mouse - it lets you cycle with one shortcut between more than 3 languages (in fact: "keyboard layouts"), which in the above setting can be done with Alt+Space.

But also, each layout can be accessed directly with a specific shortcut. In my setting: Meta+E for US English, Meta+F for French, Meta+R for Romanian (standard layout) and Meta+Alt+E for another English (dead keys) that allows me a different way of writing French and other characters.

You could in a similar way use Meta or other modifier and associate with R for Russian, U for Ukrainian, C for Czech and E for English — in case you prefer it to the one-shortcut cycle method. (I personally find the specific shortcuts better suited to more than 2 layouts).

(I don't see in what way the method you describe of using groups and switching between them and then between layouts within groups is more efficient than simply changing to the layout you want with just one shortcut.)

In order to see on screen what each layout provides you might be interested in this answer.

cipricus
  • 1,479
0

Doesn't Fcitx provide what you're looking for? I use it exclusively for japanese input, but AFAIK it has groups and whatnot, maybe it's what you need