X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/5f1fd821a0ebbb2d61cb3c382ca199d109e4bbd8..58b2a122dd20cc4d1d15a29a27e618c9c88050cc:/util/init.lua diff --git a/util/init.lua b/util/init.lua index 5596afa..c62f0da 100644 --- a/util/init.lua +++ b/util/init.lua @@ -89,7 +89,6 @@ function util.mc(c) c.floating = true local s = awful.screen.focused() local mg = s.geometry - local tag = s.selected_tag local mwfact = beautiful.master_width_factor or 0.5 local g = {} g.width = math.sqrt(mwfact) * mg.width @@ -166,6 +165,7 @@ end -- On the fly useless gaps change function util.useless_gaps_resize(thatmuch) + beautiful.useless_gap = beautiful.useless_gap or 0 beautiful.useless_gap = tonumber(beautiful.useless_gap) + thatmuch awful.layout.arrange(awful.screen.focused()) end