Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Copyright 2011 Brian Crockford
- # a2dp-connect.sh
- # 1. Enable=Source in /etc/bluetooth/audio.conf
- # 2. Pair device
- # 3. Run script
- # Instructions at http://ubuntuforums.org/showpost.php?p=9511043&postcount=10
- # dbus-send: connect to device
- # pactl load-module: link audio stream
- SOURCE="Enter your source here (bluetooth device)"
- SINK="Enter your sink here (audio output)"
- dbus-send --system --print-reply --dest=org.bluez --type=method_call /org/bluez/4546/hci0/dev_00_23_76_79_08_D8 org.bluez.AudioSource.Connect > /dev/null && \
- pactl load-module module-loopback source=$SOURCE sink=$SINK
Advertisement
Add Comment
Please, Sign In to add comment