This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Tested on Linux Mint 18.3 / Ubuntu 16.04 with PulseAudio 8.0. | |
# No need for superuser. | |
# You can map it to keyboard shortcut and press when bluetooth audio starts lagging. | |
# Reference: | |
# https://askubuntu.com/a/171165/373130 | |
# https://askubuntu.com/a/72076/373130 | |
BLUEZCARD=`pactl list cards short | grep bluez | awk '{print $1}'` |