|
|
@ -8,10 +8,23 @@ if [ ! -d /sys/class/net/${WIRELESS}/wireless ] || |
|
|
|
echo "" |
|
|
|
echo "" |
|
|
|
echo "#676E7D" |
|
|
|
echo "#676E7D" |
|
|
|
else |
|
|
|
else |
|
|
|
SSID=$(iw dev $WIRELESS link | awk '/SSID/ { print $2 }') |
|
|
|
SSID="$(iw dev $WIRELESS link | awk '/SSID/ { print $2 }')" |
|
|
|
QUALITY=$(grep $WIRELESS /proc/net/wireless | awk '{ print int($3 * 100 / 70) }') |
|
|
|
QUALITY=$(grep $WIRELESS /proc/net/wireless | \ |
|
|
|
|
|
|
|
awk '{ print int($3 * 100 / 70) }') |
|
|
|
echo "$SSID $QUALITY%" |
|
|
|
|
|
|
|
echo "$ $QUALITY%" |
|
|
|
echo " $QUALITY%" |
|
|
|
|
|
|
|
echo " $QUALITY%" |
|
|
|
echo "#FFFFFF" |
|
|
|
echo "#FFFFFF" |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
notify() { |
|
|
|
|
|
|
|
notify-send -r 3 "Wifi" "\ |
|
|
|
|
|
|
|
Interface: $WIRELESS |
|
|
|
|
|
|
|
SSID: $SSID |
|
|
|
|
|
|
|
IP: $(ip a show $WIRELESS | \ |
|
|
|
|
|
|
|
awk '/inet / { print substr($2, 0, length($2) - 3) }')" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case $BLOCK_BUTTON in |
|
|
|
|
|
|
|
1) notify ;; |
|
|
|
|
|
|
|
esac |
|
|
|