Workspace: show occupied workspaces with a different color

This commit is contained in:
Sébastien Atoch 2025-07-25 17:35:03 -04:00
parent e8af442b34
commit 320870df0b
3 changed files with 12 additions and 6 deletions

View file

@ -49,10 +49,10 @@ Singleton {
isFocused: ws.is_focused === true,
isActive: ws.is_active === true,
isUrgent: ws.is_urgent === true,
activeWindowId: ws.active_window_id
isOccupied: ws.active_window_id ? true : false
});
}
workspacesList.sort((a, b) => {
if (a.output !== b.output) {
return a.output.localeCompare(b.output);

View file

@ -124,7 +124,8 @@ Singleton {
output: ws.output || "",
isFocused: ws.isFocused === true,
isActive: ws.isActive === true,
isUrgent: ws.isUrgent === true
isUrgent: ws.isUrgent === true,
isOccupied: ws.isOccupied === true,
});
}