Added script to connect via bluetooth to already known device

This commit is contained in:
2024-10-14 03:10:45 +01:00
parent c7c8646fc6
commit 6c5c32c24a

View File

@@ -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