Add salemsayed/niri-active-workspace (#227)

A bar widget showing only the focused niri workspace instead of a pill
listing every workspace. Reads niri IPC (snapshot plus event-stream)
since the plugin API exposes no compositor state.
This commit is contained in:
Salem Sayed Abdel Gawad
2026-08-03 08:44:45 -04:00
committed by GitHub
parent 59e44e0493
commit 1c2db1c309
5 changed files with 360 additions and 0 deletions
@@ -0,0 +1,22 @@
{
"plugin_name": "Niri Active Workspace",
"plugin_description": "Shows only the focused niri workspace in the bar.",
"settings": {
"label_mode": {
"label": "Label",
"description": "What to show for the focused workspace.",
"name_or_index": "Name, or index when unnamed",
"name": "Name only",
"index": "Index only",
"both": "Index and name"
},
"show_position": {
"label": "Show position",
"description": "Append the focused workspace's position, e.g. 3/5."
},
"glyph": {
"label": "Icon",
"description": "Icon shown before the label."
}
}
}