if [[ $CURVOL -ge 0 && $CURVOL -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" $CURVOL
if [[ $CURVOL -ge 0 && $CURVOL -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" $CURVOL
- echo $CURVOL > ~/.config/pulse/volume # Write the new volume to disk to be read the next time the script is run.
+ echo $CURVOL > $VOLUME_FILE # Write the new volume to disk to be read the next time the script is run.