Dots/configs/qtile/scripts/toggle_mic
2023-04-19 11:04:08 +01:00

9 lines
279 B
Bash
Executable file

#!/usr/bin/env bash
# Toggle mic mute
pactl set-source-mute @DEFAULT_SOURCE@ toggle
if (pactl list sources | grep -m 2 Mute | tail -n 1 | awk '{print $2}' | grep -q yes) then
notify-send "Microphone" "Muted" -u critical
else
notify-send "Microphone" "Unmuted" -u low
fi