From f84d4e1f48a59c49fd51e00f675a4c2bd94aad37 Mon Sep 17 00:00:00 2001 From: Penelope Gwen Date: Sun, 4 Jan 2026 18:15:02 -0800 Subject: [PATCH] New backup 2026-01-04 18:15:02 --- de/home/.config/eww/scripts/bar/bluetooth | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/de/home/.config/eww/scripts/bar/bluetooth b/de/home/.config/eww/scripts/bar/bluetooth index c63a11f..2e5f9c7 100755 --- a/de/home/.config/eww/scripts/bar/bluetooth +++ b/de/home/.config/eww/scripts/bar/bluetooth @@ -6,7 +6,7 @@ function btstatus(){ device_json_array=() for m in $(bluetoothctl devices Paired | awk '{print $2}');do - IFS='' read -rd "\n" dev_name dev_icon dev_connected <<<$(bluetoothctl info "${m}" | grep -e 'Connected\: \|Name\:\|Icon\:' | awk 'match($0, / : /) {print substr($0, RSTART+RLENGTH)}') + IFS='' read -rd "\n" dev_name dev_icon dev_connected <<<$(bluetoothctl info "${m}" | grep -e 'Connected\: \|Name\:\|Icon\:' | sed 's/.*: //g') # IFS='' read -rd "\n" dev_name dev_icon dev_connected <<<$(bluetoothctl info "${m}" | grep -e 'Connected\: \|Name\:\|Icon\:' | sed -n 's/.*: //p') # IFS="\n" read -r dev_name dev_icon dev_connected <<<$(bluetoothctl info "${m}" | grep -e 'Connected\: \|Name\:\|Icon\:' | sed -n 's/.*: //p') case "${dev_icon}" in