mirror of https://github.com/tiyn/dotfiles
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
369 B
11 lines
369 B
1 year ago
|
#!/bin/sh
|
||
|
if amixer get Master | tail -2 | grep -q '\[on\]'; then
|
||
|
notify-send -u low 'sxhkd' 'Sound muted\nMicrophone muted'
|
||
|
amixer set Master mute >/dev/null 2>&1
|
||
|
amixer set Capture nocap >/dev/null 2>&1
|
||
|
else
|
||
|
amixer set Capture nocap >/dev/null 2>&1
|
||
|
amixer set Master unmute >/dev/null 2>&1
|
||
|
paplay ~/.local/bin/tools/audio/sound_resumed.wav
|
||
|
fi
|