diff --git a/bash_scripts/countdown_timer.sh b/bash_scripts/countdown_timer.sh index d6690d5..726164e 100755 --- a/bash_scripts/countdown_timer.sh +++ b/bash_scripts/countdown_timer.sh @@ -5,12 +5,13 @@ PLAYER=mpv FILE="/usr/share/sounds/freedesktop/stereo/message.oga" seconds=${1:-180} +clear echo "Counting down from $seconds" Msg=${2} let "i = $seconds" while [ $i -gt 0 ]; do - echo $i + echo -ne "\r$i " let i-- sleep 1 done