add screen and tag arguments to useless_gaps_resize function

This commit is contained in:
sergey 2018-11-10 21:58:37 +03:00
parent f6e032ffe1
commit f76d33e8cd
1 changed files with 4 additions and 3 deletions

View File

@ -158,9 +158,10 @@ end
-- }}}
-- On the fly useless gaps change
function util.useless_gaps_resize(thatmuch)
local scr = awful.screen.focused()
scr.selected_tag.gap = scr.selected_tag.gap + tonumber(thatmuch)
function util.useless_gaps_resize(thatmuch, s, t)
local scr = s or awful.screen.focused()
local tag = t or scr.selected_tag
tag.gap = tag.gap + tonumber(thatmuch)
awful.layout.arrange(scr)
end