Last active
October 3, 2019 00:31
-
-
Save JDiPierro/caaf3f9554fd9b52a84e473c75c30ff3 to your computer and use it in GitHub Desktop.
Guided Box Breathing
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
function relax { | |
function typecat { | |
type lolcat &>/dev/null && lolcat -p .4 || cat; | |
} | |
function sleepcount { | |
for i in {1..4}; do echo -en " $i" && sleep 1; done | |
} | |
function mantra { | |
echo -en "\r\033[K $1" | typecat -p .8 | |
sleepcount | |
} | |
while true; do | |
mantra "Breathe in" | |
mantra "Hold air in your lungs" | |
mantra "Exhale" | |
mantra "Hold your breath, lungs emptied" | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment