Skip to content

Instantly share code, notes, and snippets.

@bgarret
Created January 13, 2012 14:24
Show Gist options
  • Save bgarret/1606472 to your computer and use it in GitHub Desktop.
Save bgarret/1606472 to your computer and use it in GitHub Desktop.
Napping script
#!/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