Created
January 13, 2012 14:24
-
-
Save bgarret/1606472 to your computer and use it in GitHub Desktop.
Napping script
This file contains hidden or 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 | |
# Napping script | |
# | |
# Plays waves sound for $duration, followed by beeps | |
# | |
# Usage: | |
# ./nap.sh 15:00 => 15 minutes nap | |
set -u | |
set -e | |
duration=${1:-"15:00"} | |
play -t sl -r48000 -c2 - synth $duration pinknoise tremolo .1 40 < /dev/zero && play -t sl -c2 -r48000 - synth 0:01 sine 300 pad 0.5 repeat 1000 < /dev/zero |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment