Conversation
The special workspace pill could stay visible forever when the monitor data was unavailable (e.g. the bar was created before Hyprland announced the monitor, such as right after login or resume). WorkspaceModel fell back to a name of "special", so the pill was permanently marked active. - WorkspaceModel: guard against a null monitor and default the name to an empty string instead of "special" - Workspaces: let the monitor binding re-evaluate when the monitor list changes, since Hyprland.monitorFor() creates no property dependency
satori-5423
pushed a commit
to satori-5423/dots-hyprland
that referenced
this pull request
Sep 16, 2026
The special workspace pill could stay visible forever when the monitor data was unavailable (e.g. the bar was created before Hyprland announced the monitor, such as right after login or resume). WorkspaceModel fell back to a name of "special", so the pill was permanently marked active. - WorkspaceModel: guard against a null monitor and default the name to an empty string instead of "special" - Workspaces: let the monitor binding re-evaluate when the monitor list changes, since Hyprland.monitorFor() creates no property dependency (cherry picked from commit daa3bd4)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe your changes
Fixes the special workspace indicator being stuck visible on the bar (showing
specialforever) when monitor data is unavailable.After a resume from suspend (or a monitor reconnect), the workspaces widget's
monitorbinding can evaluate whileHyprland.monitorFor()returnsnull, and it never re-evaluates afterwards because a function call creates no binding dependency.WorkspaceModelthen failed to find the monitor data (TypeError: Cannot read property 'id' of null) andspecialWorkspaceNamefell back to"special", sospecialWorkspaceActivestayedtruepermanently.Changes:
WorkspaceModel: null-safe monitor lookup, and defaultspecialWorkspaceNameto""instead of"special"so missing data can no longer fake an active special workspaceWorkspaces: make themonitorbinding depend onHyprland.monitors.valuesso it re-evaluates when Hyprland (re)populates monitorsVerified by toggling the scratchpad: no pill when hidden, pill appears when shown, disappears when hidden again.
Is it ready? Questions/feedback needed?
Ready.