So, the way I do it is like this: - Create a folder in my ~/.config/qtile folder called "custom" - Put an empty file in that folder called __init__.py - Put custom code in that folder - Import that code in my config.py
You could therefore put copies of bsp.py and max.py in a custom folder, edit them and then import them into your config: from custom.bsp import Bsp as CustomBsp from custom.max import Max as CustomMax And, instead of using layout.Bsp/Max in your layouts section, just use CustomBsp and/or CustomMax For you second question, I'd need to look at the code as I think the "border" parameter is all sides, rather than the just one so this may not be possible. On Saturday, 9 January 2021 at 23:08:03 UTC Cullen Ross wrote: > Thank you! Didn't realize it was so simple! Quick question though, it is > possible to utilize a local copy of the bsp/max layouts? I'd rather not > edit system files and then lose the changes on an update. My python skills > are unfortunately pretty weak. > > As a side question, would you happen to know a way to draw a border on the > bar? I'm trying to have a border that runs along the bottom of the bar. > > On Saturday, January 9, 2021 at 2:14:32 PM UTC-5 elParaguayo wrote: > >> I don't think you can do this via the configuration. I think it's >> something that's hard coded in the layouts themselves. >> >> For BSP, look at this line: >> https://github.com/qtile/qtile/blob/master/libqtile/layout/bsp.py#L211 >> >> If you change that to "border = self.border_width" you'll get a border >> drawn on all windows, including the first. >> >> For Max, the lack of border is hard coded here: >> https://github.com/qtile/qtile/blob/master/libqtile/layout/max.py#L53 >> The zero is the width. If you really want a border on Max then you'd need >> to edit the code or make a copy of Max, rename it and edit it yourself. >> >> On Saturday, 9 January 2021 at 18:09:56 UTC Cullen Ross wrote: >> >>> >>> Hey everyone, >>> >>> I've noticed that for the bsp layout if there is only window window >>> opened, the borders aren't drawn. Is it possible to force the borders to be >>> drawn for the sole window? It'd be nice to be able to do this with the max >>> layout as well. I wasn't able to find anything in the docs to address this. >>> >>> Thanks! >>> >> -- 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/249b57c2-4b9c-479e-b914-7e86ba0980bdn%40googlegroups.com.
