From 391c02ebb770b724b8a655f461726ae6dd68f3ad Mon Sep 17 00:00:00 2001 From: haskal Date: Wed, 9 Dec 2020 23:55:15 -0500 Subject: [PATCH] better countdown --- scripts/countdown | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/countdown b/scripts/countdown index ffb57fe..99cb7af 100755 --- a/scripts/countdown +++ b/scripts/countdown @@ -26,7 +26,9 @@ if init_day; then if [ $secs_left -le 0 ]; then break fi - printf "\r\x1b[K%s secs left..." "$secs_left" + out=$(printf "\r\x1b[H\x1b[J"; + printf "%s secs left..." "$secs_left" | toilet --gay -f slant) + echo -n "$out" sleep 0.3 done printf "\r\x1b[K"