summaryrefslogtreecommitdiff
path: root/.config/wmii-hg/rbar_clock
diff options
context:
space:
mode:
Diffstat (limited to '.config/wmii-hg/rbar_clock')
-rwxr-xr-x.config/wmii-hg/rbar_clock8
1 files changed, 6 insertions, 2 deletions
diff --git a/.config/wmii-hg/rbar_clock b/.config/wmii-hg/rbar_clock
index 6aecb92..c1692da 100755
--- a/.config/wmii-hg/rbar_clock
+++ b/.config/wmii-hg/rbar_clock
@@ -1,9 +1,13 @@
#!/bin/bash
. include.sh
-priority=$1
+id=$1
+trap "rm -f ${WMII_DIR}/rbar/${id}" EXIT
while connected_to_x_server; do
- printf 'label %s\n' "$(date)" >> "$WMII_DIR/rbar/${priority}_clock"
+ {
+ printf 'label '
+ date +'%a, %F %T %Z(%:::z)'
+ } |sponge >> "${WMII_DIR}/rbar/${id}"
sleep .5
done