Fix icons for nerd font 3.0 update
This commit is contained in:
parent
7183fd6b99
commit
a87040193a
@ -2,6 +2,6 @@
|
|||||||
|
|
||||||
. sb-theme
|
. sb-theme
|
||||||
|
|
||||||
val=$(printf " %.0f\n" $(brillo -q -G))
|
val=$(printf " %.0f\n" $(brillo -q -G))
|
||||||
|
|
||||||
display "$val" $1
|
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 " "
|
[ -n "${capacity+x}" ] && printf " "
|
||||||
# Sets up the status and capacity
|
# Sets up the status and capacity
|
||||||
case "$(cat "$battery/status")" in
|
case "$(cat "$battery/status")" in
|
||||||
"Full") status=" " ;;
|
"Full") status=" " ;;
|
||||||
"Discharging") status=" " ;;
|
"Discharging") status=" " ;;
|
||||||
"Charging") status=" " ;;
|
"Charging") status=" " ;;
|
||||||
"Not charging") status=" " ;;
|
"Not charging") status=" " ;;
|
||||||
"Unknown") status="♻️ " ;;
|
"Unknown") status=" " ;;
|
||||||
esac
|
esac
|
||||||
capacity=$(cat "$battery/capacity")
|
capacity=$(cat "$battery/capacity")
|
||||||
# Will make a warn variable if discharging and low
|
# Will make a warn variable if discharging and low
|
||||||
[ "$status" = " " ] && [ "$capacity" -le 25 ] && warn="low"
|
[ "$status" = " " ] && [ "$capacity" -le 25 ] && warn="low"
|
||||||
# Prints the info
|
# Prints the info
|
||||||
display "$status$warn$capacity%" $1; unset warn
|
display "$status$warn$capacity%" $1; unset warn
|
||||||
done && exit 0
|
done && exit 0
|
||||||
|
@ -15,6 +15,6 @@ while read -a Line; do
|
|||||||
fi
|
fi
|
||||||
done <<< "$(df -h -x devtmpfs -x tmpfs -x usbfs -x loop)"
|
done <<< "$(df -h -x devtmpfs -x tmpfs -x usbfs -x loop)"
|
||||||
|
|
||||||
# display " $root_free/$root_size|$home_free/$home_size" $1
|
# display " $root_free/$root_size|$home_free/$home_size" $1
|
||||||
# display " $home_free/$home_size $home_percent" $1
|
# display " $home_free/$home_size $home_percent" $1
|
||||||
display " $home_percent" $1
|
display " $home_percent" $1
|
||||||
|
@ -3,8 +3,8 @@
|
|||||||
status=$(mpc status | sed -n '/playing/p' | cut -c2-8 | sed 's/^[ \t]*//')
|
status=$(mpc status | sed -n '/playing/p' | cut -c2-8 | sed 's/^[ \t]*//')
|
||||||
|
|
||||||
if [ "$status" = "playing" ]; then # If song is playing
|
if [ "$status" = "playing" ]; then # If song is playing
|
||||||
printf "%s\n" "契"
|
printf "%s\n" ""
|
||||||
else
|
else
|
||||||
printf "%s\n" ""
|
printf "%s\n" ""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
4
sb-wifi
4
sb-wifi
@ -3,8 +3,8 @@
|
|||||||
. sb-theme
|
. sb-theme
|
||||||
|
|
||||||
case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
|
case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
|
||||||
down) wifiicon="睊" ;;
|
down) wifiicon="" ;;
|
||||||
up) wifiicon="$(awk '/^\s*w/ { print "直", int($3 * 100 / 70) "%" }' /proc/net/wireless)" ;;
|
up) wifiicon="$(awk '/^\s*w/ { print "", int($3 * 100 / 70) "%" }' /proc/net/wireless)" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
display "$wifiicon" "$1"
|
display "$wifiicon" "$1"
|
||||||
|
Loading…
Reference in New Issue
Block a user