diff options
Diffstat (limited to 'Scripts')
-rwxr-xr-x | Scripts/.local/scripts/bt-connect | 4 |
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 |