From c6a22a173c02797804d713aa3077be8496ffe711 Mon Sep 17 00:00:00 2001 From: AngeD Date: Wed, 10 Aug 2022 00:15:43 +0200 Subject: [PATCH] fix: get-volume command --- bin/set-vol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/set-vol b/bin/set-vol index 3ea9339..0fc265c 100755 --- a/bin/set-vol +++ b/bin/set-vol @@ -2,7 +2,7 @@ set -e 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"))" case "${1:0:1}" in