diff options
author | root <root@krebs> | 2011-09-09 19:34:20 +0200 |
---|---|---|
committer | root <root@krebs> | 2011-09-09 19:34:20 +0200 |
commit | 0e49743f32b550e4aa47a899d17f481eaed4fbc8 (patch) | |
tree | e62a858d0edc6d49ed621c43c82b496f3136cc56 | |
parent | 39026acca1b657ccf5446014ab7ca045c97e9cb3 (diff) |
//noise/modules/overlord: initial commit
-rwxr-xr-x | noise/modules/overlord | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/noise/modules/overlord b/noise/modules/overlord new file mode 100755 index 00000000..6df2451d --- /dev/null +++ b/noise/modules/overlord @@ -0,0 +1,26 @@ +#! /bin/sh +set -euf + +announce() { +sleep 0.4; amixer -q -c 0 -D hw:0 sset Front 90% +sleep 0.4; amixer -q -c 0 -D hw:0 sset Front 80% +sleep 0.4; amixer -q -c 0 -D hw:0 sset Front 70% +sleep 0.4; amixer -q -c 0 -D hw:0 sset Front 60% +sleep 0.4; amixer -q -c 0 -D hw:0 sset Front 50% +/krebs/streams/streams stop +amixer -q -c 0 -D hw:0 sset Front 100% +mplayer /krebs/god/overlord/announce.mp3 +/krebs/streams/streams start & +espeak -v de -s 120 -a 900 "$*" +amixer -q -c 0 -D hw:0 sset Front 40% +sleep 0.4; amixer -q -c 0 -D hw:0 sset Front 50% +sleep 0.4; amixer -q -c 0 -D hw:0 sset Front 60% +sleep 0.4; amixer -q -c 0 -D hw:0 sset Front 70% +sleep 0.4; amixer -q -c 0 -D hw:0 sset Front 80% +sleep 0.4; amixer -q -c 0 -D hw:0 sset Front 90% +} + +case "$1" in + --help) echo "Make an announcement! Usage: /overlord <text>";; + *) announce "$@";; +esac |