Add spacing before icon in battery
This commit is contained in:
parent
f1cfb416c5
commit
2438a882f4
1 changed files with 3 additions and 3 deletions
|
|
@ -28,7 +28,7 @@ get_battery_info_mac() {
|
||||||
capacity=$(pmset -g batt | grep -o "\d\+%" | head -n1 | tr -d '%')
|
capacity=$(pmset -g batt | grep -o "\d\+%" | head -n1 | tr -d '%')
|
||||||
if [[ -n "$capacity" ]]; then
|
if [[ -n "$capacity" ]]; then
|
||||||
# Just show generic icon + capacity on mac
|
# Just show generic icon + capacity on mac
|
||||||
echo "$MAC_BATTERY_ICON $capacity%"
|
echo "$MAC_BATTERY_ICON $capacity%"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -104,9 +104,9 @@ get_battery_info_linux() {
|
||||||
|
|
||||||
# Build the final string
|
# Build the final string
|
||||||
if [[ -n "$power_consumption_watts" ]]; then
|
if [[ -n "$power_consumption_watts" ]]; then
|
||||||
echo "$battery_icon $capacity% (${power_consumption_watts} W)"
|
echo "$battery_icon $capacity% (${power_consumption_watts} W)"
|
||||||
else
|
else
|
||||||
echo "$battery_icon $capacity%"
|
echo "$battery_icon $capacity%"
|
||||||
fi
|
fi
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue