Re: [dwm] wildcard in client rules tags ref

From: Szabolcs Nagy <nszabolcs_AT_gmail.com>
Date: Wed, 14 May 2008 07:01:29 +0200

On 5/14/08, Eric Davis <edavis_AT_insanum.com> wrote:
> rules. I agree that the feature was overkill but it was nice to be able
> to say "*" so a client is on all tags. I used this for background
> notification popups from scripts with gxmessage.

apply rules now roughly works like:

if (!rule->class || strstr(client->class, rule->class) ..) {
    [match]
}

so if class is set in the rule then any substring is matched

so class=NULL or class="" matches everything
(actually class="" matches only if client->class is set, so class=NULL
is better)
Received on Wed May 14 2008 - 07:01:31 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:39:14 UTC