diff options
author | Anton Khirnov <anton@khirnov.net> | 2017-02-02 09:15:20 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2017-02-07 17:12:52 +0100 |
commit | 2502443f979a3efd073b2278734ec394fae3bfaf (patch) | |
tree | bf211b0b98437b051971e5e7edcd388655949447 | |
parent | 9b322660ee6b7640af24def50a7fb8615a8ab126 (diff) |
Bind mod+Enter to making focused client master.
-rw-r--r-- | bindings.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bindings.lua b/bindings.lua index 3dd4f21..455a5fd 100644 --- a/bindings.lua +++ b/bindings.lua @@ -50,6 +50,12 @@ function M.create(workspace) end), -- Layout manipulation + awful.key({ modkey, }, "Return", + function() + if client.focus then + awful.client.setmaster(client.focus) + end + end), awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end), awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end), awful.key({ modkey, }, "u", awful.client.urgent.jumpto), |