feat(widgets/workspaces): Add "ID and Name" option for label source - #4165
Open
BBaoVanC wants to merge 1 commit into
Open
feat(widgets/workspaces): Add "ID and Name" option for label source#4165BBaoVanC wants to merge 1 commit into
BBaoVanC wants to merge 1 commit into
Conversation
BBaoVanC
force-pushed
the
show-number-on-named-workspaces
branch
from
August 31, 2026 01:05
bbcbc3c to
c0b2049
Compare
This adds an "id_and_name" option to the label_source option on the workspaces widget, which displays both the numerical ID of the workspace and its name, if an explicit name is given. There is also a label_separator option which lets you configure what is placed in between the workspace ID and name. This is useful if you use named workspaces (i.e. in Niri), but still want to be able to easily see what number to press to go to that exact workspace, simply by looking at the bar.
BBaoVanC
force-pushed
the
show-number-on-named-workspaces
branch
from
August 31, 2026 01:07
c0b2049 to
fb06db1
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
This adds an "id_and_name" option to the label_source option on the workspaces widget, which displays both the numerical ID of the workspace and its name, if an explicit name is given. There is also a label_separator option which lets you configure what is placed in between the workspace ID and name (defaults to a single space).
Motivation
This is useful if you use named workspaces (i.e. in Niri), but still want to be able to easily see what number to press to go to that exact workspace, simply by looking at the bar.
Type of Change
Testing
widget.workspaces.label_sourcetoid_and_name, and optionally setlabel_separatorto whatever you want.I have also checked the settings UI to confirm that the option shows up correctly and is configurable.
Manual Coverage
Screenshots / Videos
Image demonstrates having
label_separatorset to":".Checklist
CONTRIBUTING.md.just formatwith clang-format v22+ installed, or this PR has no code changes.I will update end-user documentation after merge, or this PR does not change user-facing configuration or behavior.I updated the docs directly in this PR after rebasingassets/translations/en.json, or this PR adds no new user-facing strings.Additional Notes
I'm not quite sure how the config defaults are supposed to work. I want theFigured it out, I had accidentally forgotten to change it under thelabel_separatorto default to a single space, but it seems like it still is just defaulting to an empty string. Apart from that I don't see any issues.Optionsstruct.