1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-30 12:01:16 +01:00
Files
dotfiles/.local/bin/tools/audio/mic_toggle

12 lines
263 B
Bash
Executable File

#!/bin/sh
if amixer get Capture | tail -2 | grep -q '\[on\]'; then
paplay ~/.local/bin/tools/audio/mic_muted.wav
lmc mute
lmc undeaf
else
lmc unmute
lmc undeaf
paplay ~/.local/bin/tools/audio/mic_activated.wav
fi
pkill -RTMIN+4 $STATUSBAR