#! /bin/sh

wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle

command -v notify-send > /dev/null || exit
case "$(wpctl get-volume @DEFAULT_AUDIO_SOURCE@)" in
*\[MUTED\])
	notify-send "  muted" "microphone is muted"
	;;
*)
	notify-send "  unmuted" "microphone is active"
	;;
esac