]> git.madduck.net Git - etc/awesome.git/commitdiff

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:

make new tags maximised (fixes new tag properties)
authormartin f. krafft <madduck@madduck.net>
Wed, 6 Nov 2019 00:24:55 +0000 (13:24 +1300)
committermartin f. krafft <madduck@madduck.net>
Wed, 6 Nov 2019 00:24:55 +0000 (13:24 +1300)
.config/awesome/rc.lua
.config/awesome/taghelpers.lua

index 43a843e3aec1e330ac311cee546c6706a5fd6533..2b5b2a80dc504cf87ed76494deb3115869e4b565 100644 (file)
@@ -766,11 +766,11 @@ globalkeys = gears.table.join(
     awful.key({ modkey,           }, "d", th.delete_tag,
               {description = "delete the current tag", group = "tag"}),
     awful.key({ modkey, "Shift",           }, "a", function()
     awful.key({ modkey,           }, "d", th.delete_tag,
               {description = "delete the current tag", group = "tag"}),
     awful.key({ modkey, "Shift",           }, "a", function()
-        th.move_to_new_tag(nil,nil,true,true,true)
+        th.move_to_new_tag(nil, { layout = layouts.maximised },true,true,true)
     end,
               {description = "add a volatile tag with the focused client", group = "tag"}),
     awful.key({ modkey, "Shift", "Control" }, "a", function()
     end,
               {description = "add a volatile tag with the focused client", group = "tag"}),
     awful.key({ modkey, "Shift", "Control" }, "a", function()
-        th.move_to_new_tag(nil,nil,false,true,true)
+        th.move_to_new_tag(nil, { layout = layouts.maximised },false,true,true)
     end,
               {description = "add a permanent tag with the focused client", group = "tag"}),
     awful.key({ modkey, "Mod1"   }, "a", th.copy_tag,
     end,
               {description = "add a permanent tag with the focused client", group = "tag"}),
     awful.key({ modkey, "Mod1"   }, "a", th.copy_tag,
index e0481e53f70193e7cb2816872f0019a6565f000c..147a9e9736090dc40f6c14ceeb86ac6135b78c73 100644 (file)
@@ -58,10 +58,10 @@ function module.move_to_new_tag(clnt, properties, volatile, switchto, force)
 
     local p = (type(properties) == "table" and properties) or {}
     local s = p.screen or c.screen
 
     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(c.class, gears.table.join(p, {
         screen = s,
         volatile = volatile,
         screen = s,
         volatile = volatile,
-    }, switchto, force)
+    }), switchto, force)
     c:move_to_tag(t)
 end
 
     c:move_to_tag(t)
 end