-- Shared profile logic: given three outputs, lay out the 30 workspaces. -- -- 1-10 -> MONITOR1, 11-20 -> MONITOR2, 21-30 -> MONITOR3. -- The first workspace of each block is that monitor's default. -- Was: configs/workspaces.conf (byte-identical on both machines, because it -- only ever referred to $MONITOR1/2/3). local M = {} function M.workspaces(monitors) local blocks = { { first = 1, last = 10, monitor = monitors[1] }, { first = 11, last = 20, monitor = monitors[2] }, { first = 21, last = 30, monitor = monitors[3] }, } for _, block in ipairs(blocks) do for ws = block.first, block.last do hl.workspace_rule({ workspace = tostring(ws), monitor = block.monitor, default = (ws == block.first), }) end end end -- Gaming workspaces (10 / 20 / 30) had these commented out in workspaces.conf: -- no_rounding = true, decorate = false, gaps_in = -1, gaps_out = 0, no_border = true return M