Skip to content

feat(workspace): Allow showing workspaces from all monitors#2479

Open
DedkovEA wants to merge 3 commits intonoctalia-dev:mainfrom
DedkovEA:feat/ws-show-all
Open

feat(workspace): Allow showing workspaces from all monitors#2479
DedkovEA wants to merge 3 commits intonoctalia-dev:mainfrom
DedkovEA:feat/ws-show-all

Conversation

@DedkovEA
Copy link
Copy Markdown

Pull Request

Motivation

It might be useful for some users to see all workspaces on each bar instance, for example, to estimate how much workspaces is left and which are currently empty and can be used for new windows.
This PR introduce configuration option "Show all workspaces" which acts similar to waybar's all-outputs. If set to true, it will show all workspaces on each bar, even if they are from another screen.

Such setting turned on requires quite a lot of space, so this PR also add "Large active workspaces" knob. If set to true, active workspaces (there is one for each monitor) are shown with larger pill, as it was before. If set to false, only focused workspace will have a large pill, so some space will be saved.

Also, this PR fixes color issue with ripple effect on focus switch. Previously, primary color was used for this effect. After this PR color of the effect matches color of focused workspace (as it was, presumably, intended).

Type of Change

Mark the relevant option with an "x".

  • Bug fix
  • New feature
  • Breaking change
  • Refactoring

Testing

Tested on hyprland with my usual workflow. It plays well with either vertical and horizontal bar, "Follow focused screen" option, "Show applications" (when hovered, show workspace badge). All configuration variants were briefly examined and no inconsistency or problems were found.

  • Tested on niri
  • Tested on Hyprland
  • Tested on sway
  • Tested with different bar positions and density settings
  • Tested at different interface scaling values
  • Tested with multiple monitors (if applicable)

Screenshots / Videos

Following are from 3 monitor setup. Workspace 5 is empty WS on first monitor, WS 1,2,4,6 are on second monitor, WS 3,8 are on third one. All screenshots are from 2nd monitor. If Follow focused monitor = true, then same is on the other two bars.

Show applications = false, Show all workspaces = true, Large active workspaces = true
showAll
Show applications = true
showAllapps
Show applications = false, Show all workspaces = true, Large active workspaces = false
showAllsmall

Checklist

  • Code follows project style guidelines
  • Self-reviewed my code
  • No new warnings or errors
  • Documentation or comments updated (if relevant)

Additional Notes

I have found only "use lefthook" guideline in contributing section, so I am a little bit confused what to mark in Checklist. Will be glad to fix styling issues if any.

Netherill added 3 commits April 16, 2026 17:19
- Add "Show all workspaces" option, which enables drawing all
  workspaces, rather than only from screen where the bar is located.
- Add alpha effect to workspaces from other screens to distinguish them.
- Alpha effect stacks with another alpha effects (currently only alpha
for empty workspace).
- Consistent with "Follow focused screen" option. When it is active,
alpha effect is applied to workspaces from all screens except focused
one.
- Add translation to en, en-GB and ru.
- Add new option to workspace bar widget settings. Setting this to true
is legacy behavior, when active workspaces' pill will be of the same
size as focused workspace's pill. When set to false, only focused
workspace will be drawn with wide/high pill.
- Add translation to en, en-GB and ru.
- Now it uses focusColor instead of mPrimary for consistent look.
- For workspaces from another screen effect is with alpha=0.6.
- Thus effect color is the same as the pill color.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant