Created
April 2, 2017 19:56
having fun with exercises suitable for small places
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env fish | |
# it's based on https://www.reddit.com/r/Fitness/comments/2t1su3/does_anyone_jump_rope_in_their_small_apartment/cnv6way/ | |
set -l exercis_time 60 | |
set -l exercis_circles 5 | |
set -l exercises "mountain climbers" "push ups" "crunches" "bodyweight squats" "Now rest for $exercis_time seconds!" | |
set -l sleep_exercis_time (math $exercis_time + 5) | |
for _ in (seq 1 $exercis_circles) | |
for e in $exercises | |
spd-say "Do $e for $exercis_time seconds!" | |
sleep $sleep_exercis_time | |
for _ in (seq 1 4) | |
play -q -n synth 0.1 sin 600 | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment