Then put "/path/waterEffect.sh pidgin %s" in the editbox.
waterEffect script:
- Code: Select all
- #!/bin/bash
 #waterEffect
 #
 #USAGE: waterEffect IconName SoundNotification
 #
 #Panel layout - Top || Bottom || Left || Right
 LAYOUT="Top"
 # Get active window id
 focus=$(xprop -root | grep "_NET_ACTIVE_WINDOW(WINDOW)" | cut -c 40-)
 info=`xprop -id $focus | grep WM_CLASS | cut -c 20-`
 # If pidgin isn't the focused window, then ripple !
 if !(echo "$info" | grep -qiw "$1"); then
 WINFO=`xwininfo -root -tree -name "$LAYOUT Panel"| grep "$1" | cut -d ')' -f 2-`
 WIW=`echo $WINFO | cut -d 'x' -f 1`
 WIH=`echo $WINFO | cut -d 'x' -f 2 | cut -d '+' -f 1`
 WIX=`echo $WINFO | cut -d '+' -f 4`
 WIY=`echo $WINFO | cut -d '+' -f 5`
 let WAX=WIX+WIW/2
 let WAY=WIY+WIH/2
 dbus-send --type=method_call --dest=org.freedesktop.compiz /org/freedesktop/compiz/water/allscreens/point org.freedesktop.compiz.activate string:'root' int32:`xwininfo -root | grep id: | awk '{ print $4 }'` string:'amplitude' double:1 string:'x' int32:$WAX string:'y' int32:$WAY
 fi
 [ $# -eq 2 ] && [ -r $2 ] && aplay -q $2
Now the ripple effect + sound notification is working with pidgin, have fun !
(this can be used on amule as well)



