From f3fe666cc688fecd41bf93a7efeb1ef85e6e5438 Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Sat, 9 Mar 2019 20:59:23 -0500 Subject: [PATCH] Add alarm script --- bin/alarm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 bin/alarm diff --git a/bin/alarm b/bin/alarm new file mode 100755 index 0000000..f16a20c --- /dev/null +++ b/bin/alarm @@ -0,0 +1,19 @@ +#! /bin/sh + +case "$1" + in "") + printf "How many seconds to sleep?" 1>&2 + exit 1 + ;; *) + 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 -- 2.20.1