tags: add a binding to send all tags to the other screen

This commit is contained in:
Vincent Bernat 2013-04-20 22:37:03 +02:00
parent 8d39eb9c83
commit d3c4f38506

View file

@ -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"))