Created
October 30, 2022 14:36
-
-
Save TheProjectsGuy/373279319af75024280dae29dd47ce4d to your computer and use it in GitHub Desktop.
Controlling your mic using amixer on Linux Mint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Got the starter code from here. Currently, it is as-is.