Repository navigation
Persist the chosen keyboard layout's XKB pair so Hyprland picks it up - #196
Conversation
The setup form only ever wrote the console keymap (KEYMAP in vconsole.conf). default/hypr/input.lua reads XKBLAYOUT/XKBVARIANT from the same file, so a machine set up with anything but English (US) typed US inside the desktop while the console obeyed the chosen layout — reported in omacom#176. Each row of the layout table now carries its XKB layout and variant alongside the console keymap (the two naming schemes disagree: uk vs gb, et vs ee, cf vs ca, …), and omarchy-provision-owner persists them via localectl set-x11-keymap plus an explicit vconsole.conf write, so the choice lands no matter what systemd-localed does on that release. The X11 update disables console conversion so it cannot overwrite the selected console/LUKS keymap. Co-authored-by: Copilot <[email protected]>
3d98a70 to
61896b5
Compare
|
Thanks @kx0101 — this is a real gap and the right fix for it. The picker set the console keymap and nothing carried the XKB pair, so choosing German got you a German console and a US desktop. I validated all 48 rows against the live XKB and kbd databases on an M2 Pro: every console keymap, layout and variant exists, including the ones that are easy to get wrong — One thing to flag rather than block on: I couldn't push that to your branch — your fork is of |
1 similar comment
|
Thanks @kx0101 — this is a real gap and the right fix for it. The picker set the console keymap and nothing carried the XKB pair, so choosing German got you a German console and a US desktop. I validated all 48 rows against the live XKB and kbd databases on an M2 Pro: every console keymap, layout and variant exists, including the ones that are easy to get wrong — One thing to flag rather than block on: I couldn't push that to your branch — your fork is of |
scottjones
left a comment
There was a problem hiding this comment.
Mappings verified against the live XKB and kbd databases on Apple Silicon; the test flake is noted in the comment and the one-line fix follows in its own PR.
While digging into #176, I noticed the setup form only writes
KEYMAPto/etc/vconsole.confthat works for the console/LUKS prompt, but Hyprland uses XKB layout/variant settings instead, so the desktop falls back to US. Hyprland documents
kb_layoutandkb_varianthere: [Hyprland input docs]this adds the XKB layout/variant to the existing layout table and persists them alongside the console keymap
also added
tests/test-keyboard-layouts.shwith 9 checks for the layout table and parsingthis doesn't fix the Apple
\->£issue from #176, that's a separatehid_apple/kernel issue. This just makes sure the layout selected during setup is actually used by the desktopkeep in mind i myself use an M4 so i can't test it myself, all i have are those tests