Hi, I’ve been trying to add a custom keyboard layout via services.xserver.xkb.extraLayouts, as per the docs, however I am encountering an issue as the extra layout isn’t listed in plasma’s settings → inputs → keyboard → layouts.
The layout in itself does work, as “setxkbmap optimot” will switch to it properly as well as using “services.xserver.xkb.layout = “optimot”;”
The reason I’m trying to set it in plasma is to be able to switch between this layout and a few others via plasma shortcuts etc.
Note that if I switch my DE to GNOME, it does list it properly and I’m able to select the layout in GNOME’s input settings.
Really not sure what I should be looking at and would appreciate any insight.
Hello, i tried your xkb configuration on a fresh install nixos with plasma or gnome : https://pastebin.com/BAVBsKC2
Sadly only the first layer working without spécial touch like Alt, Ctrl, Altgr, otherssss
I like optimot too and can’t live without this keyboard layout, do you have some nix configuration who is actually working ?
At a glance that configuration looks correct. Did you follow the workaround for loading the non-symbols files?
Unfortunately, the Xorg server does not (currently) support setting a keymap directly but relies instead on XKB rules to select the matching components (keycodes, types, …) of a layout. This means that components other than symbols won’t be loaded by default. As a workaround, you can set the keymap using setxkbmap at the start of the session with:
Thanks for your reply, i had the workaround inside the nixos config file.
Didn’t see any change actually.
Inside Gnome when you look at keyboard preview it’s like that.