[PR #1299] [MERGED] feat(workspaces): add index sort order and custom format options #4102

Closed
opened 2026-05-22 23:57:43 +01:00 by JakeStanger · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/JakeStanger/ironbar/pull/1299
Author: @jbms
Created: 12/23/2025
Status: Merged
Merged: 12/30/2025
Merged by: @JakeStanger

Base: masterHead: master


📝 Commits (2)

  • 7177d52 feat(workspaces): add 'index' sort order for niri support
  • 6cfa450 feat(workspaces): add format options for custom workspace labels

📊 Changes

8 files changed (+213 additions, -32 deletions)

View changed files

📝 docs/modules/Workspaces.md (+23 -8)
📝 src/clients/compositor/hyprland.rs (+1 -0)
📝 src/clients/compositor/mod.rs (+2 -0)
📝 src/clients/compositor/niri/connection.rs (+1 -0)
📝 src/clients/compositor/niri/mod.rs (+3 -1)
📝 src/clients/compositor/sway.rs (+2 -0)
📝 src/modules/workspaces/button.rs (+13 -3)
📝 src/modules/workspaces/mod.rs (+168 -20)

📄 Description

Workspaces can now be sorted by index, in order to properly support niri.

The format_named and format_unnamed configuration options can be used to
specify a custom label for the workspace buttons.

Fixes https://github.com/JakeStanger/ironbar/issues/942


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/JakeStanger/ironbar/pull/1299 **Author:** [@jbms](https://github.com/jbms) **Created:** 12/23/2025 **Status:** ✅ Merged **Merged:** 12/30/2025 **Merged by:** [@JakeStanger](https://github.com/JakeStanger) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (2) - [`7177d52`](https://github.com/JakeStanger/ironbar/commit/7177d52b7d68b2e7416967f9d00f4bede083877c) feat(workspaces): add 'index' sort order for niri support - [`6cfa450`](https://github.com/JakeStanger/ironbar/commit/6cfa4509e44babc9e20819ba7ab4c18662e845d4) feat(workspaces): add format options for custom workspace labels ### 📊 Changes **8 files changed** (+213 additions, -32 deletions) <details> <summary>View changed files</summary> 📝 `docs/modules/Workspaces.md` (+23 -8) 📝 `src/clients/compositor/hyprland.rs` (+1 -0) 📝 `src/clients/compositor/mod.rs` (+2 -0) 📝 `src/clients/compositor/niri/connection.rs` (+1 -0) 📝 `src/clients/compositor/niri/mod.rs` (+3 -1) 📝 `src/clients/compositor/sway.rs` (+2 -0) 📝 `src/modules/workspaces/button.rs` (+13 -3) 📝 `src/modules/workspaces/mod.rs` (+168 -20) </details> ### 📄 Description Workspaces can now be sorted by `index`, in order to properly support niri. The `format_named` and `format_unnamed` configuration options can be used to specify a custom label for the workspace buttons. Fixes https://github.com/JakeStanger/ironbar/issues/942 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
JakeStanger 2026-05-22 23:57:43 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JakeStanger/ironbar#4102
No description provided.