diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-01-29 12:13:43 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-01-29 12:13:43 -0500 |
commit | cbd6ae1cc7374e9c825642751bfa146c7cc0a5a8 (patch) | |
tree | 4deb4424b115b3215bc696ac467149368b97d79d /.config/wmii-hg/rbar_clock | |
parent | af7fca016ab0e83c129147f8102dc8ee893571a8 (diff) | |
parent | a19e716cf26fa4a67fe676d0822c96425d528903 (diff) |
Merge branch 'gluglugt60-par'
Diffstat (limited to '.config/wmii-hg/rbar_clock')
-rwxr-xr-x | .config/wmii-hg/rbar_clock | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/.config/wmii-hg/rbar_clock b/.config/wmii-hg/rbar_clock index 6aecb92..a09f016 100755 --- a/.config/wmii-hg/rbar_clock +++ b/.config/wmii-hg/rbar_clock @@ -1,9 +1,16 @@ #!/bin/bash -. include.sh -priority=$1 +update() { + id=$1 + setup_trap "$id" -while connected_to_x_server; do - printf 'label %s\n' "$(date)" >> "$WMII_DIR/rbar/${priority}_clock" - sleep .5 -done + while true; do + { + printf 'label ' + date +'%a, %F %T %Z(%:::z)' + } | write "$id" + sleep .5 + done +} + +. "$(dirname "$0")/rbar.sh" |