Skip to content

Commit

Permalink
Revert "feat: autohide battery widget if no battery is present" (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
janoamaral authored Jun 8, 2024
2 parents f5832b2 + 04e3403 commit c3bc283
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/battery-widget.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -54,7 +56,8 @@ case "${BATTERY_STATUS}" in
ICONS="${NOT_CHARGING_ICON}"
;;
*)
exit 0
ICONS="${NO_BATTERY_ICON}"
BATTERY_PERCENTAGE="0"
;;
esac

Expand Down

0 comments on commit c3bc283

Please sign in to comment.