
I made sure that brew service is available, but didn't make it work. I want sleepwatcher to always run on my computer so it executes ~/.sleep and ~/.wakeup when going to sleep or wake up.

Did I miss something important? I read the README but it's confusing to me, I have no experience with launchd, daemons, services. Remote: Total 7 (delta 0), reused 4 (delta 0), pack-reused 0Įrror: Formula `sleepwatcher` not installed, #startup_plist not implemented or no plist file unsure now. Remote: Compressing objects: 100% (6/6), done. I wanted to run the service as suggested in the output, but got the following error: brew services start sleepwatcherĬloning into '/usr/local/Library/Taps/homebrew/homebrew-services'. It can be used to execute a Unix command when the. 🍺 /usr/local/Cellar/sleepwatcher/2.2: 8 files, 53.3K SleepWatcher is a command line tool (daemon) for macOS that monitors sleep, wakeup and idleness of a Mac. To have launchd start sleepwatcher now and restart at login: sleep file) is running and then close the lid of your MacBook (or go to Apple Menu > Sleep if you aren’t on a MacBook). These are the examples provided by the author. Make sure KeePassX (or whatever program you added to the. Ignore information about installing the binary and man page,īut read information regarding setup of the launchd files which usr/local/Cellar/sleepwatcher/2.2/ReadMe.rtf You need to actually convert your AppleScripts into a Shell Script (they are not the same).

#SLEEPWATCHER MAC TUTORIAL INSTALL#
=> Pouring sleepwatcher-2.2.el_įor SleepWatcher to work, you will need to read the following: To install Sleepwatcher via MacPorts, simply type in the command line: sudo port install sleepwatcher then type: sudo port load sleepwatcher Sleepwatcher will then automatically be installed and loaded. Everything worked well as it seems, here's the output: brew install sleepwatcher
