From 4ae1bb7dbd798caf373f4817dbf51fdd5d2fb1d7 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Wed, 2 Oct 2024 21:25:24 +0800 Subject: fix(audio-autoAdjust): ensure volume after transition --- audio-autoAdjust.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/audio-autoAdjust.sh b/audio-autoAdjust.sh index 7ce91fb..e25981d 100755 --- a/audio-autoAdjust.sh +++ b/audio-autoAdjust.sh @@ -17,6 +17,7 @@ function lower_music() { playerctl -p spotify volume 0.$i sleep 0.01 done + playerctl -p spotify volume $OTHERPLAYER_MUSIC_PERCENTAGE } function normal_music() { @@ -24,6 +25,7 @@ function normal_music() { playerctl -p spotify volume 0.$i sleep 0.01 done + playerctl -p spotify volume $NORMAL_MUSIC_PLAYER_PERCENTAGE } if [ "$1" ]; then -- cgit v1.2.3