system-info: Always have a space before battery %age

This commit is contained in:
2024-07-23 23:22:05 +01:00
parent 2005b6140f
commit c18df0825b
3 changed files with 4 additions and 4 deletions

View File

@@ -34,7 +34,7 @@ while true; do
grep --color=never -Eo '\d+%' | \
grep --color=never -Eo '\d+')"
battery="$(echo $raw_battery | gawk '$battery ~ /.*/ {
printf "%3d%% %s\n", $battery, substr("󰂎󰁺󰁻󰁼󰁽󰁾󰁿󰂀󰂁󰂂󰁹", int($battery / 9), 1)
printf " %d%% %s\n", $battery, substr("󰂎󰁺󰁻󰁼󰁽󰁾󰁿󰂀󰂁󰂂󰁹", int($battery / 9), 1)
}')"
fi