add *.sh
This commit is contained in:
9
toggle_mic.sh
Executable file
9
toggle_mic.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
pulsemixer --id source-1 --toggle-mute
|
||||
mic_state=$(pulsemixer --id source-1 --get-mute)
|
||||
if [ "$mic_state" == "0" ]
|
||||
then
|
||||
notify-send "Mic is now unmuted"
|
||||
else
|
||||
notify-send "Mic is now muted"
|
||||
fi
|
Reference in New Issue
Block a user