Skip to content

Instantly share code, notes, and snippets.

@tekkub
Created September 6, 2010 08:36
Show Gist options
  • Save tekkub/566796 to your computer and use it in GitHub Desktop.
Save tekkub/566796 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
let MIN=$1*60
echo "Timer scheduled for $1 minutes"
nohup bash -c "sleep $MIN && growlnotify -m '$2' -t 'Timer expired' -p 2 -s -n 'Terminal Timer' && afplay ~/Library/Sounds/weee.mp3 &"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment