#!/bin/bash if bluetoothctl show | grep -q "Powered: yes"; then if bluetoothctl info | grep -q "Connected: yes"; then if bluetoothctl info | grep -q "Icon: audio-headphones"; then echo "" else echo "" fi else echo "" fi else echo "" fi