dotfiles/.local/bin/tools/timer

24 lines
377 B
Plaintext
Raw Normal View History

2020-07-04 14:23:27 +02:00
#!/bin/bash
turns=15
if [[ -n $1 ]];then
turns=$1
fi
echo "Starting!"
let "i=1"
notify-send "Timer" "Starting, $turns minutes to go"
for ((turn=1; turn<=$turns; turn++));
do
clear
echo "turn $turn"
echo "###########"
sleep 2
for seconds in {1..60}
do
echo "$seconds secs. passed"
sleep 1
done
notify-send "Timer" "Switch\n($i/$turns done)"
let "i=i+1"
done
clear