make inactive workspaces have an inactive class

This commit is contained in:
Sakooooo 2024-11-26 13:55:17 +04:00
parent 608c48d139
commit ed0dabf634
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -86,7 +86,7 @@ function Workspaces() {
return <box className="Workspaces">
{workspaceButtons.map (workspace =>
<button
className={bind(hypr, "focusedWorkspace").as(fw => workspace === fw.id ? "focused" : "")}
className={bind(hypr, "focused-workspace").as(fw => workspace === fw.id ? "focused" : bind(hypr, "workspaces").as(ws => ws.id.contains(workspace)) ? "inactive" : "")}
>{workspace}</button>
)}
</box>