Skip to content

Instantly share code, notes, and snippets.

@JDiPierro
Last active October 3, 2019 00:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JDiPierro/caaf3f9554fd9b52a84e473c75c30ff3 to your computer and use it in GitHub Desktop.
Save JDiPierro/caaf3f9554fd9b52a84e473c75c30ff3 to your computer and use it in GitHub Desktop.
Guided Box Breathing
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