mirror of https://github.com/lcpz/lain.git
Merge pull request #409 from seregaxvm/gap
add screen and tag arguments to useless_gaps_resize function
This commit is contained in:
commit
448d0b1be9
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue