From 04e34031e1e624974f7536710c4b8fb819048696 Mon Sep 17 00:00:00 2001 From: Alejandro Amaral Date: Sat, 8 Jun 2024 17:37:46 -0300 Subject: [PATCH] Revert "feat: autohide battery widget if no battery is present" --- src/battery-widget.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/battery-widget.sh b/src/battery-widget.sh index 42445b2..a1f641b 100755 --- a/src/battery-widget.sh +++ b/src/battery-widget.sh @@ -18,7 +18,9 @@ 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" @@ -54,7 +56,8 @@ case "${BATTERY_STATUS}" in ICONS="${NOT_CHARGING_ICON}" ;; *) - exit 0 + ICONS="${NO_BATTERY_ICON}" + BATTERY_PERCENTAGE="0" ;; esac