The error is now fixed, but I think the way I'm re-applying the dgroups is 
not correct or elegant.
I should be able to call into the qtile dgroup handler?
Any suggestions on how to reuse the existing dgroup mechanism or to trigger 
it ?

What I'm trying to acheive is to reset to the original dgroup rules, on key 
press.
Some windows  that I setup dont set their titles immediately (eg browsers) 
so I use a key to reapply the rules.

On Thursday, March 4, 2021 at 11:42:42 PM UTC+11 Guillaume Gelin wrote:

> See my comment on the issue Tycho mentioned above. Does it help to replace 
> lists with strings for the Match parameters? I'm semi-randomly guessing 
> since I don't use these features.
>
> Le mer. 3 mars 2021 à 16:46, Tycho Andersen <[email protected]> a écrit :
>
>> On Wed, Mar 03, 2021 at 01:56:57PM +1100, Steven Joseph wrote:
>> > And this is the error I get now
>> > 
>> > TypeError: 'in <string>' requires string as left operand, not list
>> > 2021-03-03 13:56:13,164 INFO libqtile hooks.py:set_groups():L104 
>> Matching
>> > <Rule match=[<Match {'title': ['.*krusader.*'], 'wm_class': [
>> > 'Krusader']}>] actions=(group=krusader, break_on_match=True)>
>> > 2021-03-03 13:56:13,164 ERROR libqtile hooks.py:set_groups():L146 error
>> > setting rules
>> > Traceback (most recent call last):
>> >   File "/home/steven/.config/qtile/hooks.py", line 106, in set_groups
>> >     if rule.matches(client):
>> >   File
>> > "/home/steven/.local/lib/python3.9/site-packages/libqtile/config.py", 
>> line
>> > 683, in matches
>> >     return any(w.match(m) for m in self.matchlist)
>> >   File
>> > "/home/steven/.local/lib/python3.9/site-packages/libqtile/config.py", 
>> line
>> > 683, in <genexpr>
>> >     return any(w.match(m) for m in self.matchlist)
>> >   File
>> > "/home/steven/.local/lib/python3.9/site-packages/libqtile/window.py", 
>> line
>> > 1056, in match
>> >     return match.compare(self)
>> >   File
>> > "/home/steven/.local/lib/python3.9/site-packages/libqtile/config.py", 
>> line
>> > 639, in compare
>> >     if not match(rule_value):
>> >   File
>> > "/home/steven/.local/lib/python3.9/site-packages/libqtile/config.py", 
>> line
>> > 615, in predicate
>> >     return match(value)
>> >   File
>> > "/home/steven/.local/lib/python3.9/site-packages/libqtile/config.py", 
>> line
>> > 614, in <lambda>
>> >     match = getattr(other, 'match', lambda v: other in v)
>>
>> A search on the issue tracker reveals:
>>
>> https://github.com/qtile/qtile/issues/2089
>>
>> Tycho
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "qtile-dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/qtile-dev/20210303154542.GJ421111%40cisco
>> .
>>
>
>
> -- 
> Guillaume Gelin
>

-- 
You received this message because you are subscribed to the Google Groups 
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qtile-dev/15e7c466-54ec-465c-abeb-54a21def10c1n%40googlegroups.com.

Reply via email to