Repository navigation
Move us to the front of a non-Latin layout list instead of duplicating it - #14076
Conversation
[Medium impact] The PR appears safe to merge; no actionable new issue or outstanding previous finding was identified. SummaryThe PR moves an existing Latin-capable Reviews (3) · Last reviewed commit: "Keep a plain us in front when the list's..." · Reviewed by Greptile |
|
#6896 merged after this was opened and copies this layout logic into |
…g it Co-Authored-By: Claude Opus 5.5 <[email protected]>
d6b7e81 to
59a36f2
Compare
|
@aholbreich Thanks, good catch. I rebased onto current |
|
Thanks. Checked |
chessing234
left a comment
There was a problem hiding this comment.
everything seems fine, ready to merge.
|
Rechecked after this week's rewrite of |
|
Thanks for rechecking this against both rewrites. The clean merge and 25/25 result confirm the branch still fits current |
us(rus) is Russian phonetic and us(chr) is Cherokee. Moving one of those to the front, as XKBLAYOUT=ru,us with XKBVARIANT=,rus would, leaves no Latin layout leading, so the session's keybindings and the greeter's password both stop working. Only reuse a us entry whose variant types Latin; otherwise prepend plain us as before. Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Codex Medium <[email protected]>
|
Reviewed and verified on an Omarchy worker VM. The bug is real and this fixes it. I pushed one small fix to the branch, described below. What was checked
Pushed: Codex (medium effort), the second reviewer, found a case the move gets wrong: two Codex reviewed the fix in a second round and found nothing further. Its independence from this review is not guaranteed. I also linked #14075, the same report as #14074, so both close when this merges. The open #12896 edits the same Nothing is left for the author. This is waiting on the maintainer. |
|
Thanks for catching the non-Latin |
|
Thanks @manuaudio! |
Fixes #14074 (also filed as #14075).
When the first console layout cannot type Latin letters, the session config puts
usfirst so Omarchy's Latin-keysym bindings resolve. It did that by prependingus,to the complete list, even whenuswas already present.XKBLAYOUT=ru,usbecameus,ru,us, sogrp:alts_toggleappeared to do nothing on every other press. Variants could also become detached from their layouts.I keep
usfirst, as e232c99 intended, but move an existingusentry and its positional variant instead of adding a duplicate. Layouts withoutusretain the old prepend behavior. After #6896 copied this resolution into the SDDM config, I rebased and applied the same fix there so the session and greeter stay in sync.The focused regression covers both resolvers with:
il,uscase, which fails onquattrobecause it produces[us,il,us]ru,uslistru,uswithphonetic,intl, proving thatintlfollowsusua,us,dewith positional variants, proving that the third pair remains intactAll 16 checks in
test/shell.d/hyprland-keyboard-layout-test.shpass.keyboard-layout-test.shandinput-group-migration-test.shalso pass. Greptile reviewed commit59a36f2dat 5/5 with no actionable finding.I did not run a live SDDM login cycle; the greeter path is covered by the focused resolver test.
Fixes #14075