layout on each monitor

This commit is contained in:
Squibid 2025-12-19 23:45:48 -05:00
parent b03738534b
commit 7f847ee468
Signed by: squibid
GPG key ID: BECE5684D3C4005D
2 changed files with 3 additions and 3 deletions

View file

@ -3,13 +3,13 @@ mez.layout_manager.new_layout({
callback = function(output)
local mw, my, ty;
local mon = mez.output.get_resolution(0)
local mon = mez.output.get_resolution(output)
local nmaster = 1
local mfact = 0.5
local view_ids = {}
local ok, ids = pcall(mez.output.get_all_views, 0)
local ok, ids = pcall(mez.output.get_all_views, output)
if not ok or ids == nil then
print("nillllll")
return