1
0
Fork 0

small fix for sb-internet

This commit is contained in:
Luca Bilke 2023-05-26 11:56:38 +02:00
parent 89c136397d
commit 1ce33682ef
1 changed files with 1 additions and 1 deletions

View File

@ -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