List connected bluetooth audio devices

This commit is contained in:
2021-12-31 16:02:58 +01:00
parent 7da5acc4d3
commit 4c42f09f96

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"