X-Git-Url: https://git.phdru.name/?p=audio-cdr-video.git;a=blobdiff_plain;f=audio%2Fpa-volume;h=3e7507f39686198de0965e969477c1d523d959dd;hp=8210dd112760de192dcb06d6b5c7a50bdc96079e;hb=2f4a0ee0d5b6f5ece46274ef96441d93c09482b5;hpb=80795b99dce510e6dbe3d800510f3386d915ae1d diff --git a/audio/pa-volume b/audio/pa-volume index 8210dd1..3e7507f 100755 --- a/audio/pa-volume +++ b/audio/pa-volume @@ -1,8 +1,8 @@ #! /usr/bin/env bash # From http://crunchbanglinux.org/forums/topic/11392/pulseaudio-volume-control-with-media-keys/ -declare -i CURVOL=`cat ~/.pulse/volume` #Reads in the current volume -default_sink=`cat ~/.pulse/default` +declare -i CURVOL=`cat ~/.config/pulse/volume` #Reads in the current volume +default_sink=`cat ~/.config/pulse/default` if [[ $1 == "increase" ]] then @@ -25,6 +25,6 @@ fi 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 > ~/.pulse/volume # Write the new volume to disk to be read the next time the script is run. + echo $CURVOL > ~/.config/pulse/volume # Write the new volume to disk to be read the next time the script is run. exit fi