myhome/.local/bin/suspend-at-time

16 lines
244 B
Plaintext
Raw Normal View History

2020-05-09 13:43:39 +02:00
#!/bin/bash
#./suspend-at-time 0:00
RUNAT="$1"
while [ 1 ]
do
DATE=`/bin/date +%H:%M`
if [ $DATE. = $RUNAT. ]
then
sudo systemctl suspend
echo ""DONE" at "$(date)""
pkill suspend-at-time
fi
done