X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/055e663772628e5a2ddb9c056da7222af517d086..c96ce93c2817ec6e115715080c0472f8a629fd6e:/util/init.lua?ds=sidebyside 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