From b9166407d1163796d5c49d2c46b5089a38a5eeb2 Mon Sep 17 00:00:00 2001 From: stormdragon2976 Date: Sun, 22 Jan 2023 23:48:56 -0500 Subject: [PATCH] Added an attention function that plays a sound when interaction is needed. This means people will be able to do something else while packages install, and turn off speech while doing so. --- .includes/functions.sh | 4 ++++ .includes/gui.sh | 2 ++ 2 files changed, 6 insertions(+) diff --git a/.includes/functions.sh b/.includes/functions.sh index a6315fe..fcd6ba1 100755 --- a/.includes/functions.sh +++ b/.includes/functions.sh @@ -8,3 +8,7 @@ if dialog --clear --backtitle "Stormux" --yesno "Would you like to reboot now to sudo reboot fi } + +attention() { + play -qnV0 synth 3 pluck D3 pluck A3 pluck D4 pluck F4 pluck A4 delay 0 .1 .2 .3 .4 remix - chorus 0.9 0.9 38 0.75 0.3 0.5 -t +} diff --git a/.includes/gui.sh b/.includes/gui.sh index 64bfcd9..b77190e 100755 --- a/.includes/gui.sh +++ b/.includes/gui.sh @@ -60,6 +60,8 @@ gitDir="$(mktemp -d)" echo "Loading I38, please wait..." git clone -q https://git.stormux.org/storm/I38 "$gitDir" cd "$gitDir" +# Play a sound to let the user know the next part is interactive. +attention ./i38.sh -x ./i38.sh fi