Awesomewm add keys for creating/removing columns

This commit is contained in:
Thomas Avé 2023-05-24 15:56:29 +02:00
parent 1c4697ace7
commit 59ae43ff62
1 changed files with 23 additions and 9 deletions

View File

@ -38,7 +38,7 @@ end
-- Resize client in given direction -- Resize client in given direction
local floating_resize_amount = dpi(20) local floating_resize_amount = dpi(20)
local tiling_resize_factor = 0.05 local tiling_resize_factor = 0.01
local function resize_client(c, direction) local function resize_client(c, direction)
if awful.layout.get(mouse.screen) == awful.layout.suit.floating or (c and c.floating) then 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 -- Gap control
awful.key({modkey, "Shift"}, "minus", -- 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 () function ()
awful.tag.incgap(5, nil) awful.tag.incncol( 1, nil, true)
end, end,
{description = "increment gaps size for the current tag", group = "gaps"} {description = "increase the number of columns", group = "layout"}
), ),
awful.key({ modkey }, "minus", awful.key({ modkey }, "minus",
function () function ()
awful.tag.incgap(-5, nil) awful.tag.incncol(-1, nil, true)
end, end,
{description = "decrement gap size for the current tag", group = "gaps"} {description = "decrease the number of columns", group = "layout"}
), ),
-- ========================================= -- =========================================