better countdown

This commit is contained in:
xenia 2020-12-09 23:55:15 -05:00
parent fd0c7a36d0
commit 391c02ebb7
1 changed files with 3 additions and 1 deletions

View File

@ -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"