[PR #1127] [MERGED] feat(ipc): commands for controlling css class names #5384

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

📋 Pull Request Information

Original PR: https://github.com/JakeStanger/ironbar/pull/1127
Author: @JakeStanger
Created: 8/25/2025
Status: Merged
Merged: 8/25/2025
Merged by: @JakeStanger

Base: masterHead: feat/ipc-style


📝 Commits (1)

  • 0d8ec47 feat(ipc): commands for controlling css class names

📊 Changes

8 files changed (+272 additions, -48 deletions)

View changed files

📝 docs/Controlling Ironbar.md (+61 -13)
📝 src/bar.rs (+53 -12)
📝 src/config/mod.rs (+2 -2)
📝 src/ipc/commands.rs (+42 -7)
📝 src/ipc/server/bar.rs (+2 -2)
📝 src/ipc/server/mod.rs (+2 -9)
src/ipc/server/style.rs (+96 -0)
📝 src/modules/mod.rs (+14 -3)

📄 Description

Three new commands have been added, under a new style subcommand:

  • add_class
  • remove_class
  • toggle_class

These extend the scripting capabilities, allowing styles to be externally controlled. This potentially pairs well with the extended ironvar system, for example by watching ironbar var list sysinfo.cpu_percent a class could be added when reaching a defined threshold.

BREAKING CHANGE: The load-css command has been moved to the style subcommand (ie ironbar style load-css).

Resolves #516


🔄 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/1127 **Author:** [@JakeStanger](https://github.com/JakeStanger) **Created:** 8/25/2025 **Status:** ✅ Merged **Merged:** 8/25/2025 **Merged by:** [@JakeStanger](https://github.com/JakeStanger) **Base:** `master` ← **Head:** `feat/ipc-style` --- ### 📝 Commits (1) - [`0d8ec47`](https://github.com/JakeStanger/ironbar/commit/0d8ec4791eedbbacdab4d5f81b1e54b2fba1306d) feat(ipc): commands for controlling css class names ### 📊 Changes **8 files changed** (+272 additions, -48 deletions) <details> <summary>View changed files</summary> 📝 `docs/Controlling Ironbar.md` (+61 -13) 📝 `src/bar.rs` (+53 -12) 📝 `src/config/mod.rs` (+2 -2) 📝 `src/ipc/commands.rs` (+42 -7) 📝 `src/ipc/server/bar.rs` (+2 -2) 📝 `src/ipc/server/mod.rs` (+2 -9) ➕ `src/ipc/server/style.rs` (+96 -0) 📝 `src/modules/mod.rs` (+14 -3) </details> ### 📄 Description Three new commands have been added, under a new `style` subcommand: - `add_class` - `remove_class` - `toggle_class` These extend the scripting capabilities, allowing styles to be externally controlled. This potentially pairs well with the extended ironvar system, for example by watching `ironbar var list sysinfo.cpu_percent` a class could be added when reaching a defined threshold. BREAKING CHANGE: The `load-css` command has been moved to the `style` subcommand (ie `ironbar style load-css`). Resolves #516 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
JakeStanger 2026-05-23 00:57:04 +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#5384
No description provided.