--- /dev/null
+#! /bin/sh
+set -e
+
+# Based on:
+# http://thorstenl.blogspot.com/2007/01/thls-irssi-notification-script.html
+
+ssh -n riva irssi-notify-server | \
+ sed -u 's/&/\&/g; s/</\</g; s/>/\>/g' | \
+ while read heading message; do
+ [ "$heading" != . ] || continue
+ notify-send -i gtk-dialog-info -t 300000 -- \
+ "${heading}" "${message}"
+ done
--- /dev/null
+#! /bin/sh
+set -e
+
+# Based on:
+# http://thorstenl.blogspot.com/2007/01/thls-irssi-notification-script.html
+
+FNOTIFY="$HOME/.irssi/fnotify"
+TAIL=
+
+cleanup () {
+ rm -f "$FNOTIFY"
+ if [ "$TAIL" ]; then
+ kill "$TAIL"
+ fi
+}
+trap cleanup EXIT HUP INT QUIT PIPE TERM
+
+tail -n 10 "$FNOTIFY" 2>/dev/null || true
+> "$FNOTIFY"
+tail -f "$FNOTIFY" &
+TAIL="$!"
+while :; do
+ echo .
+ sleep 5
+done