From bfe3d1044a5e3cd7af2efcb0df8657e402136bc2 Mon Sep 17 00:00:00 2001 From: Penelope Gwen Date: Wed, 12 Mar 2025 20:00:01 -0700 Subject: [PATCH] New backup 2025-03-12 20:00:01 --- de/home/.config/eww/scripts/bar/bluetooth | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/de/home/.config/eww/scripts/bar/bluetooth b/de/home/.config/eww/scripts/bar/bluetooth index 996d785..34970b7 100755 --- a/de/home/.config/eww/scripts/bar/bluetooth +++ b/de/home/.config/eww/scripts/bar/bluetooth @@ -41,8 +41,16 @@ function btstatus(){ btstatus -bluetoothctl | awk '/Device.*Connected/' | { - while read -r event; do - btstatus - done; -} +echo 'hi' + +bluetoothctl | grep 'Connected' | while read -r event;do + btstatus +done + +exit + +#bluetoothctl | awk '/Connected/' | tr -d '\r' | while read -r event; do +bluetoothctl | tr -d '\r' | while read -r event; do + btstatus +# echo "${event}" +done