Fix acpi volume ctl
This commit is contained in:
parent
f7040143be
commit
bdc18145ac
@ -12,7 +12,8 @@ for SINK in $sinks
|
|||||||
do
|
do
|
||||||
volume=$(echo $1 | sed "s/%//g")
|
volume=$(echo $1 | sed "s/%//g")
|
||||||
if [[ $volume =~ "+" ]] || [[ $volume =~ "-" ]]; then
|
if [[ $volume =~ "+" ]] || [[ $volume =~ "-" ]]; then
|
||||||
volume=$(($(pactl get-sink-volume 0 | grep -o -E "[0-9]+%" | head -1 | sed "s/%//g") $volume))
|
volume=$(($(pactl get-sink-volume $SINK | grep -o -E "[0-9]+%" | head -1 | sed "s/%//g") $volume))
|
||||||
|
echo $volume
|
||||||
if [[ "${volume}" =~ "-" ]]; then
|
if [[ "${volume}" =~ "-" ]]; then
|
||||||
volume="0"
|
volume="0"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user