diff --git a/.scripts/statusbar/i3internet b/.scripts/statusbar/i3internet index dba6262..1538180 100755 --- a/.scripts/statusbar/i3internet +++ b/.scripts/statusbar/i3internet @@ -13,6 +13,6 @@ esac [ "$(cat /sys/class/net/w*/operstate)" = 'down' ] && wifiicon="📡" -[ ! -n "${wifiicon+var}" ] && wifiicon=$(grep ^w /proc/net/wireless | awk '{ print "📶", int($3 * 100 / 70) "%" }') +[ ! -n "${wifiicon+var}" ] && wifiicon=$(grep "^\s*w" /proc/net/wireless | awk '{ print "📶", int($3 * 100 / 70) "%" }') printf "%s %s" "$wifiicon" "$(cat /sys/class/net/e*/operstate | sed "s/down/❎/;s/up/🌐/")"