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 8f1626f commit 0272f2fCopy full SHA for 0272f2f
scripts/battery_percentage.sh
@@ -18,7 +18,7 @@ print_battery_percentage() {
18
fi
19
local percentage=$(upower -i $battery | awk '/percentage:/ {print $2}')
20
if [ "$percentage" ]; then
21
- echo $percentage
+ echo ${percentage%.*%}
22
return
23
24
local energy
0 commit comments