Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- NOTIF_ICON="/usr/share/icons/custom/bubble-64.png"
- FNOTIF_FILE="/home/irssi/.irssi/fnotify"
- IRC_HOST="login@server"
- stat=255
- while (( $stat == 255 )) ; do
- ssh "${IRC_HOST}" -o PermitLocalCommand=no -o ServerAliveInterval=10 \
- ": > $FNOTIF_FILE ; tail -f $FNOTIF_FILE" | \
- while read head mess; do
- notify-send -t 4000 -i "${NOTIF_ICON}" "IRSSI" "<b><${head}></b> ${mess}";
- aplay -q "./msg.wav";
- done
- stat=${PIPESTATUS[0]}
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement