Skip to content

Instantly share code, notes, and snippets.

@nooitaf
Last active December 10, 2016 09:48
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save nooitaf/4e53158418200af5916a305d44621be7 to your computer and use it in GitHub Desktop.
alarm clock script with snooze
#!/bin/bash
HRS=5
MIN=0
SNOOZE=5
echo "Sleeping $HRS h $MIN m"
sleep $[HRS*60*60+MIN*60]
osascript -e "set Volume 10"
for x in {1..5}
do
mplayer Penguin\ Rave-OJOV1vf1zYk.mp3
sleep $[SNOOZE*60]
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment