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

16 lines
244 B
Plaintext
Raw Normal View History

#!/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