[PR #735] [MERGED] feat: add .urgent workspace css class #2314

Closed
opened 2026-05-22 22:56:28 +01:00 by JakeStanger · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/JakeStanger/ironbar/pull/735
Author: @Rodrigodd
Created: 9/26/2024
Status: Merged
Merged: 11/24/2024
Merged by: @JakeStanger

Base: masterHead: feat/urgent


📝 Commits (1)

  • afe534c feat: add .urgent workspace css class

📊 Changes

6 files changed (+80 additions, -9 deletions)

View changed files

📝 docs/modules/Workspaces.md (+10 -9)
📝 examples/style.css (+4 -0)
📝 src/clients/compositor/hyprland.rs (+40 -0)
📝 src/clients/compositor/mod.rs (+6 -0)
📝 src/clients/compositor/sway.rs (+10 -0)
📝 src/modules/workspaces.rs (+10 -0)

📄 Description

Allow highlighting a workspace which contains a window that triggered a urgent event, i.e., requests attention. In my case, I see it happens when I clink a link and it opens in a new tab on firefox, and when displaying a BEL character in some terminal emulators (at least in alacritty).

You can test it by running

sleep 1 && tput bel

in alacritty, and switching to another workspaces before the sleep expires.

I implemented it for both Sway and Hyprland. Sway keep track of a urgent flag for each client, and notify ironbar about changes. Hyprland or the other hand only contains a urgent event that triggers once, so I clean the urgent state of a workspace whenever it is focused.


🔄 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/735 **Author:** [@Rodrigodd](https://github.com/Rodrigodd) **Created:** 9/26/2024 **Status:** ✅ Merged **Merged:** 11/24/2024 **Merged by:** [@JakeStanger](https://github.com/JakeStanger) **Base:** `master` ← **Head:** `feat/urgent` --- ### 📝 Commits (1) - [`afe534c`](https://github.com/JakeStanger/ironbar/commit/afe534ccd9c7ef36e624551af98c41d4ddd41832) feat: add `.urgent` workspace css class ### 📊 Changes **6 files changed** (+80 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `docs/modules/Workspaces.md` (+10 -9) 📝 `examples/style.css` (+4 -0) 📝 `src/clients/compositor/hyprland.rs` (+40 -0) 📝 `src/clients/compositor/mod.rs` (+6 -0) 📝 `src/clients/compositor/sway.rs` (+10 -0) 📝 `src/modules/workspaces.rs` (+10 -0) </details> ### 📄 Description Allow highlighting a workspace which contains a window that triggered a urgent event, i.e., requests attention. In my case, I see it happens when I clink a link and it opens in a new tab on firefox, and when displaying a `BEL` character in some terminal emulators (at least in alacritty). You can test it by running ```sh sleep 1 && tput bel ``` in alacritty, and switching to another workspaces before the sleep expires. I implemented it for both Sway and Hyprland. Sway keep track of a `urgent` flag for each client, and notify ironbar about changes. Hyprland or the other hand only contains a urgent event that triggers once, so I clean the urgent state of a workspace whenever it is focused. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
JakeStanger 2026-05-22 22:56:28 +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#2314
No description provided.