#!/bin/sh WINFO=`xwininfo -root -tree | grep "$1" | egrep ' (2[0-9]|[2-3][0-9])x(2[0-9]|[2-3][0-9])\+0\+0' | cut -d ')' -f 2-` WINFO=`echo $WINFO | cut -d 'x' -f 2-` WINFO=`echo $WINFO | cut -d '+' -f 2-` WINFO=`echo $WINFO | cut -d '0' -f 2-` WINFO=`echo $WINFO | cut -d '0' -f 2-` WIX=`echo $WINFO | cut -d '+' -f 2` WIY=`echo $WINFO | cut -d '+' -f 3` WIX=`expr $WIX + 15` WIY=`expr $WIY + 15` 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:1000 string:'x' int32:$WIX string:'y' int32:$WIY chmod +x water_notify.sh dans la conf de pidgin ~/.purple/prefs.xml