mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[BUG]: Komorebi Bar does not understand multiple batteries #606
Reference in New Issue
Block a user
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 @MsiDeer on GitHub (Apr 29, 2025).
Summary
Komorebi Bar only reports the remaining capacity of one battery in my system
One battery at 10% renaming and the other at 90% and Komorebi Bar only shows 10%
Version Information
WIn 11 Pro
Version: 10.0.26100 N/A Build 26100
komorebic 0.1.36
commit_hash:
8ef1bcf2build_time: 2025-04-13 03:10:57 +00:00
build_env:rustc 1.86.0 (05f9846f8 2025-03-31),stable-x86_64-pc-windows-msvc
Komorebi Configuration
Hotkey Configuration
Default
Output of komorebic check
No KOMOREBI_CONFIG_HOME detected, defaulting C:\Users\Msi
Looking for configuration files in C:\Users\Msi
Found komorebi.json; this file can be passed to the start command with the --config flag
Found C:\Users\Msi.config\whkdrc; key binding will be loaded from here when whkd is started, and you can start it automatically using the --whkd flag
@LGUG2Z commented on GitHub (Apr 29, 2025):
TIL you can have multiple batteries - will check if the underlying library understands this and returns an iterator or is just popping the first
@CtByte commented on GitHub (Apr 29, 2025):
how does windows report on multiple batteries?
@MsiDeer commented on GitHub (Apr 29, 2025):
In the normal windows taskbar it shows the combined percentage of both batteries
For example one is full and the other is at 10% the taskbar would say that 60% is remaining
In that same example, if I went into settings it would show the combined percentage and then under it the individual percentages
60% Battery Remaining
Battery 1: 99% and In Use
Battery 2: 10%
if Batt. 2 had more charge it would also report as In Use alongside 1
When I get home I'll take a video showing both my problems better
@LGUG2Z commented on GitHub (Apr 29, 2025):
3c4ccd2504/komorebi-bar/src/widgets/battery.rs (L90-L126)Looks like we are just popping the first - this should be fixable