Skip to content

Instantly share code, notes, and snippets.

@xpavli44
Forked from redolent/renice-audio.sh
Last active November 21, 2019 14:31
Show Gist options
  • Save xpavli44/a6b2e2d83be6d434e04dac0b5eb3ecad to your computer and use it in GitHub Desktop.
Save xpavli44/a6b2e2d83be6d434e04dac0b5eb3ecad to your computer and use it in GitHub Desktop.
Fix Bluetooth Audio on Mac
#!/bin/bash
list="$(
sudo ps -A \
| grep -iE '([h]ear|[f]irefox|[b]lue|[c]oreaudiod)' \
| cut -c 1-90
)"
pids=$( cut -c 1-6 <<< "$list")
for pid in $pids
do
sudo renice -5 "$pid"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment