We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d58825 commit 3ecf749Copy full SHA for 3ecf749
scripts/battery_percentage.sh
@@ -22,7 +22,7 @@ print_battery_percentage() {
22
fi
23
local percentage=$(upower -i $battery | awk '/percentage:/ {print $2}')
24
if [ "$percentage" ]; then
25
- echo ${percentage%.*%}
+ echo "$(float2int $percentage)%"
26
return
27
28
local energy
0 commit comments