Re: [dwm] Determining client's title, class, and instance

From: <swell.k_AT_gmail.com>
Date: Tue, 22 Jan 2008 10:53:13 +0300

"John Fox" <jfoxiv_AT_gmail.com> writes:

> I just started with dwm yesterday, and I'm enjoying it greatly, but have a question concerning
> configuration:
>
> Rule definition in config.def.h allows for specification of a client's "class", "instance", and
> "title". I would like to be able to determine these attributes, and have found that I can get
> "class" from xprop (WM_CLASS).
>
> Howver, xprop's output lists nothing referring to "title" or "instance". I surmise that either
> "WM_NAME" or "WM_ICON_NAME" serves as "title", and have no idea regarding "instance". I would be
> most appreciative if someone could clear this up for me.
>
> Regards and thanks,
>
> John
> --
> The Angels Have the Phone Box

there was once (before -r984) comment like this:
/* Query class:instance:title for regex matching info with following command:
 * xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/ { printf("%s\n",$2) }' */

I wonder why it's now gone.
Received on Tue Jan 22 2008 - 09:00:07 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:16:33 UTC