carrot69 / keep-presence

Keeps your computer awake by moving the mouse or pressing a key when you step away.
Creative Commons Zero v1.0 Universal
246 stars 38 forks source link

Daemon mode #7

Closed cjohnston1158 closed 2 years ago

cjohnston1158 commented 2 years ago

It would be nice to have a daemon mode.

carrot69 commented 2 years ago

To run it as a daemon, you can just:

nohup keep-presence -c -s2 -p10 &> /dev/null &

Knowing that, do you see any advantage if we add the --run-as-daemon option? What would that be?

cjohnston1158 commented 2 years ago

Other than cleaner/easier, no, not really.

carrot69 commented 2 years ago

@cjohnston1158 this will need some changes on the code... I want to do a refactor of the code, maybe I can add this feature then; I'll think about this, thanks!