Created
November 1, 2015 16:35
-
-
Save dallarosa/5d0d57e7c5340b23c24c to your computer and use it in GitHub Desktop.
Start chrome outputting sound to the soft volume device when the bluetooth speaker is connected
This file contains hidden or 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
#!/usr/bin/bash | |
/usr/bin/hcitool con | grep -o 'DEVICE_MAC_ADDRESS' &> /dev/null | |
if [ $? -eq 0 ] | |
then PATH_TO_CHROME --alsa-output-device=softvol "$@" | |
else PATH_TO_CHROME | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment