diff options
author | Florian Pritz <f-p@gmx.at> | 2009-06-02 01:12:46 +0200 |
---|---|---|
committer | Florian Pritz <f-p@gmx.at> | 2009-06-02 01:12:46 +0200 |
commit | 4370b163c021d1ea7de11c7693e4fa206f1217ab (patch) | |
tree | aa3682986141523b16e6740e20b75472437f8e08 /irssi_notify.sh | |
parent | 7e5113cfc7cf3ff51ffb8bb9191c8fb4a0251d9e (diff) | |
download | bin-4370b163c021d1ea7de11c7693e4fa206f1217ab.tar.gz bin-4370b163c021d1ea7de11c7693e4fa206f1217ab.tar.xz |
play sounds on irssi highlight
Diffstat (limited to 'irssi_notify.sh')
-rwxr-xr-x | irssi_notify.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/irssi_notify.sh b/irssi_notify.sh index 7342b6b..48f701f 100755 --- a/irssi_notify.sh +++ b/irssi_notify.sh @@ -11,6 +11,9 @@ ssh mistral 'inotail -f -n 0 ~/.irssi/fnotify' | s%([a-zA-Z0-9+_-]+@[^ ]+\.[a-zA-Z]{1,3})%<a href=\"mailto:\1\">\1</a>%g;" | while read heading message do - ssh mistral 'echo "" > ~/.irssi/fnotify'; - notify-send -t 5000 -- "${heading}" "${message}"; + if [ "X$heading" != "X" ]; then + ssh mistral 'echo "" > ~/.irssi/fnotify'; + ossplay ~/misc/High_Bee-Public_D-135.wav + notify-send -t 5000 -- "${heading}" "${message}"; + fi done |