functional workspace display

This commit is contained in:
2026-08-06 14:09:14 +01:00
parent 8e59d2dcec
commit abe1a1e12f
2 changed files with 47 additions and 9 deletions

View File

@@ -62,6 +62,17 @@ Singleton {
}
}
function getWorkspaceStateIndex(workspace) {
let state = getWorkspaceState(workspace);
if (state == "focused") {
return 0;
} else if (state == "active") {
return 1;
} else if (state == "inactive") {
return 2;
}
}
function getWorkspacesForMonitor(monitor) {
let allWorkspaces = getAllNumberedWorkspaces();
let monitorWorkspaces = [];