caffeine-ng icon indicating copy to clipboard operation
caffeine-ng copied to clipboard

allow to send a signal to caffeine to activate / deactivate

Open steinex opened this issue 6 years ago • 1 comments

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 or caffeine -d actually do what they advertise to an already running instance.

steinex avatar May 24 '18 16:05 steinex

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.

WhyNotHugo avatar May 29 '18 03:05 WhyNotHugo

This project has moved to codeberg.

Follow-up for this issue is at https://codeberg.org/WhyNotHugo/caffeine-ng/issues/7

WhyNotHugo avatar Nov 06 '22 14:11 WhyNotHugo