notification.sh: Accept notification content from STDIN

This commit is contained in:
Malte Bublitz 2023-10-29 21:43:42 +01:00
parent 3e09ce6589
commit e5bf85eed9
Signed by: malte70
GPG Key ID: 605DA5C729F9C184
1 changed files with 6 additions and 4 deletions

View File

@ -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