From d066abfca9a9d8eec0baf809b14b7f6ee5e8251e Mon Sep 17 00:00:00 2001 From: Alejandro Amaral Date: Sat, 8 Jun 2024 17:28:23 -0300 Subject: [PATCH] fixed #77 --- src/battery-widget.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/battery-widget.sh b/src/battery-widget.sh index a1f641b..42445b2 100755 --- a/src/battery-widget.sh +++ b/src/battery-widget.sh @@ -18,9 +18,7 @@ RESET="#[fg=brightwhite,bg=#15161e,nobold,noitalics,nounderscore,nodim]" DISCHARGING_ICONS=("󰁺" "󰁻" "󰁼" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹") CHARGING_ICONS=("󰢜" "󰂆" "󰂇" "󰂈" "󰢝" "󰂉" "󰢞" "󰂊" "󰂋" "󰂅") NOT_CHARGING_ICON="󰚥" -NO_BATTERY_ICON="󱉝" -default_show_battery_percentage=1 default_battery_low="21" if [[ "$(uname)" == "Darwin" ]]; then default_battery_name="InternalBattery-0" @@ -56,8 +54,7 @@ case "${BATTERY_STATUS}" in ICONS="${NOT_CHARGING_ICON}" ;; *) - ICONS="${NO_BATTERY_ICON}" - BATTERY_PERCENTAGE="0" + exit 0 ;; esac