I think this should work (I haven’t tested it):
make a new file called default (.) pa in the pulseaudio congfig folder (.config/pulse)
this will mute source_name (replace source_name with your source name):
#include this config file
.include /etc/pulse/default.pa
set-source-mute source_name true
run this command to list source names:
pactl list short sources
Were you thinking about something like this?
**Tip:** The default source can be referred as `@DEFAULT_SOURCE@` in commands, for example: `$ pactl set-source-mute @DEFAULT_SOURCE@ toggle`
Default sink:
@DEFAULT_SINK@