1 2 3 4 5 6 7 8 9
#!/bin/sh SINK="$(pactl-get-running-sink)" if [ -z "$SINK" ]; then SINK=0 fi pactl set-sink-mute "$SINK" toggle