show name

This commit is contained in:
joachimschmidt557 2019-12-17 23:17:12 +01:00
parent 20f8e8b6df
commit fa79e786c8

4
blue
View file

@ -1,6 +1,6 @@
#!/bin/sh
PAIRED=$(bluetoothctl paired-devices | awk '{ print $2 }')
PAIRED=$(bluetoothctl paired-devices | cut -d' ' -f2-)
OPTION=$(echo "$RECENT" | cat <<EOF | dmenu)
On
@ -23,6 +23,6 @@ case "$OPTION" in
exit 1
;;
*)
bluetoothctl connect "$OPTION"
echo "$OPTION" | cut -d' ' -f1 | xargs bluetoothctl connect
;;
esac