mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 07:15:19 +01:00
[PR #1341] [MERGED] fix(examples): wrong battery detection logic in some config files #6939
Labels
No labels
A:Build
A:CI
A:Client
A:Config
A:Core
A:Documentation
A:Documentation
A:IPC
A:Testing
A:UX/UI
blocked
BREAKING CHANGE
duplicate
good first issue
GTK4
help wanted
invalid
M:Battery
M:Battery
M:Bindmode
M:Bluetooth
M:Brightness
M:Cairo
M:Clipboard
M:Clock
M:Clock
M:Custom
M:Focused
M:Keyboard
M:Launcher
M:Menu
M:Music
M:Music
M:Music
M:Network Manager
M:Notifications
M:SysInfo
M:Tray
M:Volume
M:Workspaces
partially resolved
P:Critical
P:High
P:Low
P:Medium
pull-request
T:Bug
T:Bug
T:Core Enhancement
T:Module Enhancement
T:New Module
T:Question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JakeStanger/ironbar#6939
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/JakeStanger/ironbar/pull/1341
Author: @purrion
Created: 1/20/2026
Status: ✅ Merged
Merged: 1/20/2026
Merged by: @JakeStanger
Base:
master← Head:master📝 Commits (1)
738885bfix(examples): wrong battery detection logic in some config files📊 Changes
8 files changed (+10 additions, -8 deletions)
View changed files
📝
examples/desktop/config.corn(+1 -1)📝
examples/desktop/config.json(+1 -1)📝
examples/desktop/config.toml(+1 -1)📝
examples/desktop/config.yaml(+2 -1)📝
examples/minimal/config.corn(+1 -1)📝
examples/minimal/config.json(+1 -1)📝
examples/minimal/config.toml(+1 -1)📝
examples/minimal/config.yaml(+2 -1)📄 Description
The current used condition is
[ -f /sys/class/power_supply/BAT0 ]always returns1(exit code) as/sys/class/power_supply/BAT0is a directory, not a file. It seems to be a omission because I notice you mentioned the corrected command in #698.However, it still doesn't work with my laptop. There's only one internal battery, and it's labeled as
BAT1rather thanBAT0.Some checks:
Thus, I suggest another check condition to make it work:
(Additional affected file: docs)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.