X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?p=bin.git;a=blobdiff_plain;f=irssi-notify;fp=irssi-notify;h=6827ea19a39be40a2987226e10d9178547073640;hp=0000000000000000000000000000000000000000;hb=67b5cfdcce125cd90088bacb33f158862e899b37;hpb=8b17dec64effc0c9927c556d0e245a0ea089c808 diff --git a/irssi-notify b/irssi-notify new file mode 100755 index 0000000..6827ea1 --- /dev/null +++ b/irssi-notify @@ -0,0 +1,13 @@ +#! /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' | \ + while read heading message; do + [ "$heading" != . ] || continue + notify-send -i gtk-dialog-info -t 300000 -- \ + "${heading}" "${message}" + done