From 2438a882f49cb5f71439715a1011627b0d755702 Mon Sep 17 00:00:00 2001 From: Martin Larsson Date: Sun, 11 May 2025 13:27:31 +0200 Subject: [PATCH] Add spacing before icon in battery --- confutils/get-battery.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/confutils/get-battery.sh b/confutils/get-battery.sh index ec7017e..9723474 100755 --- a/confutils/get-battery.sh +++ b/confutils/get-battery.sh @@ -28,7 +28,7 @@ get_battery_info_mac() { capacity=$(pmset -g batt | grep -o "\d\+%" | head -n1 | tr -d '%') if [[ -n "$capacity" ]]; then # Just show generic icon + capacity on mac - echo "$MAC_BATTERY_ICON $capacity%" + echo "$MAC_BATTERY_ICON $capacity%" return 0 fi @@ -104,9 +104,9 @@ get_battery_info_linux() { # Build the final string if [[ -n "$power_consumption_watts" ]]; then - echo "$battery_icon $capacity% (${power_consumption_watts} W)" + echo "$battery_icon $capacity% (${power_consumption_watts} W)" else - echo "$battery_icon $capacity%" + echo "$battery_icon $capacity%" fi return 0 fi