bat script changes for better statusbar

This commit is contained in:
Luke Smith 2020-04-12 23:49:42 -04:00
parent b0d56c3adf
commit 6491129dbb
No known key found for this signature in database
GPG key ID: 4C50B54A911F6252

View file

@ -22,6 +22,6 @@ do
# If it is discharging and 25% or less, we will add a ❗ as a warning.
[ "$capacity" -le 25 ] && [ "$status" = "🔋" ] && warn="❗"
printf "%s%s%s%%\n" "$status" "$warn" "$capacity"
printf "%s%s%s%% " "$status" "$warn" "$capacity"
unset warn
done
done | sed s/\ $/\\n/