[PR #1286] [MERGED] feat(battery): allow config to show/hide icon or label #4093

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

📋 Pull Request Information

Original PR: https://github.com/JakeStanger/ironbar/pull/1286
Author: @tobias47n9e
Created: 12/20/2025
Status: Merged
Merged: 12/23/2025
Merged by: @JakeStanger

Base: masterHead: feat/battery-options


📝 Commits (1)

  • 3d58c45 feat(battery): allow config to show/hide icon or label

📊 Changes

2 files changed (+59 additions, -28 deletions)

View changed files

📝 docs/modules/Battery.md (+2 -0)
📝 src/modules/battery.rs (+57 -28)

📄 Description

Fixes: #1272

Hopefully that is what the author of the issue (@gurgelgubbe) wanted.

Examples:

[[end]]
type = "battery"
format = "BTR [{percentage}%]\n{state}"
show_label = false
screenshot-2025-12-20-14-31-33
[[end]]
type = "battery"
format = "BTR [{percentage}%]\n{state}"
show_icon = false
screenshot-2025-12-20-14-30-07

🔄 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/1286 **Author:** [@tobias47n9e](https://github.com/tobias47n9e) **Created:** 12/20/2025 **Status:** ✅ Merged **Merged:** 12/23/2025 **Merged by:** [@JakeStanger](https://github.com/JakeStanger) **Base:** `master` ← **Head:** `feat/battery-options` --- ### 📝 Commits (1) - [`3d58c45`](https://github.com/JakeStanger/ironbar/commit/3d58c45280fcd972830c13288dee583bdb69aa16) feat(battery): allow config to show/hide icon or label ### 📊 Changes **2 files changed** (+59 additions, -28 deletions) <details> <summary>View changed files</summary> 📝 `docs/modules/Battery.md` (+2 -0) 📝 `src/modules/battery.rs` (+57 -28) </details> ### 📄 Description Fixes: #1272 Hopefully that is what the author of the issue (@gurgelgubbe) wanted. Examples: ```toml [[end]] type = "battery" format = "BTR [{percentage}%]\n{state}" show_label = false ``` <img width="1920" height="85" alt="screenshot-2025-12-20-14-31-33" src="https://github.com/user-attachments/assets/9b0e5a87-8a06-482d-9553-92f2ebc8b9a4" /> ```toml [[end]] type = "battery" format = "BTR [{percentage}%]\n{state}" show_icon = false ``` <img width="1920" height="84" alt="screenshot-2025-12-20-14-30-07" src="https://github.com/user-attachments/assets/71c2cb84-10b3-4f4e-a073-a967e48aa4f2" /> --- <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:41 +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#4093
No description provided.