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.

This commit is contained in:
stormdragon2976 2023-01-22 23:48:56 -05:00
parent 2aaad60d04
commit b9166407d1
2 changed files with 6 additions and 0 deletions

View File

@ -8,3 +8,7 @@ if dialog --clear --backtitle "Stormux" --yesno "Would you like to reboot now to
sudo reboot sudo reboot
fi 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
}

View File

@ -60,6 +60,8 @@ gitDir="$(mktemp -d)"
echo "Loading I38, please wait..." echo "Loading I38, please wait..."
git clone -q https://git.stormux.org/storm/I38 "$gitDir" git clone -q https://git.stormux.org/storm/I38 "$gitDir"
cd "$gitDir" cd "$gitDir"
# Play a sound to let the user know the next part is interactive.
attention
./i38.sh -x ./i38.sh -x
./i38.sh ./i38.sh
fi fi