From 6c5c32c24a061f3a1a31e58369507ff7e02d7b68 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Mon, 14 Oct 2024 03:10:45 +0100 Subject: Added script to connect via bluetooth to already known device --- Scripts/.local/scripts/bt-connect | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 Scripts/.local/scripts/bt-connect (limited to 'Scripts/.local') diff --git a/Scripts/.local/scripts/bt-connect b/Scripts/.local/scripts/bt-connect new file mode 100755 index 0000000..1e23053 --- /dev/null +++ b/Scripts/.local/scripts/bt-connect @@ -0,0 +1,4 @@ +#!/usr/bin/env sh + +choice=$(bluetoothctl devices | sed 's/Device \([A-Z0-9:]*\) \(.*\)/\2\t\1/g' | dmenu -i -p "Device: " | sed 's/.*\t//') +[ ! -z $choice ] && bluetoothctl connect $choice -- cgit v1.2.3-13-gbd6f