diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2022-08-12 12:06:37 +0200 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2022-08-12 12:06:37 +0200 |
commit | 7e841a6cef0392e60b848b13bff72f91baa91f81 (patch) | |
tree | 39d9135c43fc141559f2c5b9ac0b5323f363822e /bluetooth | |
parent | 861393b07a0e7a2ce9a22ef4e0de74401ef255fd (diff) | |
download | scripts-7e841a6cef0392e60b848b13bff72f91baa91f81.tar.gz scripts-7e841a6cef0392e60b848b13bff72f91baa91f81.zip |
Update to bluetoothctl usage after change in interface.
Diffstat (limited to 'bluetooth')
-rwxr-xr-x | bluetooth/btConnect.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bluetooth/btConnect.sh b/bluetooth/btConnect.sh index 0fccbba..71bb93b 100755 --- a/bluetooth/btConnect.sh +++ b/bluetooth/btConnect.sh @@ -25,8 +25,8 @@ if bluetoothctl show | grep -Fq 'Powered: no'; then notify-send "$title" "Bluetooth controller powered on." fi -lines=$(bluetoothctl paired-devices | wc -l) -selected=$(bluetoothctl paired-devices | dmenu -l $lines -p "💓") || exit 1 +lines=$(bluetoothctl devices Paired | wc -l) +selected=$(bluetoothctl devices Paired | dmenu -l $lines -p "💓") || exit 1 mac=$(echo $selected | cut -d' ' -f2) name=$(echo $selected | cut -d' ' -f3-) |