-
Notifications
You must be signed in to change notification settings - Fork 0
/
routine
executable file
·45 lines (43 loc) · 951 Bytes
/
routine
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
doit() {
say "$1" && countdown "$2" "$1" && beepz -q "$1"
}
case "$1" in
A|a) # <15 minutes
say "Exercise Routine A" && sleep 2
for x in 1 2 3; do
doit "plank" 30s
doit "rest" 30s
done
for x in 1 2 3; do
doit "dumbbell straight-leg deadlift" 50s
doit "dumbbell row one arm" 35s
done
doit "rest" 1m
for x in 1 2 3; do
doit "dumbbell squat" 60s
doit "pushups" 60s
done
say "done"
;;
B|b) # 20.5 minutes (redo for x12)
say "Exercise Routine B" && sleep 2
for x in 1 2 3; do
doit "plank" 30s
doit "rest" 30s
done
for x in 1 2 3; do
doit "dumbbell squat" 60s
doit "bicep curl" 90s
done
doit "rest" 1m
for x in 1 2 3; do
doit "dumbbell straight leg deadlift" 70s
doit "dumbbell shoulder press" 60s
done
say "done"
;;
*)
echo "Not a valid routine"
;;
esac