KWin_Wayland: Keyboard layouts are inaccessible / shortcuts do not work

Hey folks,

I am using seven different keyboard layouts and need to access them using shortcuts. When setting the shortcuts in the keyboard layout settings they do not work at all.

“Cycling” through the keyboard layouts is no option, because they are too many and at most 4 are supported.

Even with X11 these shortcut settings did not properly work. However, with X11 I could set a global shortcut for every layout invoking a “setxkbmap” command. With Wayland now KWin is responsible for the keyboard layout, but I do not see any option to actually use more than the first 4 keyboard layouts. I have seen this bug report that the “spare layouts” feature has not been properly implemented for Wayland

However, I do not care whether the keyboard layouts are “spare” or not, I just want to invoke my three other keyboard layouts. Is there any workaround for now? I have not seen any kwin command line option to change the keyboard layout like “setxkbmap”. And with the org.kde.KeyboardLayouts::setLayout method in DBus I can also only set the layout to layout 0, 1, 2, 3 and not to any of the other ones.

What can I do?

All the best,

Jonathan