DEV Community

Bianca Luísa
Bianca Luísa

Posted on

alias to toggle your microphone using terminal

If you type it on your bash, you will alternate your microphone on/off switch (toggle). If you are using ubuntu 18.04 open a terminal and type the command below:

echo "alias mic='amixer -D pulse sset Capture toggle'" >> ~/.bashrc && . ~/.bashrc

now when you type mic on your terminal it will alternate between muted or not.

Top comments (0)