From ff3318744f8e8d11627eea1acfce24cfebc155b8 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Thu, 8 Oct 2015 15:31:23 +0200 Subject: [PATCH] make my bluetooth connector generic --- local/bin/bluetooth.sh | 15 +++++++++++++++ local/bin/headset.sh | 5 ----- 2 files changed, 15 insertions(+), 5 deletions(-) create mode 100755 local/bin/bluetooth.sh delete mode 100755 local/bin/headset.sh diff --git a/local/bin/bluetooth.sh b/local/bin/bluetooth.sh new file mode 100755 index 0000000..32d84bf --- /dev/null +++ b/local/bin/bluetooth.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# choose MAC address +mac="$(dmenu < /dev/null ; fi +cat "$command" <(echo "quit") \ + | bluetoothctl > /dev/null 2>&1 + diff --git a/local/bin/headset.sh b/local/bin/headset.sh deleted file mode 100755 index 5c29157..0000000 --- a/local/bin/headset.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -if ! pgrep pulseaudio; then pulseaudio --start 2> /dev/null ; fi -cat <(echo "connect 00:11:67:11:18:9B") <(echo "quit") \ - | bluetoothctl > /dev/null 2>&1 -