10 lines
231 B
Bash
10 lines
231 B
Bash
#!/usr/bin/env bash
|
|
bt_connected=$(bluetoothctl devices Connected | awk '{$1=""; $2=""; print substr($0,3)}')
|
|
if [ -n "$bt_connected" ]; then
|
|
echo ""
|
|
else
|
|
echo ""
|
|
fi
|
|
# Output the list for tooltip
|
|
echo "$bt_connected"
|