smarter device listing
This commit is contained in:
parent
04fb50ffc0
commit
20f8e8b6df
1 changed files with 2 additions and 2 deletions
4
blue
4
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 <<EOF | dmenu)
|
||||
On
|
||||
Off
|
||||
Disconnect
|
||||
$RECENT
|
||||
$PAIRED
|
||||
EOF
|
||||
|
||||
case "$OPTION" in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue