Last active
December 10, 2016 09:48
-
-
Save nooitaf/4e53158418200af5916a305d44621be7 to your computer and use it in GitHub Desktop.
alarm clock script with snooze
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 | |
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