summary refs log tree commit diff
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
commit467c516727393b5df32ae17f56dbb4413ea7b909 (patch)
tree8e9fff30aff9fa1210d3bc10d2c0c7473415ce3e
parentUse 4M- for window resizing in cwm (diff)
downloadsrc-467c516727393b5df32ae17f56dbb4413ea7b909.tar.gz
src-467c516727393b5df32ae17f56dbb4413ea7b909.zip
Only update clock script every minute
-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
f='/litterbox/commit/rc.d/litterbox.in?h=1.5&id=245b0cbb43e4f7745db1ef6a9082692be6a89053&follow=1'>Rewrite build and install like pounce 1.3June McEnroe 2020-05-20Update email addressesJune McEnroe 2020-04-23Call updateConsumer from handleError 1.2p1June McEnroe 2020-04-20Use . as ${LDLIBS.$@} separatorJune McEnroe 2020-04-05Error on invalid ISUPPORT values 1.2June McEnroe 2020-04-05Only set RCS on FreeBSDJune McEnroe 2020-04-05Log bans and unbansJune McEnroe 2020-04-05Parse mode types from ISUPPORTJune McEnroe 2020-04-05Add unscoop matchers for ban/unban eventsJune McEnroe 2020-04-05Check unscoop regexps with make testJune McEnroe 2020-04-05Add unscoop -n flag for checking regexpsJune McEnroe 2020-04-05Add Ban and Unban event typesJune McEnroe 2020-04-02Update styleJune McEnroe 2020-03-31Update unscoop catgirl matchersJune McEnroe 2020-03-31Fix writing verbose to stderrJune McEnroe 2020-03-02Include <>/-/* around nicks in scoop coloring 1.1June McEnroe 2020-03-02Replace .mk files with configure scriptJune McEnroe 2020-02-28Implement the causal.agency/consumer capabilityJune McEnroe 2020-02-22Include <>/-/* around nicks in coloringJune McEnroe 2020-02-22Use (almost) the full range of IRC colors for nicksJune McEnroe