chiark / gitweb /
6827ea19a39be40a2987226e10d9178547073640
[bin.git] / irssi-notify
1 #! /bin/sh
2 set -e
3
4 # Based on:
5 #   http://thorstenl.blogspot.com/2007/01/thls-irssi-notification-script.html
6
7 ssh -n riva irssi-notify-server | \
8         sed -u 's/&/\&amp;/g; s/</\&lt;/g; s/>/\&gt;/g' | \
9         while read heading message; do
10                 [ "$heading" != . ] || continue
11                 notify-send -i gtk-dialog-info -t 300000 -- \
12                         "${heading}" "${message}"
13         done