Added mic toggle script.
This commit is contained in:
parent
35617beae2
commit
188d45b432
1
.config/scripts/bin/toggle-mic-notify
Symbolic link
1
.config/scripts/bin/toggle-mic-notify
Symbolic link
@ -0,0 +1 @@
|
||||
../wm/toggle-mic-notify
|
6
.config/scripts/wm/toggle-mic-notify
Executable file
6
.config/scripts/wm/toggle-mic-notify
Executable 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"
|
Loading…
Reference in New Issue
Block a user