biip 975 B

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