1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2026-07-09 07:51:36 +02:00
Files
dotfiles/.local/bin/tools/audio/mic_toggle
2023-11-07 17:53:32 +01:00

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