config/scripts/irssi_get_local_notification.sh
2015-06-30 15:43:15 +02:00

7 lines
324 B
Bash
Executable File

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