diff --git a/src/speedwm-audioctrl b/src/speedwm-audioctrl index 7a30c39..ccba9ae 100755 --- a/src/speedwm-audioctrl +++ b/src/speedwm-audioctrl @@ -37,7 +37,7 @@ RAISE() { pactl set-sink-volume @DEFAULT_SINK@ 100% else pactl set-sink-volume @DEFAULT_SINK@ +10% - test ${BINDIR}notify-send && notify-send " $(pactl get-sink-volume @DEFAULT_SINK@ | awk '{ print $5;exit }')" + test ${BINDIR}notify-send && notify-send " $(pactl get-sink-volume @DEFAULT_SINK@ | awk '{ print $5;exit }')" fi fi else @@ -45,7 +45,7 @@ RAISE() { a=$a else amixer -c 0 set Master 7%+ - ls ${BINDIR}notify-send && notify-send " $(amixer -c 0 get Master | tail -n 1 | sed -r "s/.*\[(.*)%\].*/\1/")%" + ls ${BINDIR}notify-send && notify-send " $(amixer -c 0 get Master | tail -n 1 | sed -r "s/.*\[(.*)%\].*/\1/")%" fi fi } @@ -55,7 +55,7 @@ LOWER() { if [ -e "${BINDIR}pactl" ]; then if [ "$(pactl get-sink-volume @DEFAULT_SINK@ | awk '{ print $5;exit }' | sed 's/%//g')" != "0" ]; then pactl set-sink-volume @DEFAULT_SINK@ -10% - test ${BINDIR}notify-send && notify-send " $(pactl get-sink-volume @DEFAULT_SINK@ | awk '{ print $5;exit }')" + test ${BINDIR}notify-send && notify-send " $(pactl get-sink-volume @DEFAULT_SINK@ | awk '{ print $5;exit }')" fi fi @@ -64,7 +64,7 @@ LOWER() { a=$a else amixer -c 0 set Master 7%- - test ${BINDIR}notify-send && notify-send " $(amixer -c 0 get Master | tail -n 1 | sed -r "s/.*\[(.*)%\].*/\1/")%" + test ${BINDIR}notify-send && notify-send " $(amixer -c 0 get Master | tail -n 1 | sed -r "s/.*\[(.*)%\].*/\1/")%" fi fi }