From 4c42f09f9662ad9b0696de6a4f26b61f0793cf67 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Fri, 31 Dec 2021 16:02:58 +0100 Subject: [PATCH] List connected bluetooth audio devices --- .bin/current-bt-audio | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 .bin/current-bt-audio diff --git a/.bin/current-bt-audio b/.bin/current-bt-audio new file mode 100755 index 0000000..70d0d7a --- /dev/null +++ b/.bin/current-bt-audio @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +sink=$(pacmd list-sinks \ + | grep "bluez.alias" \ + | cut -d' ' -f3 \ + | tr -d \" \ + | xargs) + +echo "$sink"