X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/8132467d728e3d20d536f15a58f310fb0a8322a8..10bab241eb24448db24a484ea0166a206a62a98c:/.config/awesome/taghelpers.lua diff --git a/.config/awesome/taghelpers.lua b/.config/awesome/taghelpers.lua index e0481e5..39f26f4 100644 --- a/.config/awesome/taghelpers.lua +++ b/.config/awesome/taghelpers.lua @@ -52,16 +52,17 @@ function module.rename_tag() } end -function module.move_to_new_tag(clnt, properties, volatile, switchto, force) +function module.move_to_new_tag(clnt, name, properties, volatile, switchto, force) local c = clnt or client.focus if not c then return end + local n = name or c.class local p = (type(properties) == "table" and properties) or {} local s = p.screen or c.screen - local t = module.add_tag(c.class, { + local t = module.add_tag(n, gears.table.join(p, { screen = s, volatile = volatile, - }, switchto, force) + }), switchto, force) c:move_to_tag(t) end