Last active
December 10, 2016 09:48
Star
You must be signed in to star a gist
alarm clock script with snooze
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 | |
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