Fix icons for nerd font 3.0 update

This commit is contained in:
CronyAkatsuki 2023-12-10 19:00:10 +01:00
parent 7183fd6b99
commit a87040193a
5 changed files with 14 additions and 14 deletions

View file

@ -8,15 +8,15 @@ for battery in /sys/class/power_supply/BAT?*; do
[ -n "${capacity+x}" ] && printf " "
# Sets up the status and capacity
case "$(cat "$battery/status")" in
"Full") status=" " ;;
"Discharging") status=" " ;;
"Charging") status=" " ;;
"Not charging") status=" " ;;
"Unknown") status="♻️ " ;;
"Full") status="󰁹 " ;;
"Discharging") status="󱟤 " ;;
"Charging") status="󰂅 " ;;
"Not charging") status="󰁾 " ;;
"Unknown") status="󰂃 " ;;
esac
capacity=$(cat "$battery/capacity")
# Will make a warn variable if discharging and low
[ "$status" = " " ] && [ "$capacity" -le 25 ] && warn="low"
[ "$status" = "󰁺 " ] && [ "$capacity" -le 25 ] && warn="low"
# Prints the info
display "$status$warn$capacity%" $1; unset warn
done && exit 0