summary refs log tree commit diff
path: root/home/.local/bin/clock
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-02-08 17:24:30 -0500
committerJune McEnroe <june@causal.agency>2021-02-08 17:24:30 -0500
commit81eb4e68c561c7d0a32c294db652cea26dfa40d4 (patch)
tree33cb1d56348f16e577e1b596e813195d0ad760ac /home/.local/bin/clock
parentUse 4M- for window resizing in cwm (diff)
downloadsrc-81eb4e68c561c7d0a32c294db652cea26dfa40d4.tar.gz
src-81eb4e68c561c7d0a32c294db652cea26dfa40d4.zip
Only update clock script every minute
Diffstat (limited to 'home/.local/bin/clock')
-rwxr-xr-xhome/.local/bin/clock4
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
ght'> 2018-11-13Add gzgetc.3June McEnroe 2018-11-13Add gzputc.3June McEnroe 2018-11-13Add gzgets.3June McEnroe 2018-11-13Add gzputs.3June McEnroe 2018-11-13Add gzprintf.3June McEnroe 2018-11-13Add gzfwrite.3June McEnroe 2018-11-13Add gzwrite.3June McEnroe 2018-11-12Add gzfread.3June McEnroe 2018-11-12Add gzread.3June McEnroe 2018-11-12Add gzsetparams.3June McEnroe 2018-11-12Add gzbuffer.3June McEnroe 2018-11-12Add gzdopen to gzopen.3June McEnroe 2018-11-12Add gzopen.3June McEnroe 2018-11-12Add inflateBackEnd.3June McEnroe 2018-11-12Add inflateBack.3June McEnroe 2018-11-12Add inflateBackInit.3June McEnroe 2018-11-11Add inflateGetHeader.3June McEnroe 2018-11-11Add inflateMark.3June McEnroe 2018-11-11Add inflatePrime.3June McEnroe 2018-11-11Add inflateReset.3June McEnroe 2018-11-11Add inflateCopy.3June McEnroe 2018-11-11Add inflateSync.3June McEnroe 2018-11-11Add inflateGetDictionary.3June McEnroe 2018-11-11Add inflateSetDictionary.3June McEnroe 2018-11-11Add inflateInit2.3June McEnroe