Skip to content

Instantly share code, notes, and snippets.

@TheProjectsGuy
Created October 30, 2022 14:36
Show Gist options
  • Save TheProjectsGuy/373279319af75024280dae29dd47ce4d to your computer and use it in GitHub Desktop.
Save TheProjectsGuy/373279319af75024280dae29dd47ce4d to your computer and use it in GitHub Desktop.
Controlling your mic using amixer on Linux Mint
#!/bin/bash
# Toggle mic ON/OFF
tgl=$(amixer -D pulse sset Capture toggle)
if echo "$tgl" | grep "\] \[off\]"; then
echo "Mic is toggled OFF"
else
echo "Mic is toggled ON"
fi
@TheProjectsGuy
Copy link
Author

Got the starter code from here. Currently, it is as-is.

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