Repository navigation
Conversation
The greeter runs its own Hyprland instance, and its config carried no input block, so Hyprland fell back to its built-in "us" default. A password set under any other layout could not be typed at the login prompt, while the TTY and the user session both had the layout right. Move the vconsole.conf layout resolution out of default/hypr/input.lua into default/hypr/keyboard.lua and have both configs read it, so the two instances cannot drift apart. The greeter keeps the non-Latin fallback for its own reason: passwords are Latin, so a non-Latin-only layout would leave the correct one untypeable. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
|
Also closes related ticket: #9859 |
Member
|
Automated duplication check: this pull request looks similar to #6896, which covers the same SDDM keyboard layout. I keep that one open and close this one to consolidate review. If you feel this is the wrong decision, please open the PR again with a note on the difference. |
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.
Fixes #6880. Also covers #9421, which reports the same bug independently.
The bug
The SDDM Wayland greeter runs its own Hyprland instance:
default/sddm/hyprland.luaset onlymiscandanimations— noinputblock — so Hyprland fell back to its built-inusdefault. A password set under any other layout cannot be typed at the login prompt, while the LUKS prompt (vconsoleKEYMAP) and the user session (default/hypr/input.lua, which readsXKBLAYOUT) both get it right.It is easy to miss because autologin skips the greeter at boot: the first time most users meet it is after an explicit logout, and then they simply cannot log back in.
The fix
default/hypr/input.luaalready resolved the layout from/etc/vconsole.conf. That block moves todefault/hypr/keyboard.lua, which returns{ layout, variant, options }, and both configs read it — so the session and the greeter cannot drift apart. No behaviour change for the session; the test below pins that.The greeter is started by sddm-helper rather than the user session, so it never runs
default/hypr/bootstrap.lua. It sets up just the module path it needs, with the sameos.getenv("OMARCHY_PATH") or "/usr/share/omarchy"idiomconfig/hypr/hyprland.luaalready uses (deliberately notbootstrap.lua, which dereferences$HOME— not something to rely on in the greeter's environment).The non-Latin fallback carries over to the greeter, and matters more there than in the session: passwords are Latin, so a non-Latin-only layout would leave the correct password untypeable. Same reasoning as the
vconsole.confguard inetc/mkinitcpio.conf.d/omarchy_hooks.conf.kb_modelandnumlock_by_defaultare deliberately left alone — out of scope for this bug.Verification
test/shell.d/hyprland-keyboard-layout-test.shgains four greeter assertions alongside the existing session ones, driven through the same stubbedvconsole.conf. The greeter is loaded the way SDDM loads it — by path, with no module path prepared for it — so thepackage.pathline is exercised rather than assumed. The non-Latin-list sync check now readsdefault/hypr/keyboard.lua../test/all: 222 of 226 shell test files pass. The 4 failures (config,snapper,unowned-system-paths,bar-icon-geometry) fail identically on an unmodified checkout here — the first three want anomarchy-pkgscheckout, the last is sub-pixel monitor geometry.Beyond the stubs, the greeter config was run as a real nested Hyprland instance (headless backend) on a
besystem:with
misc.disable_hyprland_logoandanimations.enabledstill resolving to the values the file already set.Note for maintainers
The two open reports carry workarounds that no longer hold: #9421 edits the packaged
/usr/share/sddm/hyprland.lua, whichomarchy updatesilently reverts, and #6880 predates the move to Lua (it usessource =against the oldhyprland.conf) and hardcodes one layout. Worth closing both on this rather than leaving those recipes as the answer.Reported on Omarchy 4.0.2-1, Hyprland 0.56.2-1, sddm 0.21.0-7, layout
be.