Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d014f9c268 |
+3
-1
@@ -18,7 +18,9 @@ local function assign_workspaces()
|
|||||||
package.loaded["workspace_config"] = nil -- force reload in case it changed
|
package.loaded["workspace_config"] = nil -- force reload in case it changed
|
||||||
local ws_config = require("workspace_config")
|
local ws_config = require("workspace_config")
|
||||||
|
|
||||||
for _, ws in ipairs(ws_config) do
|
-- Iterate in REVERSE to assign the most negative IDs to the first items, counteracting Waybar's low-to-high sorting!
|
||||||
|
for i = #ws_config, 1, -1 do
|
||||||
|
local ws = ws_config[i]
|
||||||
local target_mon = has_dock and ws.monitor or "eDP-1"
|
local target_mon = has_dock and ws.monitor or "eDP-1"
|
||||||
hl.workspace_rule({ workspace = "name:" .. ws.name, monitor = target_mon, persistent = true, default = true })
|
hl.workspace_rule({ workspace = "name:" .. ws.name, monitor = target_mon, persistent = true, default = true })
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user