Files
Hyprland-config/monitors.lua
2026-06-24 18:40:53 -05:00

30 lines
1.0 KiB
Lua

-- -- Define the workspace rules table
-- local workspace_rules = {}
-- -- Forcing workspaces 1 through 5 to use the master layout on the ultrawide
-- for w = 1, 5 do
-- table.insert(workspace_rules, string.format("%d, monitor:DP-1, layout:master", w))
-- end
-- -- Keeping the global default layout for these workspaces on the secondary screen
-- for w = 6, 10 do
-- table.insert(workspace_rules, string.format("%d, monitor:HDMI-A-1", w))
-- end
-- -- Inject them into your config wrapper
-- hl.config({
-- workspace = workspace_rules
-- })
-- Initialize the workspace array inside the config table if it doesn't exist
hl.config.workspace = hl.config.workspace or {}
-- Forcing workspaces 1 through 5 to use the master layout on the ultrawide
for w = 1, 5 do
table.insert(hl.config.workspace, string.format("%d, monitor:DP-1, layout:master", w))
end
-- Keeping the global default layout for these workspaces on the secondary screen
for w = 6, 10 do
table.insert(hl.config.workspace, string.format("%d, monitor:HDMI-A-1", w))
end