real pomodoro
This commit is contained in:
parent
5bb957653c
commit
9c65e363ed
21
Utils/pomodoro
Executable file
21
Utils/pomodoro
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/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
|
||||
|
Loading…
Reference in a new issue