From d3c4f38506ece10a0b6896937438a2d2577dfb09 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 20 Apr 2013 22:37:03 +0200 Subject: [PATCH] tags: add a binding to send all tags to the other screen --- rc/tags.lua | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/rc/tags.lua b/rc/tags.lua index 5352c6e..01d1617 100644 --- a/rc/tags.lua +++ b/rc/tags.lua @@ -90,8 +90,8 @@ config.keys.global = awful.util.table.join( config.keys.global, keydoc.group("Tag management"), awful.key({ modkey }, "Escape", awful.tag.history.restore, "Switch to previous tag"), - awful.key({ modkey }, "Left", awful.tag.viewprev, "View previous tag"), - awful.key({ modkey }, "Right", awful.tag.viewnext, "View next tag"), + awful.key({ modkey }, "Left", awful.tag.viewprev), + awful.key({ modkey }, "Right", awful.tag.viewnext), awful.key({ modkey, "Shift"}, "o", function() if screen.count() == 1 then return nil end @@ -102,6 +102,16 @@ config.keys.global = awful.util.table.join( awful.tag.viewonly(t) end, "Send tag to next screen"), + awful.key({ modkey, "Control", "Shift"}, "o", + function() + if screen.count() == 1 then return nil end + local t = awful.tag.selected() + local s = awful.util.cycle(screen.count(), t.screen + 1) + for _, t in ipairs(awful.tag.gettags(s, t.screen)) do + shifty.tagtoscr(s, t) + end + end, + "Send all tags to next screen"), awful.key({ modkey }, 0, shifty.add, "Create a new tag"), awful.key({ modkey, "Shift" }, 0, shifty.del, "Delete tag"), awful.key({ modkey, "Control" }, 0, shifty.rename, "Rename tag"))