Open fabi1cazenave opened 6 months ago
It definitely works like that. The 2 main issues are:
ksettings5
or something) still won’t show the layouts in ~/.config/xkb
, so you need to trustThis means that :
xkb/symbols/custom
trick still is the most reliable way to install a keyboard layout at the momentxkb/symbols
should still be preferred for KDE users (or maybe xkb/symbols/kalamine
, see #122) I assume ksettings
can see these layouts in /usr/share/X11/xkb/symbols
?
TIL : KDE not supporting XKB layouts is not a bug, it’s a feature.
KWIN_XKB_DEFAULT_KEYMAP
This environment variable forces the xkb integration on Wayland to use a default keymap instead of using the configured one. Mostly required for testing. This environment variable is supported since 5.8.
https://community.kde.org/KWin/Environment_Variables#KWIN_XKB_DEFAULT_KEYMAP
Mostly required for testing.
So the workaround above is confirmed to be a big hack.
Seriously, KDE ?
~/.config/xkb
on WaylandI really don’t get it. Why would a DE ever want to rely on its own magic rather than XKB for keyboard management ?
The issue is that they have their own rules
parser. So there are currently 2 workarounds:
~/.config/kxkbrc
. The GUI configuration then does display the right config, but becomes buggy if you change it. I do not see Kalamine modifying this file, but for me it’s a better workaround than the first one.If their parser supports /usr/share/X11/xkb/rules
properly, I think we should just consider KDE as not compatible with ~/.config/xkb
yet and make kalamine refuse to install layouts in user space when KDE is running — even if Wayland is detected.
So I guess we mostly have to inpect a KDE-specific environment variable and let kalamine decide accordingly ?
I’m a bit worried though. Is it okay to consider that all Wayland desktop environments properly support ~/.config/xkb
, and that KDE is just an exception ? Or should we take it the other way around, and only white-list DEs for which a proper ~/.config/xkb
support has been confirmed ?
No idea. I would say it depends if they use xkbcommon-registry
. I would say yes for all DE designed for Wayland from the beginning. For the others… your mileage may vary!
Seems to be fixed for the next plasma release.
A possible workaround would be to set environment variables to select keyboard layouts explicitely :
Related KDE bugs :