Skip to content

Instantly share code, notes, and snippets.

@fguisso
Created September 30, 2015 16:05
Show Gist options
  • Save fguisso/10d1cde1e3e92b257e00 to your computer and use it in GitHub Desktop.
Save fguisso/10d1cde1e3e92b257e00 to your computer and use it in GitHub Desktop.
Set Sleep Due to Mac system inactivity in Command Line

##Set sleep time sudo systemsetup -setcomputersleep 60 where 60 is te time in minutes

##Turn of sleep sudo systemsetup -setcomputersleep Never

##Check current sleep status sudo systemsetup -getcomputersleep

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