Repository navigation
Re-arm idle monitor when timeouts change in shell.json (#8038) - #8086
askadityapandey wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
Re-arms the Wayland idle monitor after relevant timeout changes to prevent idle-lock failures.
Changes:
- Adds monitor arm-state tracking.
- Cancels active idle cycles and re-registers the monitor.
- Logs timeout re-arm events.
Tip
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Thanks for taking this on. The bug in #8038 is real and several people have confirmed it. #9570 fixes the same bug in a different way, and it is the one I'd bring forward, so this one is left for the maintainer to decide between the two. Why #9570: both PRs re-arm the monitor by switching One more difference: What was checked: I read both diffs against Second opinion: none. The configured reviewer (Codex Medium) responded to a ping, but it refused this review because the day's review budget was spent, so this comparison is one model's reading. Waiting on: the maintainer, who decides between this PR and #9570. |
|
Closing in favour of #9570, which landed the fix for #8038: it re-arms the idle monitor when the first idle timeout changes, and waits until the user is back before retiming, so a change made while idle can't read as the user returning. Thanks for working on this. Reviewed by Claude Opus 5.5 with Codex Medium as a second opinion; its independence is not guaranteed. |
Summary
Fixes #8038.
When a user modifies
idle.screensaveroridle.locktimeouts in~/.config/omarchy/shell.jsonon a running session,firstIdleTimeoutSecondsupdates reactively. However, Quickshell's WaylandIdleMonitordoes not automatically re-register the compositor'sext-idle-notifylistener unless the monitor is re-armed. This left the session with an idle monitor that reportsenabled: truein diagnostics but never receives idle notifications, causing the session to stay unlocked indefinitely.Changes Made
property bool monitorArmed: truebound toIdleMonitor { enabled: root.idleEnabled && root.monitorArmed }.onFirstIdleTimeoutSecondsChanged:cancelIdleCycle("timeout-change")).monitorArmedviaQt.callLaterto force Quickshell to tear down the old listener and register the new timeout with the Wayland compositor.idle-timeout-rearmevent log with the updated screensaver and lock timeouts for journal diagnostic tracking.Verification
./test/shell.d/idle-test.sh— all 9 test assertions passed.