Update internet

This commit is contained in:
Vlad Doster 2020-05-10 00:02:04 -05:00 committed by GitHub
parent 41b679cb7c
commit 92031af6fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ case $BLOCK_BUTTON in
esac
case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
down) wifiicon="📡 " ;;
down) wifiicon="No Wifi" ;;
up) wifiicon=" $(nmcli connection show | awk '{ if ($5=="wlo1" ) {print "Wifi:"$1}}'
): $(awk '/^\s*w/ { print int($3 * 100 / 70) "% " }' /proc/net/wireless)" ;;
esac