Repository navigation
Share the console keymap XKB table through the setup form - #20187
Merged
Merged
Conversation
The ISO writes /etc/vconsole.conf with systemd-firstboot. systemd-firstboot adds XKB lines only for keymaps in kbd-model-map, and 8 installer layouts are not in that table: Colemak, Bulgarian, Czech, Swiss German, Kyrgyz, Norwegian, Polish and Ukrainian. After an ISO install with one of them, the console uses the chosen keymap, but Hyprland and the SDDM greeter type US. First-boot setup already adds the missing lines from its own table. The ISO reads only setup-form.sh, so the table and the helper that prints the vconsole.conf lines move into that file as omarchy_keymap_xkb_extra and omarchy_keymap_xkb_settings. omarchy-provision-owner, kmscon.sh and Setup > Keyboard now read this one table, and the copy in typing_setup.py is removed.
Contributor
[Medium impact] The PR appears safe to merge; no actionable new issues were found. SummaryShares the extra console-to-XKB mappings through
No actionable new issues were found. No previous review threads were supplied. Tests were not run during this review.
|
Have kmscon.sh source its sibling setup-form.sh when omarchy_keymap_xkb_extra is not already defined, so callers that source kmscon.sh directly (including the ISO's .automated_script.sh) keep resolving the extra console keymaps instead of silently falling back to US. Also guard against empty leading variants in typing_setup.py's xkb_choice.
This was referenced Nov 25, 2026
Closed
cursor Bot
pushed a commit
to mark-groves/omarchy
that referenced
this pull request
Nov 25, 2026
* Share the console keymap XKB table through the setup form The ISO writes /etc/vconsole.conf with systemd-firstboot. systemd-firstboot adds XKB lines only for keymaps in kbd-model-map, and 8 installer layouts are not in that table: Colemak, Bulgarian, Czech, Swiss German, Kyrgyz, Norwegian, Polish and Ukrainian. After an ISO install with one of them, the console uses the chosen keymap, but Hyprland and the SDDM greeter type US. First-boot setup already adds the missing lines from its own table. The ISO reads only setup-form.sh, so the table and the helper that prints the vconsole.conf lines move into that file as omarchy_keymap_xkb_extra and omarchy_keymap_xkb_settings. omarchy-provision-owner, kmscon.sh and Setup > Keyboard now read this one table, and the copy in typing_setup.py is removed. * Keep kmscon.sh self-contained when sourced without setup-form.sh Have kmscon.sh source its sibling setup-form.sh when omarchy_keymap_xkb_extra is not already defined, so callers that source kmscon.sh directly (including the ISO's .automated_script.sh) keep resolving the extra console keymaps instead of silently falling back to US. Also guard against empty leading variants in typing_setup.py's xkb_choice. --------- Co-authored-by: David Heinemeier Hansson <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes for users
An ISO install with one of these 8 layouts now gets the same layout on the desktop as on the console: Colemak, Bulgarian, Czech, Swiss German, Kyrgyz, Norwegian, Polish and Ukrainian. Today these installs type US in Hyprland and in the SDDM greeter.
The ISO half of the fix is omacom/omarchy-iso#528. This PR comes first, because the ISO reads the table from
setup-form.sh.Why it happens
The ISO writes
/etc/vconsole.confwithsystemd-firstboot --keymap=<keymap>.systemd-firstbootwritesXKBLAYOUTonly for keymaps in/usr/share/systemd/kbd-model-map, and these 8 form keymaps are not in it.default/hypr/keyboard.luareadsXKBLAYOUTfrom/etc/vconsole.conf, so it falls back tous.First-boot setup already adds the missing lines with
keyboard_xkb_settingsinbin/omarchy-provision-owner. Moving the table and line printer intosetup-form.shkeeps them alongsideOMARCHY_KEYBOARD_LAYOUTSso the ISO, first-boot setup,kmscon.shandSetup > Keyboardall share one source of truth.The change
install/provisioning/setup-form.shnow holds the table asomarchy_keymap_xkb_extraand the line printer asomarchy_keymap_xkb_settings. Both moved without a change in their output.bin/omarchy-provision-ownercallsomarchy_keymap_xkb_settings.kmscon.shreadsomarchy_keymap_xkb_extrafromsetup-form.sh, sourcing its siblingsetup-form.shif the caller has not already so standalone callers stay self-contained.default/input-methods/typing_setup.pyreads the table fromsetup-form.shinstead of its own copy. That copy had 6 of the 8 entries. The Setup > Keyboard catalog is identical before and after, with 48 entries.Disk password prompt
For
bg-cp1251,kyrgyzandua, the first XKB layout is non-Latin.etc/mkinitcpio.conf.d/omarchy_hooks.confandomarchy_vconsole.confkeepvconsole.confout of the initramfs, and the companion ISO PR keeps them out of the pre-built UKI as well, so the LUKS prompt uses US — matching Russian ISO installs (ru->ru,us). The other 5 keymaps are Latin, so the initramfs and pre-built UKI carryvconsole.confas before.Not in this PR
Machines that are already installed keep their
/etc/vconsole.conf. They stay on US until the user picks a layout under Setup > Keyboard > Keyboard Inputs or setskb_layoutin~/.config/hypr/input.lua.Testing
The coverage check in
test/shell.d/provision-owner-keyboard-test.shlooks up each form keymap insetup-form.shalone, from a clean shell, the way the ISO does, and verifieskmscon.shresolves extra keymaps when sourced on its own.bash test/shell.d/provision-owner-keyboard-test.sh bash test/shell.d/setup-form-test.sh bash test/shell.d/input-method-test.sh OMARCHY_PATH=$PWD python3 test/shell.d/typing-setup-checks.pyAll 4 pass. The ISO's
test/unit/test_keyboard.pyalso passes against this branch.