From cabc1bf0811eabd37f60ee74f8ba0dea36dc7ae6 Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Tue, 23 Jul 2019 15:32:39 +0200 Subject: [PATCH] Fix keybindings help and add minimize keybinding --- rc.lua | 10 +++++++--- tiling.lua | 3 +++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/rc.lua b/rc.lua index 5db770f..902dd52 100644 --- a/rc.lua +++ b/rc.lua @@ -364,15 +364,19 @@ clientkeys = gears.table.join( -- tiling awful.key({modkey,}, "Right", tiling.key.tileRight, - {description = "Move right", group = "window_tiling"} + {description = "Tile right", group = "tiling"} ), awful.key({modkey,}, "Left", tiling.key.tileLeft, - {description = "Move left", group = "window_tiling"} + {description = "Tile left", group = "tiling"} ), awful.key({modkey,}, "Up", tiling.key.toggleMaximized, - {description = "Move left", group = "window_tiling"} + {description = "Toggle maximized", group = "tiling"} + ), + awful.key({modkey,}, "Down", + tiling.key.minimize, + {description = "Lower", group = "tiling"} ), awful.key({ modkey, }, "f", diff --git a/tiling.lua b/tiling.lua index b4f18b9..224a045 100644 --- a/tiling.lua +++ b/tiling.lua @@ -62,6 +62,9 @@ return { c.maximized = false end end + end, + minimize = function(c) + c.minimized = true end } } \ No newline at end of file