From e5bf85eed9f2a4cd5c8ba6c8f6fb01b5c3602011 Mon Sep 17 00:00:00 2001 From: Malte Bublitz Date: Sun, 29 Oct 2023 21:43:42 +0100 Subject: [PATCH] notification.sh: Accept notification content from STDIN --- notification.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/notification.sh b/notification.sh index 6490504..a7bf027 100755 --- a/notification.sh +++ b/notification.sh @@ -3,11 +3,13 @@ source "$(dirname $0)/.env" -#FIFO=/tmp/mapid -LINE1='Backup finished!' -LINE2='' +#LINE1='Backup finished!' +#LINE2='' +[ -t /dev/stdin ] && printf "Line 1> "; read LINE1 +[ -t /dev/stdin ] && printf "Line 2> "; read LINE2 LED_BLINK=".5s" -DISPLAY_DURATION="4s" +#DISPLAY_DURATION="4s" +DISPLAY_DURATION="10s" if [[ ! -e $FIFO ]]; then