W dniu 27.03.2011 16:15, Anurag Priyam pisze:
>> You still need to provide a list of roles you want/need to match. The
>> problem was how to make a negative match.
>>
>> I have another (better?) example: I want to make all Firefox windows
>> floating except ones with instance "Navigator" (all preferences,
>> downloads any any window created by some plugin should be floating).
> 
> That is a better example. I have been bitten by it myself. Attached is
> a small patch (against git head) that adds rule_no key to rules table
> to make an exception. 'rule_no' follows the semantics of 'rule' or
> 'rule_any' depending on the what you have used. Since the patch is
> against git head, it might not apply cleanly but you know what to
> change :). I will put it on the dev list and see if it can be
> included.

Thanks for the patch, it will be helpful, but actually i've figured out
how to do this (the firefox example) without it :-P

You just need to "think backwards":

First make all Firefox windows as floating:
{ rule = {class = "Firefox"},  properties = {floating = true} }

and then disable floating for Firefox+Navigator:

{ rule = {class = "Firefox", instance = "Navigator"}, properties =
{floating = false} },

-- 
Grzegorz Dzięgielewski
http://jabbas.pl

-- 
To unsubscribe, send mail to [email protected].

Reply via email to