Skip to content

Instantly share code, notes, and snippets.

@dallarosa
Created November 1, 2015 16:35
Show Gist options
  • Save dallarosa/5d0d57e7c5340b23c24c to your computer and use it in GitHub Desktop.
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
#!/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