diff options
author | June McEnroe <june@causal.agency> | 2021-02-08 17:24:30 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-02-08 17:24:30 -0500 |
commit | 81eb4e68c561c7d0a32c294db652cea26dfa40d4 (patch) | |
tree | 33cb1d56348f16e577e1b596e813195d0ad760ac | |
parent | Use 4M- for window resizing in cwm (diff) | |
download | src-81eb4e68c561c7d0a32c294db652cea26dfa40d4.tar.gz src-81eb4e68c561c7d0a32c294db652cea26dfa40d4.zip |
Only update clock script every minute
-rwxr-xr-x | home/.local/bin/clock | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/home/.local/bin/clock b/home/.local/bin/clock index 4f5c8561..33a0e890 100755 --- a/home/.local/bin/clock +++ b/home/.local/bin/clock @@ -2,7 +2,9 @@ set -eu tput civis +sleep=$(( 60 - $(date +'%S') )) while :; do printf '%3s%% %s' "$(apm -l)" "$(date +'%a %H:%M')" - sleep 10 + sleep $sleep + sleep=60 done |