blob: 1e23053caa9fd4f6c006f740eb67d1ce11b9f6ff (
plain)
1
2
3
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
|