Skip to content

Commit

Permalink
fixed #77
Browse files Browse the repository at this point in the history
  • Loading branch information
janoamaral committed Jun 8, 2024
1 parent 2bc27a9 commit d066abf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/battery-widget.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -56,8 +54,7 @@ case "${BATTERY_STATUS}" in
ICONS="${NOT_CHARGING_ICON}"
;;
*)
ICONS="${NO_BATTERY_ICON}"
BATTERY_PERCENTAGE="0"
exit 0
;;
esac

Expand Down

0 comments on commit d066abf

Please sign in to comment.