[2008-11-04 11:04] [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> 
> Lets say kopete_events.sh:
> 
> #!/bin/bash
> /usr/bin/wmu 1 `/usr/bin/xwininfo -int -name "Kopete"|egrep "Window\ id:"|cut 
> -d' ' -f4`

More general:

#!/bin/sh
if [ $# -ne 1 ] ; then
        echo "usage: $0 <windowtitle>";
        exit 1;
fi
/usr/bin/wmu 1 `/usr/bin/xwininfo -int -name "$1" | grep "Window\ id:" | cut 
-d' ' -f4`

It is independent from Kopete and you can call it from Kopete with
"Kopete" as first argument.



I think it is worth to add this script (or an improved version) with
explanations to the wiki.
Any volunteer? (I don't have time atm.)


meillo

Attachment: signature.asc
Description: Digital signature

Reply via email to