#!/usr/bin/env bash # Get list of connected devices bt_connected=$(bluetoothctl devices Connected | awk '{$1=$2=""; print substr($0,3)}') # Icon for display if [ -n "$bt_connected" ]; then echo "" # Main icon else echo "" fi # Export list for tooltip echo "$bt_connected"