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