Repository navigation
Conversation
cDurham
force-pushed
the
battery-poll-interval
branch
from
December 4, 2026 18:27
a98a16a to
92fefc8
Compare
The shell ran omarchy-battery-status once a second for as long as it ran, in each of the three places that show the battery. Each run starts bash and one or two awk: several process launches every second on a two-core tablet, only to redraw a percentage that moves once in minutes. Read it when UPower says the charger went in or out or the percentage moved, and every 30 seconds besides, so discovery still does not depend on UPower. The open power panel reads every second as before. Assisted-by: LLM Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Chris Durham <47431093+cDurham@users.noreply.github.com>
cDurham
force-pushed
the
battery-poll-interval
branch
from
December 4, 2026 18:30
92fefc8 to
f7e3ed9
Compare
cDurham
marked this pull request as draft
December 4, 2026 19:12
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.
The shell ran
omarchy-battery-statusevery second, in three places, each run starting bash + awk. Now it runs when UPower reports the charger going in or out or the percentage moving, plus every 30s as a fallback.Tested on an iPad mini 2 (J85), idle desktop: from ~1 run/s to 3 runs in a minute. Unplug/replug flips the icon straight away.
Trade-off: the charge rate (watts) outside the open power panel can be up to 30s old.
🤖 Generated with Claude Code