From 20f8e8b6df4ac9fec5402324a726c4c025373eb2 Mon Sep 17 00:00:00 2001 From: joachimschmidt557 Date: Tue, 17 Dec 2019 23:06:59 +0100 Subject: [PATCH] smarter device listing --- blue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blue b/blue index d3f803a..50fd20d 100755 --- a/blue +++ b/blue @@ -1,12 +1,12 @@ #!/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 <