X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/5f1fd821a0ebbb2d61cb3c382ca199d109e4bbd8..5d7c6078d11a697c4ea2a72300355d18ffd47d84:/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