Repository navigation
Skip the nightlight toggle's wait when hyprsunset is already running - #15035
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
…started Addresses Greptile review: one launched at login and toggled mid-boot could accept the temperature and then apply its boot default over it. The tests now simulate that default instead of only checking for a sleep. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
omarchybot
added a commit
to manuaudio/omarchy
that referenced
this pull request
Oct 15, 2026
The loop's comment, from omacom#15035, says why a hyprsunset still starting needs the resend even once its socket answers: it applies its boot default after accepting a temperature. The rewrite in this branch described only an unopened socket, which loses the reason a process under three seconds old counts as starting, and is unrelated to scoping the lookup to this user. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Codex Medium <noreply@openai.com>
omarchybot
added a commit
that referenced
this pull request
Oct 16, 2026
Keeps both sets of nightlight tests: the identity and default-temperature cases from this branch, and the hyprsunset boot-wait cases from #15035. The toggle script merged cleanly, so off still resends until the temperature sticks and then resets to identity. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
omarchybot
added a commit
to yashranaway/omarchy
that referenced
this pull request
Nov 2, 2026
quattro (omacom#16334) removed the source-text check that sat beside this branch's new test, and (omacom#15035, omacom#14489) added the boot-wait and identity-reset tests above it; the resolution keeps quattro's file and appends this branch's detached-daemon test after them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
omarchy-toggle-nightlightalways slept 200ms after setting the temperature before checking that it stuck. The wait exists because a freshly started hyprsunset applies its boot default at the end of startup and overrides anything set before then. One that was already running applies the change at once.The toggle now remembers whether it just started hyprsunset. If not, it checks right after setting and stops there; the fresh-start path keeps the original resend-and-wait loop.
Measured on a running desktop: a toggle with hyprsunset running took 240ms before and 36ms after. A toggle that starts hyprsunset still takes ~450ms and lands on the right temperature.
nightlight-test.shcovers both paths with a stubbedsleep.🤖 Generated with Claude Code