2023-08-23 19:45:38 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
. sb-theme
|
|
|
|
|
2024-01-08 16:46:23 +01:00
|
|
|
case "$(cat /sys/class/net/wlan0/operstate 2>/dev/null)" in
|
2023-12-10 19:00:10 +01:00
|
|
|
down) wifiicon="" ;;
|
|
|
|
up) wifiicon="$(awk '/^\s*w/ { print "", int($3 * 100 / 70) "%" }' /proc/net/wireless)" ;;
|
2023-08-23 19:45:38 +02:00
|
|
|
esac
|
|
|
|
|
|
|
|
display "$wifiicon" "$1"
|