enkore / i3pystatus

A complete replacement for i3status
https://i3pystatus.readthedocs.io/
MIT License
445 stars 188 forks source link

BatteryCharge & Battery do not handle negative CURRENT_NOW values #729

Closed lucible closed 4 years ago

lucible commented 5 years ago

I have i3pystatus on my laptop, and when I unplug the power cable, the {consumption} wattage shows 0.00 Watts. When I plug in the power cable, I get some number of Watts appearing.

This is happening because

I have another utility that calculates watt consumption, and when I'm on battery it returns a negative watt value and when I'm on power it returns the positive value (very close to the value reported by i3pystatus). My electricity knowledge is almost nil, but I think the values mean

in which case having the negative value available in the status bar would be useful and good.

lucible commented 4 years ago

Closing b/c my fix was merged a long time ago! :sweat_smile: