mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 08:15:21 +01:00
[PR #1126] [MERGED] Upower Ironvars & Dynamic Thresholds for Styling #5383
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#5383
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/1126
Author: @JakeStanger
Created: 8/25/2025
Status: ✅ Merged
Merged: 8/25/2025
Merged by: @JakeStanger
Base:
master← Head:feat/upower-improvements📝 Commits (3)
630f88erefactor(ironvar): makeNamespaceTraitpublica2bd428feat(upower): expose properties as ironvarsc76e569feat(upower): dynamic thresholds for styling📊 Changes
6 files changed (+241 additions, -97 deletions)
View changed files
📝
docs/modules/Upower.md(+28 -13)📝
src/clients/mod.rs(+7 -3)📝
src/clients/sysinfo.rs(+2 -2)📝
src/clients/upower/mod.rs(+74 -16)📝
src/ironvar.rs(+1 -1)📝
src/modules/upower.rs(+129 -62)📄 Description
The
upowerclient can now be queried using the ironvar system to read all battery information. Not all properties are currently available in the module, and this serves more as a debug view than anything.A new
thresholdsconfig option has also been added to the module, which can be used for applying styles dynamically based on the current battery percentage. For example, given the below config:At battery levels below 20%, the
.warningclass will be applied to the top-level widget. Below 5%,.criticalwill be applied instead. Above 20%, no class applies.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.