Re: [dwm] How to detect TAG activity?

From: markus schnalke <meillo_AT_marmaro.de>
Date: Tue, 4 Nov 2008 15:29:39 +0100

[2008-11-04 11:04] veselin_AT_campbell-lange.net <veselin_AT_campbell-lange.net>
>
> 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

Received on Tue Nov 04 2008 - 14:29:39 UTC

This archive was generated by hypermail 2.2.0 : Tue Nov 04 2008 - 14:48:04 UTC