fix: get-volume command

This commit is contained in:
AngeD 2022-08-10 00:15:43 +02:00
parent 96b5d2aceb
commit c6a22a173c

View File

@ -2,7 +2,7 @@
set -e set -e
SINK='@DEFAULT_SINK@' SINK='@DEFAULT_SINK@'
CUR="$(pactl get-sink-volume "$DEFAULT_SINK" | awk '$1 == "Volume:" {print substr($5, 1, length($5) - 1)}')" CUR="$(pactl get-sink-volume "$SINK" | awk '$1 == "Volume:" {print substr($5, 1, length($5) - 1)}')"
CUR="$((CUR - CUR % "$1"))" CUR="$((CUR - CUR % "$1"))"
case "${1:0:1}" in case "${1:0:1}" in