This commit is contained in:
sevi-kun
2020-05-26 08:31:18 +02:00
parent eb128e6767
commit 09a818598a
10 changed files with 80 additions and 0 deletions

9
toggle_mic.sh Executable file
View 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