mirror of https://github.com/lcpz/lain.git
add screen and tag arguments to useless_gaps_resize function
This commit is contained in:
parent
f6e032ffe1
commit
f76d33e8cd
|
@ -158,9 +158,10 @@ end
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- On the fly useless gaps change
|
-- On the fly useless gaps change
|
||||||
function util.useless_gaps_resize(thatmuch)
|
function util.useless_gaps_resize(thatmuch, s, t)
|
||||||
local scr = awful.screen.focused()
|
local scr = s or awful.screen.focused()
|
||||||
scr.selected_tag.gap = scr.selected_tag.gap + tonumber(thatmuch)
|
local tag = t or scr.selected_tag
|
||||||
|
tag.gap = tag.gap + tonumber(thatmuch)
|
||||||
awful.layout.arrange(scr)
|
awful.layout.arrange(scr)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue