Fixed wrong volume when headphones connected

This commit is contained in:
Tibo De Peuter 2022-05-02 11:30:45 +02:00
parent 01c6872143
commit 6460a9be15

View file

@ -13,7 +13,7 @@ while getopts ":bvm:" options; do
title="Brightness: ${value}" title="Brightness: ${value}"
;; ;;
v) 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 # if [[ $status == "[on]" ]] ; then
# value=$(amixer get Master | grep -o "[0-9]*%" | head -n 1) # value=$(amixer get Master | grep -o "[0-9]*%" | head -n 1)
# fi # fi