Added mic toggle script.

This commit is contained in:
Sheldon Lee 2022-07-19 05:38:37 +08:00
parent 35617beae2
commit 188d45b432
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1 @@
../wm/toggle-mic-notify

View File

@ -0,0 +1,6 @@
#!/bin/sh
amixer set Capture toggle @> /dev/null
str=$(grep '\[on\]\|\[off\]' <<< $(amixer get Capture) | awk '{print $5}')
echo $str
notify-send "Microphone: $str"