From 1a082181650a64efa15e235859238491833c39bc Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Wed, 6 Nov 2019 13:24:55 +1300 Subject: [PATCH] make new tags maximised (fixes new tag properties) --- .config/awesome/rc.lua | 4 ++-- .config/awesome/taghelpers.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 43a843e..2b5b2a8 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -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() - 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() - 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, diff --git a/.config/awesome/taghelpers.lua b/.config/awesome/taghelpers.lua index e0481e5..147a9e9 100644 --- a/.config/awesome/taghelpers.lua +++ b/.config/awesome/taghelpers.lua @@ -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 t = module.add_tag(c.class, { + local t = module.add_tag(c.class, gears.table.join(p, { screen = s, volatile = volatile, - }, switchto, force) + }), switchto, force) c:move_to_tag(t) end -- 2.39.2