Repository navigation
Add madmedicnl/niri-workspaces (1.0.0) - #1412
Open
madmedicnl wants to merge 1 commit into
Open
madmedicnl wants to merge 1 commit into
madmedicnl wants to merge 1 commit into
Conversation
A niri workspace switcher that draws the Focus Hint look — a dot for every workspace you are not on, an expanded pill with its name for the one you are — and leaves named workspaces out of the bar. A scratchpad parks windows on a workspace nobody switches to; the built-in workspaces widget has no way to drop one, so the shelf costs a pill that means nothing.
Contributor
|
The description now contains the required template structure. |
madmedicnl
marked this pull request as ready for review
November 12, 2026 11:44
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.
Plugin
madmedicnl/niri-workspacesplugin.toml)What it does
A bar widget for niri that draws the workspaces the way the built-in Focus Hint
style does — a dot for every workspace you are not on, an expanded pill with its
name for the one you are — plus one thing
widget.workspacescannot do: acomma-separated list of workspace names that are not drawn at all.
That is for a shelf rather than a desk. A scratchpad (
nscratchand similar)parks windows on a workspace nobody switches to, and
widget.workspaceshas nohidden_workspacessetting (noctalia msg config-set widget.workspaces.hidden_workspaces …is refused as an unknown setting), sothat shelf costs a pill, or a dot, that means nothing to the operator.
The workspace you are on is always drawn, even when it is on the list: an
operator on an invisible workspace with no way back is worse than a dot.
Left click a dot or the pill focuses that workspace, scrolling goes to the next
or previous one, hovering a dot shows its name. Colours are palette roles
(
tertiaryfor dots,primaryfor the pill), so they follow the theme.External dependencies
niri, used three ways and nothing else:niri msg --json workspaces(loadedonce and re-read every 60 s as a self-heal),
niri msg --json event-stream(readcontinuously for
WorkspacesChangedandWorkspaceActivated), andniri msg action focus-workspace/focus-workspace-up/-downfrom clicks and scrolls.No network calls, no files written, nothing persisted — workspace state lives in
memory. No environment is read beyond
PATH.Testing
Live in a niri 25.x session (single output):
The scratch workspace stays out of the bar while a file manager and a control
panel are parked on it, and appears as the pill the moment it is focused —
then goes again.
The pill follows workspace changes without a reload (event stream), and a
restart of the shell repopulates from the snapshot.
Settings toggled through Settings → Plugins (gear beside the plugin):
hiddenlist edited,dot_size,dot_colorandgapchanged live.Clicking a dot focuses that workspace; scrolling over the widget steps
through them.
Tested on Niri
Tested on Hyprland
Tested on Sway
Tested on another compositor:
Noctalia version tested against: 5.4.1
Plugin API level: 32
Screenshots / Videos
The card
thumbnail.webpis composed by hand at 960×540 from the same barscreenshot, because the thumbnail generator needs a browser I did not have in
this session — happy to regenerate it with the generator if you would rather
have its house style.
Checklist
idafter the/inplugin.tomlexactly.plugin.toml,README.md,thumbnail.webp, andtranslations/en.json.README.mdfollows the README template, documents every entry id and dependency, and includes exact panel IPC commands and launcher prefixes where applicable.thumbnail.webpis present and relevant; for a new plugin I created it with the thumbnail generator, and for an update I regenerated it with the generator if the visual identity or user-facing appearance changed.versionfollows semver and is bumped in this PR;plugin_apiis the oldest API level this plugin requires.catalog.toml; CI generates it.Code review attestation
licensedeclared inplugin.toml.