Skip to content

Instantly share code, notes, and snippets.

@tcluri
tcluri / bluez-sync.sh
Last active December 23, 2017 06:51
Solving connection to bluetooth speakers
#!/bin/bash
BLUEZCARD=`pactl list cards short | egrep -o bluez.*[[:space:]]`
pactl set-card-profile $BLUEZCARD a2dp_sink
pactl set-card-profile $BLUEZCARD headset_head_unit
pactl set-card-profile $BLUEZCARD a2dp_sink