Is there a way to automatically make the coffee cup full?
retpoline opened this issue · comments
First, thanks for the awesome project!
I'm installing this over SSH, so I need a way to make it activate automatically when the app is executed. Can this happen with command line args or a config file, or otherwise?
Thanks!
Hi, great question!
1st Approach: You could use the URI schemes introduced in 1.3, here is the section in the changelog:
https://github.com/newmarcel/KeepingYouAwake/blob/main/CHANGELOG.md#v13
Basically using open keepingyouawake:///activate
will initially activate the app over SSH. This won't persist after termination.
2nd Approach: If you are looking for a permanent solution, you can set the "Activate on Launch" checkbox by executing this defaults command before launching the app.
defaults write info.marcel-dierkes.KeepingYouAwake info.marcel-dierkes.KeepingYouAwake.ActivateOnLaunch -bool YES
You're awesome! Good to know there's two methods, works like a charm.
Thanks!