Give notification file to the notification hook
Signed-off-by: Reed Wade <reedwade@misterbanal.net> Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
This commit is contained in:
parent
be05c10163
commit
7066b54897
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ gracefulexit() {
|
||||||
|
|
||||||
notificationhook() {
|
notificationhook() {
|
||||||
if [ -x "$XDG_CONFIG_HOME"/sxmo/hooks/notification ]; then
|
if [ -x "$XDG_CONFIG_HOME"/sxmo/hooks/notification ]; then
|
||||||
"$XDG_CONFIG_HOME"/sxmo/hooks/notification
|
"$XDG_CONFIG_HOME"/sxmo/hooks/notification "$@"
|
||||||
else
|
else
|
||||||
VIBS=5
|
VIBS=5
|
||||||
VIBI=0
|
VIBI=0
|
||||||
|
@ -28,7 +28,7 @@ handlenewnotiffile(){
|
||||||
echo "Invalid notification file $NOTIFFILE found (<3 lines -- see notif spec in sxmo_notifwrite.sh), deleting!" >&2
|
echo "Invalid notification file $NOTIFFILE found (<3 lines -- see notif spec in sxmo_notifwrite.sh), deleting!" >&2
|
||||||
rm -f "$NOTIFFILE"
|
rm -f "$NOTIFFILE"
|
||||||
else
|
else
|
||||||
notificationhook &
|
notificationhook "$NOTIFFILE" &
|
||||||
NOTIFACTION="$(awk NR==1 "$NOTIFFILE")"
|
NOTIFACTION="$(awk NR==1 "$NOTIFFILE")"
|
||||||
NOTIFWATCHFILE="$(awk NR==2 "$NOTIFFILE")"
|
NOTIFWATCHFILE="$(awk NR==2 "$NOTIFFILE")"
|
||||||
NOTIFMSG="$(tail -n+3 "$NOTIFFILE" | cut -c1-70)"
|
NOTIFMSG="$(tail -n+3 "$NOTIFFILE" | cut -c1-70)"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue