aboutsummaryrefslogtreecommitdiff
path: root/Scripts/.local/scripts
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-10-14 03:10:45 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-10-14 03:10:45 +0100
commit6c5c32c24a061f3a1a31e58369507ff7e02d7b68 (patch)
tree425c1ac85755e45c726885f7bda17551fbf9d4a5 /Scripts/.local/scripts
parentc7c8646fc6a68e0f64e5517ab35948124ce207c4 (diff)
downloaddotfiles-6c5c32c24a061f3a1a31e58369507ff7e02d7b68.tar.gz
dotfiles-6c5c32c24a061f3a1a31e58369507ff7e02d7b68.tar.bz2
dotfiles-6c5c32c24a061f3a1a31e58369507ff7e02d7b68.zip
Added script to connect via bluetooth to already known device
Diffstat (limited to 'Scripts/.local/scripts')
-rwxr-xr-xScripts/.local/scripts/bt-connect4
1 files changed, 4 insertions, 0 deletions
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