Hi,

On Mon, Jun 02, 2014 at 03:38:05PM -0700, Владимир К wrote:
> Tell me please, how you can implement this behavior: first launched app 
> with fixed wm_class a move to a specific group, and all of the following to 
> show in the current group.

We don't have a first class way to do this really, so one way would be
to define a subclass of Match that only matches something once and
then never matches it again (i.e. keep some state around):

# untested
class MatchOnce(Match):
    def __init__(self, *args, **kwargs)
        self.matched = False
        Match.__init__(self, *args, **kwargs)

    def compare(self, client):
        if self.matched:
            return False
        elif Match.compare(self, client):
            self.matched = True
            return True
        else:
            return False

Then do:

groups = [Group('group', spawn='mycmd', matches=[MatchOnce(...)])]

(We could also incorporate this into Match if it seems useful to
others.)

>  Ie need of autoload applications running sort groups automatically, and all 
> running user - show in the current group.

Sorry, I don't understand this part.

> Sorry for my english.

No worries.

\t

> -- 
> 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].
> For more options, visit https://groups.google.com/d/optout.

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to