Open mightbesimon opened 1 year ago
Maybe it would be better to make this an option of how it should be displayed, like --battery_bar_used
.
With this pr, the remaining battery would be "draining" from left to right, which is kind of counterintuitive but also matches with the CPU and RAM progress bars (i.e. the green bar is the remaining). So I guess there is a valid argument on both sides of the choice.
Description
Battery at 94% charged (so 6% used). barinfo shows 94% elapsed when it should show 6% elapsed. line 3844 to 3846 should say
$((100-${battery/\%*}))
instead of${battery/\%*}
incorrect actual behaviour:![actual](https://user-images.githubusercontent.com/60593422/210526332-f9af1ca6-e63a-48fa-8153-8087beebb1be.png)
expected behaviour:![expected](https://user-images.githubusercontent.com/60593422/210526367-af619b49-ae3f-4d9b-b3b4-919253d3b356.png)
Features
Issues
fixes: #2275
TODO