BlingCorp / bling

Utilities for the awesome window manager
https://blingcorp.github.io/bling/
MIT License
851 stars 51 forks source link

Centered layout for ultrawide screen #200

Closed Kasper24 closed 1 year ago

Kasper24 commented 1 year ago

Yes, there's the master_width_policy, but it's a prop you set per tag rather than per layout, and for me personally, and I'd guess others it only makes sense to have it set to 'master_width_factor' for the centered layout, and I don't want that option for my other layouts, especially when using an ultrawide. Making it a beautiful variable is also possible, but I thought this way is more consistent

Here's an example from my config on how I'm using it

awful.screen.connect_for_each_screen(function(s)
    for i = 1, 8, 1  do
        awful.tag.add(i, {
            layout = awful.layout.layouts[1],
            centered_layout_master_fill_policy = "master_width_factor",
            screen = s,
            selected = i == 1 and true or false,
        })
    end
end)