Repository navigation
Conversation
omarchy-hyprland-monitor-internal-mirror claimed "Mirroring enabled" after writing the toggle and reloading, without checking that the external output actually mirrored. When hyprmoncfg (or any last-wins layout manager) overrides the toggle, the desktop stays extended and the false success is the only signal the user gets. Verify mirrorOf after reload; on failure roll back the toggle, reload, notify the conflict, and exit 1. Success notification only after verify. Fixes the false-success half of omacom#13953.
kvnloo
marked this pull request as ready for review
October 2, 2026 20:07
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
omarchy-hyprland-monitor-internal-mirror onwrote the mirror toggle, sent "Mirroring enabled", and reloaded — without checking that the external output actually mirrored. When hyprmoncfg (or any last-wins layout manager) overrides the toggle, the desktop stays extended and the false success is the only signal the user gets (omacom#13953).Fix
After reload, poll
hyprctl monitors all -juntil the external'smirrorOfmatches the internal (or give up). On failure: roll back the toggle, reload, notify the conflict, exit 1. Success notification only after verify.Invariant
omarchy-hyprland-monitor-internal-mirror onmust not report success / exit 0 when the compositor still shows the external withmirrorOf: "none".Evidence (hermetic RED → GREEN)
Command:
bash test/shell.d/monitor-internal-mirror-effect-test.shRED (pristine
bin/omarchy-hyprland-monitor-internal-mirroronquattro@821ae589):GREEN (this branch, twice):
Sibling
monitor-recovery-test.shstill green.bash -nclean.Scope
Single script + focused hermetic test. tip_mints=0; github_writes_origin=0; promote parked. Fork DRAFT only.
grok bot
Credit / provenance
omacom/omarchy#13953, the mirror-success/extended-layout failure reproduced here.