1
0
Fork 0

Fix sleep-nag

This commit is contained in:
Malte Brandy 2021-07-09 02:02:45 +02:00
parent c20f4f5535
commit 13996cc87d

View file

@ -21,7 +21,7 @@ let
night = (hour < 6 && hour >= 1)
action
| evening = notify_send "Shutdown alert!" ([i|Rechner fährt in #{59-minute} Minuten runter.|]::String)
| night = exe "/run/wrappers/bin/sudo" "systemctl" "shutdown"
| night = exe "/run/wrappers/bin/sudo" "systemctl" "poweroff"
| otherwise = pass
action
threadDelay 600000000