myhome/.local/bin/suspend-at-time
Marcin Woźniak b82dc58f26
Added programs
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2021-03-22 21:27:54 +01:00

16 lines
244 B
Bash
Executable File

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