Forked from jampajeen/gist:d19f36a7309d0ead0e1f9735a26d66f3
Created
October 5, 2021 19:38
-
-
Save bmarkons/5bf80b97ac4f5860f903c60cbbe3540d to your computer and use it in GitHub Desktop.
Disable/Enable Mac OSX sleep on lid closed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# disable sleep | |
sudo pmset -b sleep 0; sudo pmset -b disablesleep 1 | |
# re-enable sleep | |
sudo pmset -b sleep 5; sudo pmset -b disablesleep 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment