commit 9d574e42908d243417d18fdda5110d3e7166a4c3
parent 26773aca068667bd054884f578c85d23bba548ee
Author: Claudio Alessi <smoppy@gmail.com>
Date: Wed, 27 Apr 2022 16:24:31 +0200
Fix path for sound file in notify script.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/circo_notify.sh b/circo_notify.sh
@@ -3,6 +3,7 @@
export DISPLAY=:0
+pwd="$(dirname "$0")"
from=$1
to=$2
txt=$3
@@ -10,7 +11,7 @@ txt=$3
btn="Read"
-mpv circo_notify.ogg >/dev/null 2>&1 &
+mpv "$pwd/circo_notify.ogg" >/dev/null 2>&1 &
xmessage -geom 250x100 -button "$btn" -default "$btn" -timeout 3 -center "$from in $to
$txt"