X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/887c37778210facea0c4c45a032dc00f06eaf78d..83a938857fe5f2b5872b13553931031699e73073:/.config/awesome/taghelpers.lua diff --git a/.config/awesome/taghelpers.lua b/.config/awesome/taghelpers.lua index d3cc296..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 = 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 @@ -88,7 +89,7 @@ function module.collect_orphan_clients_to_tag(name) end local t = awful.tag.find_by_name(nil, name) if not t then - t = add_tag("orphans", { + t = module.add_tag("orphans", { volatile = true, screen = awful.screen.focused(), }, true)