dotfiles/.local/bin/rtcwake

7 lines
148 B
Text
Raw Normal View History

2020-05-12 18:25:43 +02:00
#!/bin/bash
sudo /usr/bin/rtcwake -n -m mem -t $(date "+%s" -d "$1")
read || exit 1
sleep 15
sudo /usr/bin/rtcwake -m mem -t $(date "+%s" -d "$1")