caffeine-ng
caffeine-ng copied to clipboard
allow to send a signal to caffeine to activate / deactivate
Hi,
it would be desirable if caffeine-ng would have something like this implemented:
- Activate/Deactivate upon SIGUSR1/SIGUSR2 or such. That would enable users to deactivate caffeine on suspend via suspend hooks. This is my favorite, since there would be no need to do something like
su - -l $USER -s "caffeine -d"
in suspend hook. - Make
caffeine -a
orcaffeine -d
actually do what they advertise to an already running instance.
For a very long time, I've been considering splitting caffeine into a daemon (that does the actual locking and stuff), and a GUI component that sits in the tray.
I've though about this feature many times, but I keep waiting to get time to do that other thing first.
I'll re-evaluate my priorities when I have a bit of free time, and reconsider which of these ought to go first, since this really does make sense.
This project has moved to codeberg.
Follow-up for this issue is at https://codeberg.org/WhyNotHugo/caffeine-ng/issues/7