Use this string template in the compact player to display a headphone icon (ᖳᖰ) when connected to wired headphones or a Bluetooth device:
%artist%{ • ᖳᖰ%|output.current==“Auriculares” || output.current==“Headphones” || (renderer.type==“Android” && output.current!=“Dispositivo” && output.current!=“Phone”)%}{ • ᖳᖰ%|renderer.type!=“Android”%}
Only works correctly in English and Spanish.

