Skip to content

Instantly share code, notes, and snippets.

@dcode
Last active January 7, 2023 01:26
Show Gist options
  • Save dcode/c5b7e6285e29a278933bcbab36783acf to your computer and use it in GitHub Desktop.
Save dcode/c5b7e6285e29a278933bcbab36783acf to your computer and use it in GitHub Desktop.
On Fedora 36 with Pipewire and Wayland, this will toggle the media pipeline mute for the Zoom mic input. Unfortunately, it doesn't toggle the "mute" state within Zoom, but at least the mic is cut off.
pactl set-source-output-mute "$( \
pactl list source-outputs | \
perl -ne '/^Source Output #(\d+)/ && { $sourceid=$1 }; /^\s+node.name = \"ZOOM VoiceEngine\"/ && print $sourceid;'\
)" toggle
@dcode
Copy link
Author

dcode commented Sep 7, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment