Hi Martin,
On 24/04/16 02:23, Martin Morez wrote:
> After trying again, i don't find any way of auto_focus a group when a
> there is a new client, if someone did it...
>
If you are using dynamic groups, then you could use the addgroup hook.
@hook.subscribe.addgroup
def goto_group(qtile, name):
'''Switch to group when window opens in it. Useful with dynamic
groups'''
if qtile.ready:
qtile.groupMap[name].cmd_toscreen()
def main(qtile):
qtile.ready = False
@hook.subscribe.startup
def qtile_is_ready():
qtile.ready = True
The startup hook in main is to stop things getting cranky on qtile restart.
Cheers
Craig
--
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.