mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 09:15:22 +01:00
[GH-ISSUE #1238] Battery: notify when entering a threshold #8804
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#8804
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?
Originally created by @ksharizard on GitHub (Nov 12, 2025).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/1238
Is your feature request related to a problem? Please describe.
I utilise an external script which polls every minute or so to check the battery percentage. I have hardcoded some values to notify me when it is low on battery or when it is sufficiently full. However, I have also defined these thresholds in ironbar, which also checks my battery.
Describe the solution you'd like
I would like a way to notify (or run an external command) when a threshold is crossed. An interval could be defined so it keeps on notifying you until you plug/unplug your laptop. When crossing these thresholds, you can also check whether the laptop is charging or not and have different notifications be sent.
Describe alternatives you've considered
I could use an external script but this seems redundant if ironbar already polls my battery. Waybar also has this feature, however, it only notifies once when it crosses the threshold. Sometimes when I boot my laptop up and my battery is below a threshold, I will not get notified.
@JakeStanger commented on GitHub (Nov 13, 2025):
My view on this is that it is out of scope. Ironbar's job is to consume information from various system components and display this, but not provide that information. What's being asked for here sounds like the job of its own daemon.
Polling the battery is the cheap/easy bit, as Ironbar is able to listen to this over the UPower Dbus interface. The threshhold/notification parts do not exist in Ironbar currently.
Likely in the future, Ironbar will expose battery values over IPC. A script could potentially be written to watch this, which might offer a slighly nicer interface than currently available to read the battery.