Last active
December 3, 2016 18:49
-
-
Save MichaelXavier/a6bf1d8b38d974889ac5977f0d380259 to your computer and use it in GitHub Desktop.
Hook stack to play deathgrips noises on success/failure
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
#!/bin/bash | |
# alias stack='~/stack.sh' | |
SUCCESS=${SUCCESS:=~/Dropbox/Music/YUH.wav} | |
FAILURE=${FAILURE:=~/Dropbox/Music/AUGH.wav} | |
stack "$@" | |
status=$? | |
if [[ $status -eq 0 ]] | |
then | |
aplay $SUCCESS --quiet | |
else | |
aplay $FAILURE --quiet | |
fi | |
exit $status |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment