From: martin f. krafft Date: Tue, 27 Feb 2018 03:14:10 +0000 (+1300) Subject: taghelper module refactoring fixes X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/8132467d728e3d20d536f15a58f310fb0a8322a8?ds=inline;hp=b3043789e40dea7bd16bf2bbf0cd5da05d7277f5 taghelper module refactoring fixes --- 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)