feat(workspace-tray): add workspace tray bar widget with dropdown panel#3072
Open
joao-paulo-santos wants to merge 1 commit into
Open
feat(workspace-tray): add workspace tray bar widget with dropdown panel#3072joao-paulo-santos wants to merge 1 commit into
joao-paulo-santos wants to merge 1 commit into
Conversation
aa0e5a1 to
986fc82
Compare
New bar widget that shows the active workspace name as colored text (no pill background by default), with a dropdown panel listing all workspaces on the current monitor. Click to switch, scroll to cycle. Widget settings: display mode (id/name), max label chars, show chevron, focused highlight only (different color per monitor focus), hide when empty, custom focused/occupied colors, optional new-workspace button with user-defined command and icon. The dropdown panel follows the same placement system as other panels (wallpaper, session, tray-drawer): attached/floating/centered with optional open-near-click positioning.
986fc82 to
dde2197
Compare
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.
Summary
Adds a new bar widget (
workspace_tray) that shows the active workspace name as colored text and opens a dropdown panel on click to switch workspaces. Intended as a minimal alternative to the workspaces widget for users who prefer less visual clutter.Motivation
The existing workspaces widget shows numbered pills for every workspace. Some users only want to see the current workspace name and switch via a dropdown, similar to workspace switchers in other desktop environments. This widget provides that with a small footprint and full compositor-agnostic workspace data via
CompositorPlatform.Type of Change
Related Issue
N/A
Testing
ninja -C buildclean buildpython3 tools/i18n-check.pypassesclang-format --dry-run --Werrorpasseshide_when_emptybehavior.Manual Coverage
Screenshots / Videos
2026-06-19.01-25-04.mp4
Checklist
CONTRIBUTING.md.just formatwith clang-format v22+ installed, or this PR has no code changes.assets/translations/en.json, or this PR adds no new user-facing strings.Additional Notes
Config example:
Widget features:
focused_color; unfocused monitors useoccupied_colorwhenfocused_onlyis enabledhide_when_emptyto hide when all workspaces on the monitor are emptyDropdown panel:
Uses
CompositorPlatformexclusively for workspace data and activation. Works across all supported compositors.