Merge pull request #1572 from blueyed/config-max-vh

config: add bindings to (un)maximize horizontally/vertically
This commit is contained in:
Emmanuel Lepage Vallée 2017-02-21 13:32:45 -05:00 committed by GitHub
commit 94147bd6be
1 changed files with 13 additions and 1 deletions

View File

@ -377,7 +377,19 @@ clientkeys = awful.util.table.join(
c.maximized = not c.maximized c.maximized = not c.maximized
c:raise() c:raise()
end , 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@ -- @DOC_NUMBER_KEYBINDINGS@