Add script to get notification from remote irssi

This commit is contained in:
Mathieu Maret 2010-11-29 12:17:31 +01:00
parent 824d5d6256
commit 433ce88d32
1 changed files with 6 additions and 0 deletions

View File

@ -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