Configure macOS power management settings, as one might do in System Preferences > Energy Saver. Commands that modify settings must begin with
sudo
. More information: https://keith.github.io/xcode-man-pages/pmset.1.html.
pmset -g
pmset -g batt
pmset displaysleepnow
sudo pmset -c displaysleep 0
sudo pmset -b displaysleep 15
sudo pmset repeat wake MTWRF 09:00:00
sudo pmset -a displaysleep 10 disksleep 10 sleep 30 womp 1