Skip to content

Instantly share code, notes, and snippets.

@jampajeen
Created January 12, 2021 15:35
Show Gist options
  • Save jampajeen/d19f36a7309d0ead0e1f9735a26d66f3 to your computer and use it in GitHub Desktop.
Save jampajeen/d19f36a7309d0ead0e1f9735a26d66f3 to your computer and use it in GitHub Desktop.
Disable/Enable Mac OSX sleep on lid closed
# 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
@agumorales
Copy link

Thanks so much for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment