Ever thought that someone should just shutdown your PC at night so that you can sleep on time. Here's the solution:
Add .sleep.sh in your home directory. Make it executable by doing:
cd ~ && chmod +x .sleep.sh
Append crontab entry given in sudo_crontab.txt to your root cron using,
sudo crontab -e
Append crontab entry given in crontab.txt to your user cron using,
crontab -e
Voila! Your PC should automatically given you a shutdown notification at 11:30 PM. And will shutdown after 20 seconds.
- You can change the time as you wish by editing crontab entries.
- You can also change the icons and sound of notification by editing .sleep.sh