giftbare.blogg.se

Newbienudes sleepwatcher
Newbienudes sleepwatcher




newbienudes sleepwatcher

s /System/Library/CoreServices/Menu\ Extras/nu/Contents/Resources/CGSession -suspend usr/local/opt/sleepwatcher/sbin/sleepwatcher If you decide to run sleepwatcher as a daemon, then you'll need to create or modify (in case you download the program from the web) a plist file that works as a configuration file to start a daemon, the plist file that I modify looks like: With this option you'll need to run sleepwatcher manually on every logoff, restart or shutdown. The command needs to be between quotation marks Must not take longer than 15 seconds because after this timeout the sleep mode is forced by the system. Maybe you'll need to change the path to sleepwatcherĮxecute sleepcommand when the Mac is put to sleep mode. Running by command line: /usr/local/opt/sleepwatcher/sbin/sleepwatcher -s "/System/Library/CoreServices/Menu\ Extras/nu/Contents/Resources/CGSession -suspend" &

Newbienudes sleepwatcher install#

Installing a package manager like brew and after install it running brew install sleepwatcher, if you are familiar with some linux flavor then this is like the package manager apt-get for Ubuntu or dnf for Fedora and so on.Īfter installing sleepwatcheryou'll need to decide if you want to run it like a daemon or by command line:.Downloading the files from the URL above and follow the instructions on ReadMe.rtf.To run a command when the Mac goes to sleep you can use Sleepwatcher you have at least two options to install it: You'll need to run a command that locks the Mac when the lid is closed that means when Mac goes to sleep, the command that needs to execute every time the Mac goes to sleep is: /System/Library/CoreServices/Menu\ Extras/nu/Contents/Resources/CGSession -suspend






Newbienudes sleepwatcher