From 433ce88d3247a162f329852a48e13054a3b04630 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Mon, 29 Nov 2010 12:17:31 +0100 Subject: [PATCH] Add script to get notification from remote irssi --- scripts/irssi_get_notification.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 scripts/irssi_get_notification.sh diff --git a/scripts/irssi_get_notification.sh b/scripts/irssi_get_notification.sh new file mode 100644 index 0000000..a846853 --- /dev/null +++ b/scripts/irssi_get_notification.sh @@ -0,0 +1,6 @@ +ssh mathieu@hectorone.homedns.org ": > .irssi/fnotify ; tail -f .irssi/fnotify " | sed -u 's/[&]//g' | while read heading message; +do /usr/bin/notify-send -i notification-message-im -- "${heading}" "${message}"; +# if [[ -n `ssh mathieu@hectorone.homedns.org screen -list | grep '(Attached)'` ]]; then +# echo "${message}" | sed -ur 's/^.*>//' | /usr/bin/festival --tts; +# fi +done