#! /bin/bash #digit's first attempt ii audio notification. basic proof of concept. echo "THIS IS NOT WORKING YET" echo "enter your irc network, or enter for default [irc.freenode.net]:" read -e -i irc.freenode.net SERV #SERV="irc.freenode.net" echo "enter your irc network, or enter for default [#witchlinux]:" read -e -i \#witchlinux CHAN #CHAN="#witchlinux" #echo "enter the word you want highlighted, or enter for default [#witchlinux]:" #read -e -i NICK NICK=somenick ######mk1 #tail -f -n 1 ~/irc/$SERV/$CHAN/out | grep --line-buffered $NICK #add -q to grep once working, methinks... or could re-pipe it to some kind of other notification thing, like um, zenity? libnotify? #, piped to the grepings and soxings, the -n 1 being the key bit to prevent over-repetitious audio notifications. ######mk2 CHAT="~/irc/irc.freenode.net/#witchlinux/out" faq1loop() { #http://mywiki.wooledge.org/BashFAQ/001 while read -r $NICK; do play ~/sounds/beep.wav done < "$CHAT" } #I WILL MAKE YOU BEEP!