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