From f76d33e8cd5bc84f44758e8047294227deb3f29d Mon Sep 17 00:00:00 2001 From: sergey Date: Sat, 10 Nov 2018 21:58:37 +0300 Subject: [PATCH] add screen and tag arguments to useless_gaps_resize function --- util/init.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 -- 2.39.5