pub / dotfiles

Configuration of software on my computer
git clone https://src.jayvii.de/pub/dotfiles.git
Home | Log | Files | Exports | Refs | RSS

notification_daemon.sh (333B)


      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