From: Oleg Broytman Date: Sun, 30 Mar 2025 22:25:34 +0000 (+0300) Subject: Feat(audio/pa-volume): Set arbitrary volume X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=HEAD;p=audio-cdr-video.git Feat(audio/pa-volume): Set arbitrary volume --- diff --git a/audio/pa-volume b/audio/pa-volume index bae54c5..2c1e7d0 100755 --- a/audio/pa-volume +++ b/audio/pa-volume @@ -24,6 +24,10 @@ then pactl set-sink-mute "$default_sink" 0 exit fi +if [[ $1 == "set" ]] +then + NEWVOL="$2" +fi if [[ $NEWVOL -ge 0 && $NEWVOL -le 65540 ]] # Check to see if the volume is a valid number (65540 was needed in this case because of how I rounded the increment) then pactl set-sink-volume "$default_sink" $NEWVOL