summaryrefslogblamecommitdiff
path: root/.local/bin/audio_mutemic
blob: b622b62358bc83bb98d2560573fd38e6ab921ce2 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

          




                                                    
                                                      

          
                                                         

          
#! /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