X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/83b96b3c3ada021e47d6ef1ad48c03710f0dc24a..a0da152bb39c5c3ae239a5743c40cb35038c4a21:/util/init.lua diff --git a/util/init.lua b/util/init.lua index 2f9e14a..9c4dc06 100644 --- a/util/init.lua +++ b/util/init.lua @@ -141,11 +141,10 @@ end -- pos in {-1, 1} <-> {previous, next} tag position function util.move_tag(pos) local tag = awful.screen.focused().selected_tag - local idx = awful.tag.getidx(tag) if tonumber(pos) <= -1 then - awful.tag.move(idx - 1, tag) + awful.tag.move(tag.index - 1, tag) else - awful.tag.move(idx + 1, tag) + awful.tag.move(tag.index + 1, tag) end end @@ -162,7 +161,7 @@ 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 + thatmuch + scr.selected_tag.gap = scr.selected_tag.gap + tonumber(thatmuch) awful.layout.arrange(scr) end