From 6460a9be158b76f81b2f7cd823c8f83de7ff190d Mon Sep 17 00:00:00 2001 From: tdpeuter Date: Mon, 2 May 2022 11:30:45 +0200 Subject: [PATCH] Fixed wrong volume when headphones connected --- scripts/notify.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/notify.sh b/scripts/notify.sh index 9a315be..f003a9d 100755 --- a/scripts/notify.sh +++ b/scripts/notify.sh @@ -13,7 +13,7 @@ while getopts ":bvm:" options; do title="Brightness: ${value}" ;; v) - value=$(pactl get-sink-volume 0 | cut -d '/' -f2 | grep -o '[0-9]*%') + value=$(pactl get-sink-volume @DEFAULT_SINK@ | cut -d '/' -f2 | grep -o '[0-9]*%') # if [[ $status == "[on]" ]] ; then # value=$(amixer get Master | grep -o "[0-9]*%" | head -n 1) # fi