diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-05-28 15:24:41 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-05-28 15:24:41 +0200 |
commit | fff0b7e17d91f347353675437f30281cb1fca46c (patch) | |
tree | 3f3b580f4ac327a76131674ae7ebff6b672de573 | |
parent | 91faf957b1428eaec4f2a0ffc0fa91b98b90c3a2 (diff) |
bindings: add focusing clients by direction + focus master
-rw-r--r-- | bindings.lua | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/bindings.lua b/bindings.lua index 0b76c24..0e57026 100644 --- a/bindings.lua +++ b/bindings.lua @@ -65,6 +65,34 @@ function M.create(workspace) client.focus:raise() end end), + awful.key({ modkey, "Control" }, "j", + function () + awful.client.focus.bydirection("down") + if client.focus then client.focus:raise() end + end), + awful.key({ modkey, "Control" }, "k", + function () + awful.client.focus.bydirection("up") + if client.focus then client.focus:raise() end + end), + awful.key({ modkey, "Control" }, "l", + function () + awful.client.focus.bydirection("right") + if client.focus then client.focus:raise() end + end), + awful.key({ modkey, "Control" }, "h", + function () + awful.client.focus.bydirection("left") + if client.focus then client.focus:raise() end + end), + awful.key({ modkey, "Control" }, "Return", + function () + local c = awful.client.getmaster() + if c then + c:jump_to(false) + c:raise() + end + end), -- Layout manipulation awful.key({ modkey, }, "Return", |