diff --git a/connect.sh b/connect.sh new file mode 100755 index 0000000..8100ed5 --- /dev/null +++ b/connect.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +mac=$(cat .maclist) + +bluetoothctl connect "$mac" + +if [ $? -eq 0 ]; then + pactl set-default-sink "bluez_output.$(tr : _ <<< $mac).1" +fi