dotfiles-old/.local/scripts/auto-shutdown.sh

9 lines
245 B
Bash
Raw Normal View History

2022-03-10 03:42:22 +00:00
#!/bin/sh
notify-send "auto-shutdown.sh" "System will power off in 30 minutes."
sleep 1500
notify-send "auto-shutdown.sh" "System will power off in 5 minutes."
sleep 290
notify-send "auto-shutdown.sh" "Powering off now."
sleep 10
sudo poweroff