From 7066b548977f0bc43f51c5fe1a7c36376c959833 Mon Sep 17 00:00:00 2001 From: Reed Wade Date: Sun, 8 Nov 2020 11:04:26 +0100 Subject: [PATCH] Give notification file to the notification hook Signed-off-by: Reed Wade Signed-off-by: Maarten van Gompel --- scripts/notifications/sxmo_notificationmonitor.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/notifications/sxmo_notificationmonitor.sh b/scripts/notifications/sxmo_notificationmonitor.sh index 3e49485..2bc378b 100755 --- a/scripts/notifications/sxmo_notificationmonitor.sh +++ b/scripts/notifications/sxmo_notificationmonitor.sh @@ -9,7 +9,7 @@ gracefulexit() { notificationhook() { if [ -x "$XDG_CONFIG_HOME"/sxmo/hooks/notification ]; then - "$XDG_CONFIG_HOME"/sxmo/hooks/notification + "$XDG_CONFIG_HOME"/sxmo/hooks/notification "$@" else VIBS=5 VIBI=0 @@ -28,7 +28,7 @@ handlenewnotiffile(){ echo "Invalid notification file $NOTIFFILE found (<3 lines -- see notif spec in sxmo_notifwrite.sh), deleting!" >&2 rm -f "$NOTIFFILE" else - notificationhook & + notificationhook "$NOTIFFILE" & NOTIFACTION="$(awk NR==1 "$NOTIFFILE")" NOTIFWATCHFILE="$(awk NR==2 "$NOTIFFILE")" NOTIFMSG="$(tail -n+3 "$NOTIFFILE" | cut -c1-70)"