From 13b4f196116f332b8e683c142327a956f3eb7f14 Mon Sep 17 00:00:00 2001 From: Shubham Saini Date: Sun, 2 Oct 2022 20:12:35 -0700 Subject: polybar: fixing bluetooth script --- polybar/.config/polybar/bt.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'polybar') diff --git a/polybar/.config/polybar/bt.sh b/polybar/.config/polybar/bt.sh index 0500e67..177932b 100755 --- a/polybar/.config/polybar/bt.sh +++ b/polybar/.config/polybar/bt.sh @@ -5,7 +5,7 @@ bluetooth_print() { if [ "$(systemctl is-active "bluetooth.service")" = "active" ]; then # printf 'on' - devices_paired=$(bluetoothctl paired-devices | grep Device | cut -d ' ' -f 2) + devices_paired=$(bluetoothctl devices | grep Device | cut -d ' ' -f 2) counter=0 for device in $devices_paired; do @@ -40,12 +40,12 @@ bluetooth_toggle() { bluetoothctl power on >> /dev/null sleep 1 - devices_paired=$(bluetoothctl paired-devices | grep Device | cut -d ' ' -f 2) + devices_paired=$(bluetoothctl devices | grep Device | cut -d ' ' -f 2) echo "$devices_paired" | while read -r line; do bluetoothctl connect "$line" >> /dev/null done else - devices_paired=$(bluetoothctl paired-devices | grep Device | cut -d ' ' -f 2) + devices_paired=$(bluetoothctl devices | grep Device | cut -d ' ' -f 2) echo "$devices_paired" | while read -r line; do bluetoothctl disconnect "$line" >> /dev/null done -- cgit v1.2.3