Enhance play.sh script for volume adjustment

This commit includes improvements to the 'play.sh' script:
- Added a 'while' loop for volume 100, ensuring continuous playback with the specified volume.
- Changed the volume increment loop to start from volume 20 and increase by 10 in each iteration.
- Improved comments and formatting in the script.

The changes aim to enhance the script's functionality by addressing volume-related issues and providing better clarity in the script structure.
This commit is contained in:
Ratatoskr 2024-02-13 09:52:16 +01:00
parent fd6dd6f9bf
commit 6b20f31fc2
Signed by: Ratatoskr
GPG Key ID: 28B77439A6D78F4E

View File

@ -21,6 +21,10 @@ for ((volume = 20; volume <= 100; volume += 10)); do
# Wait for the completion of the current mpv process before starting the next one
wait
while [[ volume == 100 ]]; do
/data/data/com.termux/files/usr/bin/mpv --replaygain=track --volume="$volume" /data/scripts/your-new-morning-alarm.ogg &
done
done
# End of the script