diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-12-02 16:54:37 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-12-02 16:54:37 +0100 |
commit | ce845ee2aa0efbfc0b8706e7933b1dff5749f24f (patch) | |
tree | d69f4ca88423e9ab0d8dd0f702c2e8b82f3dfc84 /bindings.lua | |
parent | 26d0f94af5075c631222dd8df71946535cba6eb3 (diff) |
bindings: add bindings for moving clients between adjacent desktop pages
Diffstat (limited to 'bindings.lua')
-rw-r--r-- | bindings.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bindings.lua b/bindings.lua index f23b074..f9db2d7 100644 --- a/bindings.lua +++ b/bindings.lua @@ -84,6 +84,21 @@ function M.create(workspace) awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1) end), awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1) end), + -- move to upper/lower page + awful.key({ modkey, "Shift" }, "j", + function () + if client.focus then + local c = client.focus + workspace:client_move_relative(c, 1) + end + end), + awful.key({ modkey, "Shift" }, "k", + function () + if client.focus then + local c = client.focus + workspace:client_move_relative(c, -1) + end + end), -- Prompt awful.key({ modkey }, "n", |