bat script changes for better statusbar
This commit is contained in:
parent
b0d56c3adf
commit
6491129dbb
1 changed files with 2 additions and 2 deletions
|
@ -22,6 +22,6 @@ do
|
||||||
# If it is discharging and 25% or less, we will add a ❗ as a warning.
|
# If it is discharging and 25% or less, we will add a ❗ as a warning.
|
||||||
[ "$capacity" -le 25 ] && [ "$status" = "🔋" ] && warn="❗"
|
[ "$capacity" -le 25 ] && [ "$status" = "🔋" ] && warn="❗"
|
||||||
|
|
||||||
printf "%s%s%s%%\n" "$status" "$warn" "$capacity"
|
printf "%s%s%s%% " "$status" "$warn" "$capacity"
|
||||||
unset warn
|
unset warn
|
||||||
done
|
done | sed s/\ $/\\n/
|
||||||
|
|
Loading…
Reference in a new issue