Awesomewm add keys for creating/removing columns
This commit is contained in:
parent
1c4697ace7
commit
59ae43ff62
|
@ -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()
|
-- function()
|
||||||
awful.tag.incgap(5, nil)
|
-- 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,
|
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.key({ modkey }, "minus",
|
||||||
awful.tag.incgap(-5, nil)
|
function ()
|
||||||
|
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"}
|
||||||
),
|
),
|
||||||
|
|
||||||
-- =========================================
|
-- =========================================
|
||||||
|
|
Loading…
Reference in New Issue