X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?p=bin.git;a=blobdiff_plain;f=irssi-notify;h=de6acf713c113d774af1d8460869e160f6d98956;hp=9a9aac2938a23b4de5b9fb815c3d12934227143f;hb=271417a47b9a6819fa4a574aa059c306e62bc585;hpb=f962032a82c64ff120388c152f0199f35c0d64ab diff --git a/irssi-notify b/irssi-notify index 9a9aac2..de6acf7 100755 --- a/irssi-notify +++ b/irssi-notify @@ -5,7 +5,7 @@ set -e # http://thorstenl.blogspot.com/2007/01/thls-irssi-notification-script.html ssh -n riva irssi-notify-server | \ - sed -u 's/&/\&/g; s//\>/g' | \ + sed -u 's/&/\&/g; s//\>/g; s/\\/\\\\/g' | \ while read heading message; do case $heading in .) @@ -16,12 +16,12 @@ ssh -n riva irssi-notify-server | \ message="${message#* }" imp="${message%% *}" message="${message#* }" - notify-send -i gtk-dialog-info -t 300000 -- \ + notify-send -i gtk-dialog-info -t 0 -- \ "New LP bug $bug ($imp)" \ "$message" ;; *) - notify-send -i gtk-dialog-info -t 300000 -- \ + notify-send -i gtk-dialog-info -t 30000 -- \ "${heading}" "${message}" ;; esac