From 59ae43ff6260b05bd513daca924032ddff507841 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= Date: Wed, 24 May 2023 15:56:29 +0200 Subject: [PATCH] Awesomewm add keys for creating/removing columns --- awesome/keys.lua | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/awesome/keys.lua b/awesome/keys.lua index c5df12f..fe76a87 100644 --- a/awesome/keys.lua +++ b/awesome/keys.lua @@ -38,7 +38,7 @@ end -- Resize client in given direction local floating_resize_amount = dpi(20) -local tiling_resize_factor = 0.05 +local tiling_resize_factor = 0.01 local function resize_client(c, direction) if awful.layout.get(mouse.screen) == awful.layout.suit.floating or (c and c.floating) then @@ -379,17 +379,31 @@ keys.globalkeys = gears.table.join( -- ========================================= -- Gap control - awful.key({modkey, "Shift"}, "minus", - function() - awful.tag.incgap(5, nil) + -- awful.key({modkey, :Shift"}, "minus", + -- function() + -- awful.tag.incgap(5, nil) + -- end, + -- {description = "increment gaps size for the current tag", group = "gaps"} + -- ), + -- awful.key({modkey}, "minus", + -- function() + -- awful.tag.incgap(-5, nil) + -- end, + -- {description = "decrement gap size for the current tag", group = "gaps"} + -- ), + + awful.key({ modkey }, "=", + function () + awful.tag.incncol( 1, nil, true) end, - {description = "increment gaps size for the current tag", group = "gaps"} + {description = "increase the number of columns", group = "layout"} ), - awful.key({modkey}, "minus", - function() - awful.tag.incgap(-5, nil) + + awful.key({ modkey }, "minus", + function () + awful.tag.incncol(-1, nil, true) end, - {description = "decrement gap size for the current tag", group = "gaps"} + {description = "decrease the number of columns", group = "layout"} ), -- =========================================