Fix icons for nerd font 3.0 update
This commit is contained in:
parent
7183fd6b99
commit
a87040193a
@ -2,6 +2,6 @@
|
||||
|
||||
. sb-theme
|
||||
|
||||
val=$(printf " %.0f\n" $(brillo -q -G))
|
||||
val=$(printf " %.0f\n" $(brillo -q -G))
|
||||
|
||||
display "$val" $1
|
||||
|
12
sb-battery
12
sb-battery
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
4
sb-wifi
4
sb-wifi
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user