From 8132467d728e3d20d536f15a58f310fb0a8322a8 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Tue, 27 Feb 2018 16:14:10 +1300 Subject: [PATCH] taghelper module refactoring fixes --- .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 acf457a..f101cdc 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -753,11 +753,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() - move_to_new_tag(nil,nil,true,true,true) + th.move_to_new_tag(nil,nil,true,true,true) end, {description = "add a volatile tag with the focused client", group = "tag"}), awful.key({ modkey, "Shift", "Control" }, "a", function() - move_to_new_tag(nil,nil,false,true,true) + th.move_to_new_tag(nil,nil,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 d3cc296..e0481e5 100644 --- a/.config/awesome/taghelpers.lua +++ b/.config/awesome/taghelpers.lua @@ -58,7 +58,7 @@ 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 = add_tag(c.class, { + local t = module.add_tag(c.class, { screen = s, volatile = volatile, }, switchto, force) @@ -88,7 +88,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) -- 2.39.2