mirror of
https://github.com/hyprwm/Hyprland
synced 2026-05-15 04:58:05 +02:00
13 lines
265 B
Lua
13 lines
265 B
Lua
|
|
hl.layout.register("columns", {
|
||
|
|
recalculate = function(ctx)
|
||
|
|
local n = #ctx.targets
|
||
|
|
if n == 0 then
|
||
|
|
return
|
||
|
|
end
|
||
|
|
|
||
|
|
for i, target in ipairs(ctx.targets) do
|
||
|
|
target:place(ctx:column(i, n))
|
||
|
|
end
|
||
|
|
end,
|
||
|
|
})
|