[PR #1403] feat(workspaces): style based upon workspace having windows #2756

Open
opened 2026-05-22 22:57:44 +01:00 by JakeStanger · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/JakeStanger/ironbar/pull/1403
Author: @antlilja
Created: 2/28/2026
Status: 🔄 Open

Base: masterHead: master


📝 Commits (2)

  • b87d4cd feat(workspaces): Add empty style to workspaces
  • df7aaa9 fix(clippy warning): remove unreachable match case

📊 Changes

7 files changed (+131 additions, -0 deletions)

View changed files

📝 docs/modules/Workspaces.md (+1 -0)
📝 src/clients/compositor/hyprland.rs (+101 -0)
📝 src/clients/compositor/mod.rs (+7 -0)
📝 src/clients/compositor/niri/connection.rs (+1 -0)
📝 src/clients/compositor/sway.rs (+2 -0)
📝 src/modules/workspaces/button.rs (+8 -0)
📝 src/modules/workspaces/mod.rs (+11 -0)

📄 Description

Adds the ability to style workspaces based upon it containing any windows using the empty css class.

Example:

.workspaces .item:not(.empty) label {
    font-weight: bold;
}

I've only implemented this for hyprland so far. I wanted to open up this draft PR to see if this is a desired feature before continuing on implementing it for sway and niri.


🔄 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/1403 **Author:** [@antlilja](https://github.com/antlilja) **Created:** 2/28/2026 **Status:** 🔄 Open **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (2) - [`b87d4cd`](https://github.com/JakeStanger/ironbar/commit/b87d4cde949c8d59b2f830d8cca53ffe20716d0b) feat(workspaces): Add empty style to workspaces - [`df7aaa9`](https://github.com/JakeStanger/ironbar/commit/df7aaa9117535d966017f1bee836390e06d6df18) fix(clippy warning): remove unreachable match case ### 📊 Changes **7 files changed** (+131 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/modules/Workspaces.md` (+1 -0) 📝 `src/clients/compositor/hyprland.rs` (+101 -0) 📝 `src/clients/compositor/mod.rs` (+7 -0) 📝 `src/clients/compositor/niri/connection.rs` (+1 -0) 📝 `src/clients/compositor/sway.rs` (+2 -0) 📝 `src/modules/workspaces/button.rs` (+8 -0) 📝 `src/modules/workspaces/mod.rs` (+11 -0) </details> ### 📄 Description Adds the ability to style workspaces based upon it containing any windows using the `empty` css class. Example: ```css .workspaces .item:not(.empty) label { font-weight: bold; } ``` I've only implemented this for hyprland so far. I wanted to open up this draft PR to see if this is a desired feature before continuing on implementing it for sway and niri. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#2756
No description provided.