Repository navigation
workspaces: show empty hyprland workspaces in between - #4459
Conversation
Hyprland only reports workspaces that exist, so the switcher showed 1 2 5 with windows on 1, 2 and 5, which made it hard to see where the focused workspace sits. Fill the empty numbered workspaces from 1 up to the highest listed one, using the same path as workspace padding, so ids owned by or bound to another monitor stay skipped. Showing occupied workspaces only turns the fill off.
Claude reviewNo issues found. |
|
Nooooo, this broke my setup :-D I have workspaces like this:
This allows me to have 3 workspaces on each monitor, which I can then switch to with keyboard shortcuts. my bash-script takes the current workspace index "11" increases/decreases it by 1, depending whether I want to go to the next or previous workspace. Now the bar is cluttered with workspaces 1-13. |
Wow thats a very special use case I definitely did not consider. But there is an option in the settings to only show occupied workspaces (in the hyprland menu under system/integrations i think. |
|
lol... I know it's an edge-case. but this is what I'm used to. The show only occupied is a bit confusing to me, that's why I don't use it. Would you please be so kind and implement a setting for this change. you can leave it "on" by default, as long as it can be disabled, I'm fine. |
Description
The Hyprland workspace switcher currently only shows the active and the existing workspaces. The empty workspaces between 1 and the highest used one were missing and are added in this PR, so it's easier to see where the current workspace sits. With windows on 1, 2 and 5 it shows 1 2 3 4 5 instead of 1 2 5.
I did this with persistent workspace rules from a Lua script in my Hyprland config until now, and I think it's a better default without needing one.
With multiple monitors each bar fills up to its own highest workspace and leaves out the ones on other monitors. "Show occupied workspaces only" still hides all empty ones like before and now this options actually does work as intended for hyprland users.
No new terms to translate.
Type of change
Related issues
Screenshots / video
Checklist
I18n.tr()with translator context, reusing existing terms where possiblemake fmt, added/updated tests,make testpasses, andgo mod tidyis cleanmake lint-qmlwith no new warnings