commit 9332e0ba122411496455c744e6af06809580cce3 parent 1a7c5ee75770a259943612e20103556576c85e3f Author: pyratebeard <root@pyratebeard.net> Date: Thu, 1 Oct 2020 15:20:38 +0100 add fancy title and change progress blocks Diffstat:
M | timer | | | 13 | ++++++++++++- |
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/timer b/timer @@ -1,10 +1,14 @@ #!/bin/sh +# colours +cyan="\e[36m" +reset="\e[0m" + progress() { for ((k = 0; k <= 19 ; k++)) do echo -n " >" - for ((i = 1 ; i <= k; i++)); do echo -n "###"; done + for ((i = 1 ; i <= k; i++)); do echo -n "▒▒▒"; done for ((j = i ; j <= 20 ; j++)); do echo -n " "; done #v=$((k * 10)) echo -n "< " @@ -14,6 +18,13 @@ progress() { echo } +clear +echo -e "${cyan} + ┬─┐┬─┐┌─┐┬ ┬┬─┐ ┬┌ ┬ ┐┌─┐┬ ┬┬─┐ + │─┘├─ │ │─┤│─┤ ├┴┐│ ││ │─┤│─┤ + ┆ ┴─┘└─┘┆ ┴┘ ┆ ┆ ┘┆─┘└─┘┆ ┴┘ ┆ +${reset}" + for slide in $(seq 1 20) ; do echo progress