From: sergey Date: Sat, 10 Nov 2018 18:58:37 +0000 (+0300) Subject: add screen and tag arguments to useless_gaps_resize function X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/f76d33e8cd5bc84f44758e8047294227deb3f29d?ds=sidebyside;hp=-c add screen and tag arguments to useless_gaps_resize function --- f76d33e8cd5bc84f44758e8047294227deb3f29d diff --git a/util/init.lua b/util/init.lua index 8b8e719..55bfa26 100644 --- a/util/init.lua +++ b/util/init.lua @@ -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