X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/055e663772628e5a2ddb9c056da7222af517d086..63186a340c3841522414cc26ad37e58bf92dce1d:/util/init.lua?ds=inline diff --git a/util/init.lua b/util/init.lua index 8e7b8ef..55bfa26 100644 --- a/util/init.lua +++ b/util/init.lua @@ -6,7 +6,7 @@ Utilities section Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham + * (c) 2013, Luca CPZ * (c) 2010-2012, Peter Hofmann --]] @@ -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