X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/66d9f3db4596e43efa55488569e06365a2125750..83a938857fe5f2b5872b13553931031699e73073:/.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