Repository navigation
Add the setup form's XKB layout for keymaps systemd's table lacks - #528
Merged
Merged
Conversation
systemd-firstboot writes XKBLAYOUT only for keymaps in kbd-model-map. For the 8 form keymaps that are not in it, /etc/vconsole.conf got only KEYMAP, and Hyprland on the installed system typed US. configure_keyboard now adds the lines from omarchy_keymap_xkb_settings in the vendored setup-form.sh, as first-boot setup does. A setup form without that function adds nothing, so an ISO built against an older runtime keeps the current behavior.
[Medium impact] The reviewed changes appear safe to merge. SummaryAdds missing desktop keyboard settings from the shared setup form.
No actionable new issues were found. The external runtime hooks were unavailable, so their agreement with the Serbian Latin exception was not confirmed. Reviews (3) · Last reviewed commit: "Keep Serbian Latin embedded in pre-built..." · Reviewed by Greptile |
Install test passed
Boots are loader, kernel and userspace, without the VM's firmware. Install phases, x86_64
Install phases, aarch64
|
…ts out of the pre-built UKI - Source /usr/share/omarchy-iso/setup-form.sh before kmscon.sh in .automated_script.sh so kmscon_session resolves the 8 extra layouts moved into setup-form.sh. - Match omarchy_hooks.conf and omarchy_vconsole.conf in uki_vconsole.py and phases_impl.py so non-Latin leading XKBLAYOUTs (bg, kg, ua, ru, ...) are not embedded into the pre-built UKI, keeping Plymouth on US at the LUKS prompt consistently before and after kernel updates. - Guard empty OMARCHY_PATH and no-op writes in keyboard.py, and add unit test coverage that runs without localectl or a sibling checkout.
- Make vconsole_is_nonlatin variant-aware for rs(latin*) so Serbian Latin (sr-latin) is still embedded in the pre-built UKI instead of falling back to US at first boot. - Clarify log messages in finalize_limine_boot for non-Latin layouts. - Add unit tests for sr-latin, multi-layout cz embedding, and drift against omarchy_hooks.conf.
This was referenced Nov 25, 2026
emirb
added a commit
that referenced
this pull request
Nov 26, 2026
Brings in the hardware layers (#530), the library read before the first pacman transaction (#531), systemd-boot installs (#489, #529) and the setup form's XKB layouts (#528). Two conflicts. In builder/build-root-image.sh both steps stay: the hardware layers first, which write into the image tree, then the Try layer against the finished image. In phases_impl.py the hardware layer paths join the squashfs ROOT_IMAGE and its mount paths.
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
/etc/vconsole.confgets onlyKEYMAPfor them, so Hyprland and the SDDM greeter type US.Merge omacom/omarchy#20187 first. It moves the table into
setup-form.sh, which this ISO copies onto the image at build time.The change
configure_keyboardrunssystemd-firstbootas before. If the result has noXKBLAYOUT, it now adds the lines thatomarchy_keymap_xkb_settingsin the vendoredsetup-form.shprints. First-boot setup inomarchy-provision-owneradds the same lines, so both install paths write the same file.setup-form.shwithout that function adds nothing. An ISO built against an older Omarchy runtime keeps the current behavior..automated_script.shexplicitly sources/usr/share/omarchy-iso/setup-form.shbeforekmscon.shsokmscon_sessionhasomarchy_keymap_xkb_extrawhen relaunching kmscon for any of the 8 layouts.uki_vconsole.pyandphases_impl.pymatchomarchy_hooks.confandomarchy_vconsole.conffor non-Latin leadingXKBLAYOUTs: the pre-built UKI refuses to embed them and stays on its US placeholder when baked withus, so Plymouth uses US at the LUKS prompt consistently before and after kernel updates.detect-keyboard-layout.sh, which no longer exists. They now namedefault/hypr/keyboard.lua.Boot and disk password
For Latin layouts (
colemak,cz,de_CH-latin1,no-latin1,pl),_prebuilt_uki_keymap_staledetects the non-US keymap anduki_vconsole.pyembedsKEYMAPandXKB*into the pre-built UKI so Plymouth prompts in the chosen layout.For
bg-cp1251,kyrgyzandua(and other non-Latin layouts likeru), the leadingXKBLAYOUTis non-Latin.uki_vconsole.pyrefuses to embedvconsole.confand_prebuilt_uki_keymap_staletreats aus-baked pre-built UKI as already matching — matchingomarchy_hooks.confandomarchy_vconsole.confso the LUKS prompt stays on US both on first boot and after kernel updates.Testing
All pass against omacom/omarchy#20187.
FallbackXkbSettingsTest,test_uki_vconsole.pyandtest_prebuilt_uki_keymap.pyalso run withoutlocalectlor a sibling Omarchy checkout.