summaryrefslogtreecommitdiff
path: root/.wmii/rbar_clock
diff options
context:
space:
mode:
Diffstat (limited to '.wmii/rbar_clock')
-rwxr-xr-x.wmii/rbar_clock5
1 files changed, 2 insertions, 3 deletions
diff --git a/.wmii/rbar_clock b/.wmii/rbar_clock
index 8e7d2a4..18c4493 100755
--- a/.wmii/rbar_clock
+++ b/.wmii/rbar_clock
@@ -3,8 +3,7 @@
priority=$1
-set -e
-while true; do
- date |a "$WMII_DIR/rbar/${priority}_clock"
+while connected_to_x_server; do
+ date >> "$WMII_DIR/rbar/${priority}_clock"
sleep .5
done