I use bitlbee. A lot. It's almost the only thing i use anymore for IM's. But one thing i've missed is sound notifications when someone is talking to me, so i looked into rcirc and found some beep code on the emacs wiki.
hacked it up and here goes :
hacked it up and here goes :
(add-hook 'rcirc-print-hooks 'my-rcirc-print-hook)
(setq alert "uri=file:///usr/share/sounds/purple/alert.wav")
(defun my-rcirc-print-hook (process sender response target text)
(when (and (string-match (rcirc-nick process) text)
(not (string= (rcirc-nick process) sender))
(not (string= (rcirc-server-name process) sender)))
(call-process "/usr/bin/gst-launch-0.10" nil nil nil "playbin" alert)
)
)
No comments:
Post a Comment