goto_sleep
goto_sleep copied to clipboard
Because sometimes you look out the window and it's already 6am.
GOTO SLEEP
Because sometimes you look out the window and it's already 6am.

Requirements
This script requires Ruby, and it works on Mac and Linux.
Install
git clone https://github.com/ndbroadbent/goto_sleep.git
cd goto_sleep
./install.sh
Details
Notification cron tasks will be set up for the current user, and a shutdown cron task will be set up for the root user.
The default shutdown time is 2:30am. The default warning notifications are at 45 minutes, 20 minutes, and 5 minutes before shutdown.
You can configure these in config.yml.
Uninstall
./uninstall.sh
cd ..
rm -rf goto_sleep