enhance script

This commit is contained in:
Guillaume Castagnino 2020-09-04 15:15:09 +02:00
parent f7900b7308
commit a2614bffc3
1 changed files with 5 additions and 1 deletions

6
bluetooth-port-latency.sh Normal file → Executable file
View File

@ -1,3 +1,7 @@
#!/bin/sh
pactl set-port-latency-offset $(pactl list cards short | egrep -o bluez.*[[:space:]]) headset-output 150000
latency=${1:-160000}
for bz in $(pactl list cards short | egrep -o bluez.*[[:space:]]); do
pactl set-port-latency-offset ${bz} headset-output ${latency}
done