1 #!/usr/bin/env bash 2 3 rm -f /tmp/notificationpipe 4 mkfifo /tmp/notificationpipe 5 6 NOTIFICATION_ID=0 7 8 while read notification_text < /tmp/notificationpipe; do 9 NOTIFICATION_ID=$( 10 notify-send \ 11 --urgency=low \ 12 --expire-time=100 \ 13 --print-id \ 14 --replace-id=$NOTIFICATION_ID \ 15 $notification_text 16 ) 17 done