Commit 9a3c0b3a authored by Maze's avatar Maze 💬

add shift alternatives

parent 6f8e5e60
......@@ -620,8 +620,12 @@ end,
-- TODO ctrl instead of shift
awful.key({ modkey, "Control" }, "j", function () awful.client.swap.byidx( 1) end,
{description = "swap with next client by index", group = "client"}),
awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end,
{description = "swap with next client by index", group = "client"}),
awful.key({ modkey, "Control" }, "k", function () awful.client.swap.byidx( -1) end,
{description = "swap with previous client by index", group = "client"}),
awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end,
{description = "swap with previous client by index", group = "client"}),
-- TODO change screen switching to something else as ctrl will be taken
-- TODO ok I changed shift to ctrl above, but here it needs to be shift then
-- TODO but if screen switch is on j and k, how do you send windows to other screen? doesn't fit! It has to be something else and without modifier, so that sending windows can be with ctrl and that.
......@@ -762,6 +766,14 @@ end,
end,
{description = "move to next occupied tag", group = "tag"}),
awful.key({ modkey, "Shift" }, "i", function(c)
local nexttag = nextoccupied(1)
if nexttag then
c:move_to_tag(nexttag)
end
end,
{description = "move to next occupied tag", group = "tag"}),
awful.key({ modkey, "Control" }, "u", function(c)
local nexttag = nextoccupied(-1)
if nexttag then
......@@ -770,23 +782,48 @@ end,
end,
{description = "move to prev occupied tag", group = "tag"}),
awful.key({ modkey, "Shift" }, "u", function(c)
local nexttag = nextoccupied(-1)
if nexttag then
c:move_to_tag(nexttag)
end
end,
{description = "move to prev occupied tag", group = "tag"}),
awful.key({ modkey, "Control" }, "o", function(c)
local nexttag = insert(1)
c:move_to_tag(nexttag)
end,
{description = "move to next empty tag", group = "tag"}),
awful.key({ modkey, "Shift" }, "o", function(c)
local nexttag = insert(1)
c:move_to_tag(nexttag)
end,
{description = "move to next empty tag", group = "tag"}),
awful.key({ modkey, "Control" }, "y", function(c)
local nexttag = insert(-1)
c:move_to_tag(nexttag)
end,
{description = "move to prev empty tag", group = "tag"}),
awful.key({ modkey, "Shift" }, "y", function(c)
local nexttag = insert(-1)
c:move_to_tag(nexttag)
end,
{description = "move to prev empty tag", group = "tag"}),
awful.key({ modkey, "Control" }, "l", function (c) c:move_to_screen(c.screen.index+1) end,
{description = "move to screen", group = "client"}),
awful.key({ modkey, "Shift" }, "l", function (c) c:move_to_screen(c.screen.index+1) end,
{description = "move to screen", group = "client"}),
awful.key({ modkey, "Control" }, "h", function (c) c:move_to_screen(c.screen.index-1) end,
{description = "move to screen", group = "client"}),
awful.key({ modkey, "Shift" }, "h", function (c) c:move_to_screen(c.screen.index-1) end,
{description = "move to screen", group = "client"}),
awful.key({ modkey, }, "q", function (c) c:kill() end,
{description = "close", group = "client"}),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment