Merge pull request #409 from seregaxvm/gap

add screen and tag arguments to useless_gaps_resize function
This commit is contained in:
Luca CPZ 2018-11-14 20:07:50 +00:00 committed by GitHub
commit 448d0b1be9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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