summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2017-10-10 12:49:39 +0200
committerAnton Khirnov <anton@khirnov.net>2017-10-10 12:49:39 +0200
commitd7ba0787051d2b07e34ae00ed7fb9f581f8e5ee7 (patch)
tree76a769b7db87f1488a33b44477c3ce8e8f835f40
parentf57f42d2e86d3c44b662ea0f587fb74d3f85ff4b (diff)
Add vim-like j/k bindings for moving between pages.
-rw-r--r--bindings.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/bindings.lua b/bindings.lua
index be43176..05217b7 100644
--- a/bindings.lua
+++ b/bindings.lua
@@ -30,6 +30,8 @@ function M.create(workspace)
awful.key({ modkey, }, "Up", function() workspace:view_relative(-1) end ),
awful.key({ modkey, }, "Down", function() workspace:view_relative(1) end ),
+ awful.key({ modkey, }, "k", function() workspace:view_relative(-1) end ),
+ awful.key({ modkey, }, "j", function() workspace:view_relative(1) end ),
awful.key({ modkey, }, "Tab",
function ()