[PR #1190] [MERGED] feat(inhibit): Add inhibit module #1213

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

📋 Pull Request Information

Original PR: https://github.com/JakeStanger/ironbar/pull/1190
Author: @slowsage
Created: 10/7/2025
Status: Merged
Merged: 12/17/2025
Merged by: @JakeStanger

Base: masterHead: inhibit


📝 Commits (1)

  • 34a4273 feat(inhibit): add inhibit module

📊 Changes

11 files changed (+515 additions, -3 deletions)

View changed files

📝 .github/workflows/build.yml (+1 -0)
📝 Cargo.toml (+4 -3)
📝 docs/Compiling.md (+1 -0)
📝 docs/_Sidebar.md (+1 -0)
docs/modules/Inhibit.md (+116 -0)
src/clients/inhibit.rs (+68 -0)
📝 src/clients/mod.rs (+11 -0)
📝 src/config/mod.rs (+8 -0)
src/modules/inhibit/config.rs (+160 -0)
src/modules/inhibit/mod.rs (+143 -0)
📝 src/modules/mod.rs (+2 -0)

📄 Description

Resolves #929.
Sample config:

{
      type = "inhibit"
      backend = "systemd"
      durations = ["30m" "1h" "1h30m" "*2h" "inf"]
      on_click_left = "toggle"
      on_click_right = "cycle"
      format_on = "☕ {duration}"
      format_off = "💤 {duration}"
 }

Notes:
*2h => * implies 2h is picked as default.
Can pick systemd or wayland backend.
systemd persists across ironbar restarts (launches a transient service that sleeps for desired time).
wayland surface dies with ironbar process.
Inhibit.md included.


🔄 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/1190 **Author:** [@slowsage](https://github.com/slowsage) **Created:** 10/7/2025 **Status:** ✅ Merged **Merged:** 12/17/2025 **Merged by:** [@JakeStanger](https://github.com/JakeStanger) **Base:** `master` ← **Head:** `inhibit` --- ### 📝 Commits (1) - [`34a4273`](https://github.com/JakeStanger/ironbar/commit/34a42733efdbe2bc9d613631eadb2a888bbc5591) feat(inhibit): add inhibit module ### 📊 Changes **11 files changed** (+515 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/build.yml` (+1 -0) 📝 `Cargo.toml` (+4 -3) 📝 `docs/Compiling.md` (+1 -0) 📝 `docs/_Sidebar.md` (+1 -0) ➕ `docs/modules/Inhibit.md` (+116 -0) ➕ `src/clients/inhibit.rs` (+68 -0) 📝 `src/clients/mod.rs` (+11 -0) 📝 `src/config/mod.rs` (+8 -0) ➕ `src/modules/inhibit/config.rs` (+160 -0) ➕ `src/modules/inhibit/mod.rs` (+143 -0) 📝 `src/modules/mod.rs` (+2 -0) </details> ### 📄 Description Resolves #929. Sample config: ```corn { type = "inhibit" backend = "systemd" durations = ["30m" "1h" "1h30m" "*2h" "inf"] on_click_left = "toggle" on_click_right = "cycle" format_on = "☕ {duration}" format_off = "💤 {duration}" } ``` Notes: *2h => * implies 2h is picked as default. Can pick systemd or wayland backend. systemd persists across ironbar restarts (launches a transient service that sleeps for desired time). wayland surface dies with ironbar process. Inhibit.md included. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
JakeStanger 2026-05-22 21:55:55 +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#1213
No description provided.