Add a caffeinate toggle to the power pane #3
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hold the session awake on demand: a toggle in the power pane that
disables the idle behaviour while it is on.
The bar shows it: a lightning bolt either side of the clock and date
module in the centre while caffeinated, so the state is legible
without opening anything.
Should survive a hypridle restart and the docked/undocked profile
switch, and say what it is doing when it cannot take the inhibitor.
Implemented in
05772aa.donbox caffeine [status|on|off|toggle]holds a logind idlelock. hypridle-common.conf leaves ignore_systemd_inhibit false,
so one lock covers dimming, the lock, the screensaver, blanking
and the undocked suspend, and it survives a hypridle restart or
a profile switch because it has nothing to do with hypridle.
Sleep is left alone so Suspend from the same pane still works.
The pane has a Stay awake section with a Caffeinate chip, and
ClockDisplay grows a bolt either side while it is on. The shell
watches ~/.local/state/donbox/caffeine rather than polling, so
turning it on from a terminal moves the bar too.
test/shell.d/caffeine-test.sh covers on, off, toggle, the
repeated-on case, and a stale record left by a reboot, against a
stub inhibitor so the suite never touches the real session.
Left open until the bolts have been seen: the visual check ran
into a magnified session and I would rather you looked than that
I moved your zoom about.
Bolts confirmed on screen. Closing.