Skip to content

Instantly share code, notes, and snippets.

@ivan-klass
Created July 9, 2019 09:14
Show Gist options
  • Save ivan-klass/cb3be3ad515787c9e95ae0995df291e2 to your computer and use it in GitHub Desktop.
Save ivan-klass/cb3be3ad515787c9e95ae0995df291e2 to your computer and use it in GitHub Desktop.
Ubuntu toggle USB microphone shortcut
#!/bin/sh
amixer -c 1 sset Mic toggle | grep '\[off\]' && notify-send "❌ MIC switched OFF ❌" || notify-send "🎤 MIC switched ON 🎤"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment