/random-scripts

My Random Scripts

Primary LanguagePython

My Random Scripts

suspendInSixtySeconds.py

Does what it says. EDIT: Doesn't work, because cron cannot call GUI.

Create entry in /etc/crontab like: 45 18 * * * user python3 ~/RandomScripts/suspendInSixtySeconds.py

At 18:45 each day a window pops up with a 60 second count-down. Unless you cancel it, it will suspend (sleep) your computer.

Requirements

  • sudo apt install python3 python3-tk
  • sudo pip3 install PySimpleGUI