Hi, Sorry for the long wait on the response. Yes, we can add some notes to the documentation about how the configuration system works. I will say I don't really like having to use a `main()` function in the config, as it usually is a sign that there is some functionality that we don't expose that users are hacking in. If we can move functionality into qtile without effecting other users too much, that is usually ideal.
Sean On Tue, Dec 6, 2016 at 2:44 PM, Pandada8 <[email protected]> wrote: > I was just write config for my multihead setup. and I just write config > like > > screens = [] > def main(qtile): > global screens > screens = [make_screen() for i in qtile.conn.pseudoscreens] > > and I found it does not work, there's no screen at all, after digging some > code, > I found it because the config file is parsed by confreader which using > getattr and setattr > when dealing with the config file, it makes config.screens cannot be > replaced by > main function. > > so, could there be more specific document telling people not to replace > variable like this ? > > -- > 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.
