Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Use xkb group names instead of ids #3115
I sometimes switch dynamically between different keyboards layouts. As I sync my i3 config across several computers with different keyboards, I can't rely on the bindkeycode and anyway I prefer to use bindsym which is easier to read.
The problem with this approach is that depends on the xkb layout load order which varies across my machines. It's possible to make it similar across machines but I - admittedly naively - wondered if we could have sthg like GroupAzerty/GroupQwerty in order to have in i3 config
Are these group names something actually configured with XKB?
As a quick alternative, by the way, you could use variables for that
If you want to use the same i3 config on all machines you could use
there are some utilities such as xkeyboard-config (part of xorg I believe) https://www.mankier.com/7/xkeyboard-config so the layout names seem kinda standardized.
I use the variable trick with success so far :)