summaryrefslogtreecommitdiff
path: root/.wmii/rbar_wifi
diff options
context:
space:
mode:
Diffstat (limited to '.wmii/rbar_wifi')
-rwxr-xr-x.wmii/rbar_wifi3
1 files changed, 1 insertions, 2 deletions
diff --git a/.wmii/rbar_wifi b/.wmii/rbar_wifi
index 608b164..2ea84a3 100755
--- a/.wmii/rbar_wifi
+++ b/.wmii/rbar_wifi
@@ -3,8 +3,7 @@
priority=$1
-set -e
-while true; do
+while connected_to_x_server; do
echo 'Wlan0:' $(iwconfig wlan0 | sed 's/ /\n/g' | grep Quality) |a "$WMII_DIR/rbar/${priority}_wifi"
sleep 1
done