#!/usr/bin/bash # Nom exact de ton périphérique DEVICE="BIRD UM1 Mono" # Lit la ligne correspondant au périphérique LINE=$(wpctl status | grep "$DEVICE") # Si la ligne contient "MUTED", on met l'icône micro muted if echo "$LINE" | grep -q "MUTED"; then echo "  " # micro muted else echo "  " # micro actif fi