Offer Thai as an install-time keyboard choice - #9358
Open
kengggg wants to merge 2 commits into
Open
Conversation
kbd ships no Thai console keymap, so the picker could not offer it. Add Thai (Kedmanee) as an XKB-only layout: persist KEYMAP=us and XKBLAYOUT=th so Hyprland duals us,th while passwords and LUKS stay Latin.
Thai is an added branch: persist us with the existing loadkeys/systemd-firstboot/localectl body, then write XKBLAYOUT. Do not relocate that body into setup-form.sh.
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.
Thai is missing from the install-time keyboard picker because the list maps labels to console keymaps and kbd ships no Thai map. Thai typing is still a normal XKB layout (
th, Kedmanee by default) — not an IME — and Hyprland already knows what to do withXKBLAYOUT=th:default/hypr/input.luaprefixesus,for non-Latin layouts (Thai is already on that list) and addsgrp:alts_toggle.Selecting Thai (Kedmanee) now persists
KEYMAP=usandXKBLAYOUT=th. The console, LUKS prompt, and login password stay Latin. The first session comes upus,thwith Left Alt + Right Alt to switch. Caps Lock stays compose.apply_keyboardinomarchy-provision-ownerkeeps its existingloadkeys/systemd-firstboot/localectlpath. Thai is an extra branch: reuseapply_keyboard us, thenomarchy_write_xkblayout. XKB-only picker values are named inOMARCHY_XKB_ONLY_LAYOUTSinsetup-form.shso the ISO configurator can persist them the same way.Companion: omacom/omarchy-iso#141. Without it,
configure_keyboardrejectsthand a fresh ISO install stays US. First-boot owner setup on an already-installed machine uses this package alone.Not in this PR: post-install wizard, Pattachote/Manoonchai, fcitx5, Thai UI locale.
Related: #8050, #7677. Same installer hole as #9299, but Thai is xkb rather than an IME.
Testing
test/shell.d/setup-form-test.sh— picker maps Thai (Kedmanee) →th; German still →de; English (US) still leadstest/shell.d/apply-keyboard-test.sh— original persist path still present;omarchy_write_xkblayoutrewrites only XKBLAYOUT; that vconsole duals asus,thindefault/hypr/input.luatest/shell.d/hyprland-keyboard-layout-test.sh—XKBLAYOUT=th→us,th