1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-03-18 18:07:45 +01:00
dotfiles/.local/bin/tools/audio/sound_toggle

12 lines
271 B
Bash
Executable File

#!/bin/sh
if amixer get Master | tail -2 | grep -q '\[on\]'; then
notify-send -u low 'sxhkd' 'Sound muted\nMicrophone muted'
lmc mute
lmc deaf
else
lmc mute
lmc undeaf
paplay ~/.local/bin/tools/audio/sound_resumed.wav
fi
pkill -RTMIN+4 $STATUSBAR