fix: correctly display wifi strength percentage in dwmbar

This commit is contained in:
swytch 2020-05-28 10:51:20 +02:00
parent 2df9d4c6fb
commit 6e3779d9ee
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ status() { \
# Wifi quality percentage and  icon if ethernet is connected.
wifi="$(grep "^\s*w" /proc/net/wireless | awk '{ print "索", int($3 * 100 / 70) "%" }')"
printf "$wifi"
printf "$wifi%"
eth="$(cat /sys/class/net/enp0s25/operstate)"
if [ "up" = "$eth" ]; then
printf " / "