Repository navigation
Conversation
Contributor
|
The screensaver spawned pgrep, hyprctl and jq every second per monitor to notice focus leaving. It now follows Hyprland's event stream, ends when that stream does, and runs one effect after another, retrying a failed one after a pause and stopping on a signal so a lock's stop can't race a replacement. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dhh
force-pushed
the
screensaver-battery
branch
from
October 13, 2026 12:21
d4b123d to
739b92f
Compare
Contributor
Author
|
Closing per DHH: keep the screensaver as it is. |
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 changed
bin/omarchy-screensaverspawnedpgrep,hyprctlandjqevery second per monitor to notice focus leaving. It now:.socket2.sock), opened before anything can move focus, and confirms a focus change a second later (the launcher passes focus through each monitor's window while it opens them);Any key still ends it. The frame rate stays at 120.
The manual no longer says mouse movement exits the screensaver; it never did (ttfx doesn't enable mouse reporting).
Earlier versions of this PR also skipped the screensaver on battery. That part is removed: the screensaver runs on laptops as before.
Measured
Screensaver process wakeups: 61 per 15s on quattro, 0 with this change.
Tests
New
test/shell.d/screensaver-test.shcovers focus leaving, the event stream ending, a key, effect sequencing, failed-effect retry and a lock-style stop, all mutation-checked.idle-test.shand./test/clipass.Human check
Multiple monitors: start the screensaver, then move focus or press a key, and confirm every monitor's instance closes.
🤖 Generated with Claude Code