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

@ -2,6 +2,6 @@
. sb-theme
val=$(printf " %.0f\n" $(brillo -q -G))
val=$(printf "󰃝 %.0f\n" $(brillo -q -G))
display "$val" $1

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

View File

@ -15,6 +15,6 @@ while read -a Line; do
fi
done <<< "$(df -h -x devtmpfs -x tmpfs -x usbfs -x loop)"
# display " $root_free/$root_size|$home_free/$home_size" $1
# display " $home_free/$home_size $home_percent" $1
display " $home_percent" $1
# display "󰋊 $root_free/$root_size|$home_free/$home_size" $1
# display "󰋊 $home_free/$home_size $home_percent" $1
display "󰋊 $home_percent" $1

View File

@ -3,8 +3,8 @@
status=$(mpc status | sed -n '/playing/p' | cut -c2-8 | sed 's/^[ \t]*//')
if [ "$status" = "playing" ]; then # If song is playing
printf "%s\n" ""
printf "%s\n" "󰐊"
else
printf "%s\n" ""
printf "%s\n" "󰏤"
fi

View File

@ -3,8 +3,8 @@
. sb-theme
case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
down) wifiicon="" ;;
up) wifiicon="$(awk '/^\s*w/ { print "", int($3 * 100 / 70) "%" }' /proc/net/wireless)" ;;
down) wifiicon="󰖪" ;;
up) wifiicon="$(awk '/^\s*w/ { print "", int($3 * 100 / 70) "%" }' /proc/net/wireless)" ;;
esac
display "$wifiicon" "$1"