prevent your mac from going to sleep when closing the lid. π.
This is a simple cli tool to prevent your MacBook from going to sleep when closing the lid. Use it instead of running tools that require a Kernel Extension.
Tested on macOS Mojave 10.14.2
npm install -g @garygrossgarten/wach
Enable sleep prevention β
wach enable
If you want to disable sleep prevention again π
wach disable
To get a report of all the current Power Management settings π
wach report
- Clone the repository and cd into the directory
- run
npm install
- run
npm run build
- run the application by using
node .
ornpm run start
Distributed under the MIT license. See LICENSE
for more information.