From 6b20f31fc22a9009eb35d68b56c2ce1a1c0d0907 Mon Sep 17 00:00:00 2001 From: Ratatoskr Date: Tue, 13 Feb 2024 09:52:16 +0100 Subject: [PATCH] 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. --- play.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/play.sh b/play.sh index 9d5d52e..fcfa787 100644 --- a/play.sh +++ b/play.sh @@ -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