commit 12c287373745eaf59fe8f0bd8fd66c1cad55bbf8
parent aead0c900b21ea02ef9c1bb80d0fb93ae965cb8f
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date: Mon, 21 Sep 2020 09:16:48 +0200
Attempt to fix cron-execution
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/alarm.sh b/alarm.sh
@@ -3,13 +3,14 @@
# defaults -------------------------------------------------------------
zzzaction=0
fullvolume=1
+export DISPLAY=:0
# checks ---------------------------------------------------------------
# has alarmtone been chosen yet?
-if [ ! -f ~/.alarmtone ]; then
+if [ ! -f "$HOME/.alarmtone" ]; then
# assuming some tone...
ln -s /usr/share/sounds/freedesktop/stereo/phone-incoming-call.oga \
- ~/.alarmtone
+ "$HOME/.alarmtone"
fi
# turn up volume
@@ -53,4 +54,4 @@ done
# if you finally get up, we can stop the misery ------------------------
kill $alarmpid
-# EOF alarm.sh
-\ No newline at end of file
+# EOF alarm.sh