10 lines
210 B
Bash
Executable File
10 lines
210 B
Bash
Executable File
#!/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
|