diff --git a/modules/bar/workspaces/index.js b/modules/bar/workspaces/index.js index 22432e0..4c48663 100644 --- a/modules/bar/workspaces/index.js +++ b/modules/bar/workspaces/index.js @@ -9,6 +9,10 @@ function range(length, start = 1) { const Workspaces = (monitor = -1, ws = 8) => { const getWorkspacesForMonitor = (curWs, wsRules) => { + if (!wsRules || !wsRules.length) { + return true; + } + const monitorMap = {}; hyprland.monitors.forEach((m) => (monitorMap[m.id] = m.name));