]> git.madduck.net Git - etc/awesome.git/blobdiff - .config/awesome/taghelpers.lua

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

more screenshot hotkeys
[etc/awesome.git] / .config / awesome / taghelpers.lua
index d3cc2963f4f8c0ca19231d17e50357e24d3fc6dc..39f26f416575d6ef9564d0dd251fb34e303926ec 100644 (file)
@@ -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)