Re: [dwm] Re: ImageMagick & display(1)

From: Sander van Dijk <a.h.vandijk_AT_gmail.com>
Date: Wed, 23 Aug 2006 11:50:45 +0200

On 8/21/06, dtm <usrucb_AT_gmail.com> wrote:
> >>>>> "ARG" == Anselm R Garbe <arg_AT_10kloc.org> writes:
>
> ARG> If windows are forced floating in a Rule, they are unaffected
> ARG> by dotile() (dofloat() respects their current geometry and
> ARG> never touches that). Why isn't matching against
> ARG> class:instance enough?
>
> Duh, I didn't even consider using instance to accomplish what I
> needed. Thanks.

I was thinking about this again, and I think that Class:Instance:Title
matching would be good to have, because it allows more flexible Rules.
To revisit Capit's "why does the firefox preferences window not show
up in the current tag?" issue: it is currently not possible to write a
Rule that matches new firefox clients, but not the preferences window,
because they both have the same Class:Instance. With
Class:Instance:Title, one could use a regex like:
/Firefox.*:.*:.*- Deer Park$/ (or /Firefox.*:.*:.*- Firefox$/ if
you're using an official Mozilla build)
to match new clients, but not the preferences window, which I think
can be useful functionality (especially since this won't add much
sloc).

Here's a sh-oneliner for config.default.h in case this makes it in:
xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/
{ printf("%s\n",$2) }'

Greetings, Sander.
Received on Wed Aug 23 2006 - 11:50:47 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:30:20 UTC