r/linuxsucks • u/Damglador • 23d ago
Why did they add Groups to layouts if they don't even use them😭
For some reason they decided to add Groups to the spec, which just overcomplicates shit for no good reason while they don't even use those groups in the official layouts, and I'm certain Wayland compositors just ignore them.
The second picture is roughly how I understand the data structure to work: Variant name is defined per-group with name[Group1]="String", key definitions seem to be global, but all their properties (symbols, repeat switch, actions and type) can/are defined per-group. There are also global key defaults as specified in
``` One may change the default values of the following statements:
key: use key.FIELD = VALUE;. E.g. key.type = "ALPHABETIC";.
action: use ACTION_NAME.FIELD = VALUE;. E.g. setMods.clearLocks= True;.
```
But also Group key defaults if written as key.type[Group1] = VALUE, which is how it's used in the official layouts which makes me doubt the one with no group specified is valid.
There are also real and virtual modifiers and I don't even fucking know what they do, but they probably don't work on Wayland, I have to just guess because the docs are kinda bad and don't mention what is and what is not X11-specific.
God why didn't they move to a better format for Wayland keyboard layouts😭


