awesomewm/binds/window/layout.lua

82 lines
1.4 KiB
Lua
Raw Normal View History

2021-08-01 07:24:26 -07:00
return gears.table.join(
awful.key( {"Mod4"}, "j",
function ()
awful.tag.incmwfact( 0.05)
end,
{
description = "increase master width factor",
group = "Layout"
}
),
awful.key({"Mod4"}, "h",
function ()
awful.tag.incmwfact(-0.05)
end,
{
description = "decrease master width factor",
group = "Layout"
}
),
awful.key( {"Mod4", "Shift"}, "h",
function ()
awful.tag.incnmaster(1, nil, true)
end,
{
description = "increase the number of master clients",
group = "Layout"
}
),
awful.key( {"Mod4", "Shift"}, "l",
function ()
awful.tag.incnmaster(-1, nil, true)
end,
{
description = "decrease the number of master clients",
group = "Layout"
}
),
awful.key( {"Mod4", "Control"}, "h",
function ()
awful.tag.incncol(1, nil, true)
end,
{
description = "increase the number of columns",
group = "Layout"
}
),
awful.key( {"Mod4", "Control"}, "l",
function ()
awful.tag.incncol(-1, nil, true)
end,
{
description = "decrease the number of columns",
group = "Layout"
}
),
awful.key( {"Mod4"}, "l",
function ()
2022-04-24 13:26:02 -07:00
awful.screen.focused().layoutmanager:next()
2021-08-01 07:24:26 -07:00
end,
{
description = "select layouts",
group = "Layout"
}
),
awful.key( {"Mod4"}, "k",
function ()
2022-04-24 13:26:02 -07:00
awful.screen.focused().layoutmanager:next_alt()
2021-08-01 07:24:26 -07:00
end,
{
description = "cycle alt layouts",
group = "Layout"
}
)
)