smarter device listing

This commit is contained in:
joachimschmidt557 2019-12-17 23:06:59 +01:00
parent 04fb50ffc0
commit 20f8e8b6df

4
blue
View file

@ -1,12 +1,12 @@
#!/bin/sh #!/bin/sh
RECENT=$(fish -c "history | grep -v 'grep' | grep 'bluetoothctl connect' | awk '{print \$3;}' | uniq") PAIRED=$(bluetoothctl paired-devices | awk '{ print $2 }')
OPTION=$(echo "$RECENT" | cat <<EOF | dmenu) OPTION=$(echo "$RECENT" | cat <<EOF | dmenu)
On On
Off Off
Disconnect Disconnect
$RECENT $PAIRED
EOF EOF
case "$OPTION" in case "$OPTION" in