1 2 3 4 5 6
#!/bin/bash if [ $(pulsemixer --get-mute) -eq 1 ]; then echo "MUTED" else printf "%s%%" $(pulsemixer --get-volume | awk '{print $2 }') fi