mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-24 18:58:33 +02:00
tags: add a binding to send all tags to the other screen
This commit is contained in:
parent
8d39eb9c83
commit
d3c4f38506
1 changed files with 12 additions and 2 deletions
14
rc/tags.lua
14
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"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue