Permalink
Browse files

Now plays the alarm again after 10 minutes, just to make sure I haven…

…'t gone back to sleep
  • Loading branch information...
duairc committed May 13, 2010
1 parent ade9b9b commit bea0d0dc55bb6babfbd74cd5abe2074157b7b3bf
Showing with 4 additions and 1 deletion.
  1. +4 −1 nap
View
5 nap
@@ -82,15 +82,18 @@ nap() {
alarm() {
( alarms | xargs -d'\n' mplayer -loop 99999999 >/dev/null 2>/dev/null ) &
+ pid=$!
monitor_on
sound_on
while is_sound_on; do
sleep 0.1
done
- killall -9 mplayer
+ kill -9 $pid
}
sleep_well
notify andrew
nap
alarm
+sleep 10m
+alarm just in case

0 comments on commit bea0d0d

Please sign in to comment.