eventcmd

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
#!/bin/bash
STATUS_FILE=/tmp/sbar-mcabber.msg
case $1 in
MSG)
[[ $2 == IN ]] && aplay -q ~/sounds/receive_quiet.wav
;;
UNREAD)
echo -n $2 > $STATUS_FILE
;;
esac