Works like a charm,
I'd already tried client_managed and i'm using it for window opacity too, 
but not with cmd_toscreen(), thank you very much.

The last thing i have to complete now is to understand how qtile works with 
multiple screens and it will be perfect!

I'm not a good user of github but i'd like to publish my config.py with 
dynamical groups (with dicts which looks like awesome wm dicts) and opacity 
matching with type of windows etc., i think it could help few poeple. How 
can I proceed ? Maybe I have to create a new discussion ?


Thanks to everyone and thanks for your next answers!

Martin Morez

Le dimanche 22 mai 2016 05:26:42 UTC+2, wzhd a écrit :
>
> Try this:
>
> @hook.subscribe.client_managed
> def show_window(window):
>     window.group.cmd_toscreen()
>
> I found that client_managed is needed instead of client_new, because when 
> a client_new hook is called, window.group is usually None.  Big thanks 
> svig_lab_ 
> on irc!
>
> I'm relatively to the qtile and spent a lot of time trying to figure out 
> how to call something. Feel free to correct me if I did something wrong.
>
> Cheers
>
> On Monday, 2 November 2015 02:05:22 UTC+8, Martin Morez wrote:
>>
>> Qtile does not auto_focus window group when a window is created, and i 
>> would do this for some clients.
>> So i tried this hook :
>> @hook.subscribe.client_new
>> def auto_focus(window):
>>     window.group.focus(window)
>>
>> it doesn't seem to work, can someone help me ?
>> thanks a lot
>>
>>
>>

-- 
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