1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-09 19:11:15 +02:00

sxhkd/dunst/mic: added sound for mute and deaf, changed notification sounds

This commit is contained in:
2023-10-08 01:34:18 +02:00
parent da287df85c
commit d8a6a1d8a5
11 changed files with 30 additions and 6 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,12 @@
#!/bin/sh
if amixer get Capture | tail -2 | grep -q '\[on\]'; then
notify-send -u low 'Audio' 'Sound active\nMicrophone muted'
paplay ~/.local/bin/tools/audio/mic_muted.wav
amixer set Master unmute >/dev/null 2>&1
amixer set Capture nocap >/dev/null 2>&1
else
notify-send -u low 'Audio' 'Sound active\nMicrophone active'
amixer set Master unmute >/dev/null 2>&1
amixer set Capture cap >/dev/null 2>&1
paplay ~/.local/bin/tools/audio/mic_activated.wav
fi

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,12 @@
#!/bin/sh
if amixer get Master | tail -2 | grep -q '\[on\]'; then
notify-send -u low 'sxhkd' 'Sound muted\nMicrophone muted'
paplay ~/.local/bin/tools/audio/sound_muted.wav
amixer set Master mute >/dev/null 2>&1
amixer set Capture nocap >/dev/null 2>&1
else
notify-send -u low 'sxhkd' 'Sound active\nMicrophone muted'
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