electrickite / caffeinated

Prevents the system from entering an idle state
MIT License
9 stars 1 forks source link

Feature request: Allow executing other process #1

Open christophgysin opened 3 years ago

christophgysin commented 3 years ago

I would like to be able to start a process, and prevent the system from going to sleep until the process exits.

$ caffeinated [command...]

Incidentially, that would also provide an easy way to set a timeout, using e.g.

$ caffeinated sleep 1h
electrickite commented 3 years ago

On systems running systemd, you can use the systemd-inhibit to accomplish this. Since it already provides this capability, I'd rather not complicate caffeinated.

christophgysin commented 3 years ago

Fair enough. But if you assume everyone has systemd, what is it that this project provides that isn't already part of systemd?