-
Notifications
You must be signed in to change notification settings - Fork 0
/
pomodoro.sh
executable file
·28 lines (25 loc) · 929 Bytes
/
pomodoro.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
# Script execution =============================================================
## Retrieving functions and parent directory -----------------------------------
scriptDir=$(dirname -- "$(readlink -f -- "$BASH_SOURCE")")
source "$scriptDir"/fun/pomodoroTime.sh
source "$scriptDir"/fun/shortBreakTime.sh
source "$scriptDir"/fun/longBreakTime.sh
## Starting pomodoros ----------------------------------------------------------
echo "Starting 4-pomodoro set"
echo $(date +"%T") "Starting 1st pomodoro"
pomodoroTime 1
echo $(date +"%T") "Taking a short break"
shortBreakTime
echo $(date +"%T") "Starting 2nd pomodoro"
pomodoroTime 2
echo $(date +"%T") "Taking a short break"
shortBreakTime
echo $(date +"%T") "Starting 3rd pomodoro"
pomodoroTime 3
echo $(date +"%T") "Taking a short break"
shortBreakTime
echo $(date +"%T") "Starting 4th pomodoro"
pomodoroTime 4
echo $(date +"%T") "Taking a long break"
longBreakTime