bin sh XOSD_CMD_PIPE osd_cat --pos bottom --align right --delay --colo

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh
XOSD_CMD_PIPE='osd_cat --pos=bottom --align=right --delay=4 --color=green --font=-*-terminus-*-*-*-*-12-*-*-*-*-*-*-r'
event=$1
arg1=$2
arg2=$3
filename=$4
# Note that the 4th argument is only provided for incoming messages
# and when 'event_log_files' is set.
if [ $event = "MSG" ]; then
case "$arg1" in
IN)
# Incoming message from buddy $arg2
if [ $arg2 != "juick@juick.com" ] && [ $arg2 != "update@identi.ca" ]
then
/usr/bin/ogg123 ~/.mcabber/msgin.ogg
fi
echo "You have an IM from <$arg2>" | $XOSD_CMD_PIPE > /dev/null 2>&1
if [ -n "$filename" -a -f "$filename" ]; then
# We could process filename here...
/bin/rm $filename
fi
;;
MUC)
# Groupchat message in room $arg2
/usr/bin/ogg123 ~/.mcabber/msgmuc.ogg
if [ -n "$filename" && -f "$filename" ]; then
# We could process filename here...
/bin/rm $filename
fi
;;
OUT)
# Outgoing message for buddy $arg2
;;
esac
#elif [ $event = "STATUS" ]; then
# Buddy $arg2 status is $arg1 (_, O, I, F, D, N, A)
#echo "<$arg2> has changed status to: [$arg1]" | $XOSD_CMD_PIPE > /dev/null 2>&1
#echo > /dev/null
fi