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