X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/8af4a03c754fa1bcac24736633f1b3be8ce8888c..c397afd0c78e2bc708d6dd6f8d6ea778e3c4a7d4:/util/init.lua?ds=sidebyside diff --git a/util/init.lua b/util/init.lua index 26f50ae..c0545b6 100644 --- a/util/init.lua +++ b/util/init.lua @@ -171,4 +171,12 @@ function util.prompt_rename_tag(mypromptbox) end) end +-- On the fly useless gaps change +function util.useless_gaps_resize(thatmuch) + if beautiful.useless_gap_width then + beautiful.useless_gap_width = tonumber(beautiful.useless_gap_width) + thatmuch + awful.layout.arrange(mouse.screen) + end +end + return setmetatable(util, { __index = wrequire })