Repository navigation
Lead a non-Latin keyboard selection with the chosen US variant - #16868
ThatRetiredDude wants to merge 3 commits into
Conversation
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge; no actionable new issues were found. Summary
Reviews (4) · Last reviewed commit: "Run typing-setup-checks.py from input-me..." · Reviewed by Greptile |
|
Agreed, that assertion held on the old code too. Replaced it with the three-way case, ["ru", "us:rus", "us:dvorak"] producing ("us,ru,us", "dvorak,,rus"), which checks both that us:rus stays where it is and that the Dvorak layout moves to the front. It fails on the previous implementation. |
|
I reviewed and verified this, and the fix does what it says. Nothing was pushed to your branch. Reproduced on an Omarchy worker VM. I ran
Tests. The head merges cleanly with current Second opinion: Codex Medium and muse-wonder (pi, thinking high) both reviewed it and found no defect. Their review isn't guaranteed to be independent of mine. Both checked the fix against No open issue reports this, so nothing is linked. This now waits on the maintainer. |
33b5734 to
7212e39
Compare
|
I rechecked Codex GPT-6.2 Sol at high effort reviewed the change. Opus 5.5 at high effort and muse-wonder via pi at high effort also found no code defect. The reviewers could see the driver’s notes. The CLI suite passed. The full shell suite hit four failures outside the input-method checks. The audio panel, installer logo, and runtime smoke assertions also failed on |
Picking Russian and English (US, Dvorak) under Setup > Typing wrote us,ru,us with a plain QWERTY the user never chose, so the layout toggle cycled through three layouts. keyboard_values now moves the chosen US layout and its variant to the front, as input.lua does for a saved list, and only adds a QWERTY when no Latin-typing US layout is there.
A Russian phonetic US variant chosen ahead of Dvorak must stay where it is while the Dvorak one moves to the front; the previous assertion held on the old code too.
Commit 0fae8e6 (omacom#19904) removed test/shell.d/typing-setup-test.sh while leaving typing-setup-checks.py in place. Run it alongside input-method-checks.py so the keyboard_values regression tests execute in ./test/shell and CI.
7212e39 to
b44a708
Compare
|
Recommend: Hold — a maintainer needs to approve the Tests run on Codex GPT-6.2 Sol (high), Opus 5.5 (high), and muse-wonder (high) reviewed the keyboard selection path and confirmed that CI picks up the restored typing checks. We found no code defect. The reviewers agreed, with no guarantee of independence. Worker verification remains pending for this revision. Tests run |


Problem
Under Setup > Keyboard > Keyboard Inputs, picking a non-Latin layout first and a US variant alongside it, such as Russian and English (US, Dvorak), writes
~/.config/omarchy/keyboard-layoutsas:keyboard_valuesindefault/input-methods/typing_setup.pykeeps the Latin-leading rule by prepending a plainus, but it only drops an existing entry that is exactlyus. Aus:dvorakorus:colemakchoice stays where it was, so the user gets a QWERTY layout they never chose, and the Alt+Alt toggle and the bar's layout indicator cycle through three layouts instead of two.default/hypr/input.luaalready handles a saved list the other way: it moves the existingusentry together with its variant to the front, and skips the two US variants that cannot type Latin letters (rus,chr). The menu's writer and the config's reader disagreed.Fix
keyboard_valuesnow moves the first chosen US layout, with its variant, to the front of the list, and only adds a plainuswhen there is no US layout that types Latin letters, matchinginput.lua.["ru", "us:dvorak"]becomesus,ru/dvorak,, and aus:rusentry is still left in place behind a new QWERTY (or behind a chosen Latin-capable US variant).Testing
Added two assertions to
test/shell.d/typing-setup-checks.py:["ru", "us:dvorak"]→("us,ru", "dvorak,")(fails onquattrowith('us,ru,us', ',,dvorak'))["ru", "us:rus", "us:dvorak"]→("us,ru,us", "dvorak,,rus")(checks thatus:russtays put whileus:dvorakmoves to the front)Also wired
test/shell.d/typing-setup-checks.pyintotest/shell.d/input-method-test.shso these assertions execute in./test/shelland CI aftertyping-setup-test.shwas removed in #19904.