X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=home%2Fbin%2Falarm;fp=home%2Fbin%2Falarm;h=ad57499941d9dbff9ad490a00da3951cb820b0f2;hb=a68d5744f8758fc77c34c612edac06dbc0bea129;hp=0000000000000000000000000000000000000000;hpb=e184ff59e5cc01f9f62d0be272b77e59e149a6f1;p=khome.git diff --git a/home/bin/alarm b/home/bin/alarm new file mode 100755 index 0000000..ad57499 --- /dev/null +++ b/home/bin/alarm @@ -0,0 +1,18 @@ +#! /bin/sh + +case "$1" + in "") + seconds=0 + ;; *) + seconds="$1" +esac + +$HOME/bin/snore "$seconds" + +printf "!!! TIMES UP !!!\n" + +while true +do + play -q -n synth 0.25 sin 500 2> /dev/null + sleep 0.25 +done