small fix for sb-internet
This commit is contained in:
parent
89c136397d
commit
1ce33682ef
|
@ -8,7 +8,7 @@ if ls /sys/class/net/w*/operstate 1>/dev/null 2>&1; then
|
|||
for w in /sys/class/net/w*/; do
|
||||
percent="$(cat /proc/net/wireless | grep "$(basename "$(dirname $w/operstate)")" | tr -s ' ' | cut -d ' ' -f3 | tr -dc "[:digit:]")"
|
||||
grep -vxq '0x1003' "$w/flags" && wifi_icon="" || wifi_icon="$(sed "s/up/直/;s/down/睊/;s/dormant/睊/" $w/operstate | tr -d "[:space:]")"
|
||||
printf "%b" "$shift$big$wifi$icon$reset $percent"
|
||||
printf "%b" "$shift$big$wifi_icon$reset $percent"
|
||||
shift=" "
|
||||
done
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue