From f3f6a69dda046c4032cfa85c0053f293c0111d88 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 15 Feb 2017 23:35:04 +0100 Subject: [PATCH] config: add bindings to (un)maximize horizontally/vertically --- awesomerc.lua | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/awesomerc.lua b/awesomerc.lua index e861bddd..907d0f50 100644 --- a/awesomerc.lua +++ b/awesomerc.lua @@ -377,7 +377,19 @@ clientkeys = awful.util.table.join( c.maximized = not c.maximized c:raise() end , - {description = "maximize", group = "client"}) + {description = "(un)maximize", group = "client"}), + awful.key({ modkey, "Control" }, "m", + function (c) + c.maximized_vertical = not c.maximized_vertical + c:raise() + end , + {description = "(un)maximize vertically", group = "client"}), + awful.key({ modkey, "Shift" }, "m", + function (c) + c.maximized_horizontal = not c.maximized_horizontal + c:raise() + end , + {description = "(un)maximize horizontally", group = "client"}) ) -- @DOC_NUMBER_KEYBINDINGS@