11 lines
235 B
Bash
Executable File
11 lines
235 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. sb-theme
|
|
|
|
case "$(cat /sys/class/net/wlan0/operstate 2>/dev/null)" in
|
|
down) wifiicon="" ;;
|
|
up) wifiicon="$(awk '/^\s*w/ { print "", int($3 * 100 / 70) "%" }' /proc/net/wireless)" ;;
|
|
esac
|
|
|
|
display "$wifiicon" "$1"
|