dotfiles/Utils/pomodoro
Frank Villaro-Dixon 9c65e363ed real pomodoro
2013-11-11 13:26:57 +01:00

21 lines
240 B
Bash
Executable file

#!/bin/bash
function DISP
{
xsetroot -name "$1"
}
TIME=$1
TIME=`echo $TIME*60|bc`
while [ $TIME -gt 0 ]; do
min=`echo "$TIME/60" | bc`
sec=`echo "$TIME%(60)" | bc`
DISP "Pomodoro time: $min:$sec left !"
sleep 1
((TIME--))
done