List connected bluetooth audio devices

This commit is contained in:
2021-12-31 16:02:58 +01:00
parent baa66b7256
commit b24348455b

9
.bin/current-bt-audio Executable file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/env bash
sink=$(pacmd list-sinks \
| grep "bluez.alias" \
| cut -d' ' -f3 \
| tr -d \" \
| xargs)
echo "$sink"