diff options
Diffstat (limited to 'bindings.lua')
-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", |