tmux-battery icon indicating copy to clipboard operation
tmux-battery copied to clipboard

Fix battery percentage output when using upower

Open norbertszivos opened this issue 5 years ago • 0 comments
trafficstars

Upower output was 98,4789% which mess up the icon and graph view as well. Basically for me the float number used , instead of . and the ${percentage%.*%} did not do what it should do. Another thing that the original string manipulation cut the % as well:

float=12.8% && echo ${float%.*%}
12

norbertszivos avatar Feb 09 '20 20:02 norbertszivos