diff --git a/.config/dunst/notify_high.wav b/.config/dunst/notify_high.wav index 6652125..dc30f48 100644 Binary files a/.config/dunst/notify_high.wav and b/.config/dunst/notify_high.wav differ diff --git a/.config/dunst/notify_normal.wav b/.config/dunst/notify_normal.wav index 2c723bf..966996c 100644 Binary files a/.config/dunst/notify_normal.wav and b/.config/dunst/notify_normal.wav differ diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 7e3b162..8d5dc06 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -25,15 +25,15 @@ super + m thunderbird super + bracketright - amixer get Capture | tail -2 | grep -q '\[on\]' && $(amixer set Master unmute &> /dev/null ; amixer set Capture nocap &> /dev/null ; notify-send -u low 'sxhkd' 'Sound active\nMicrophone muted') || $(amixer set Master unmute &> /dev/null ; amixer set Capture cap &> /dev/null ; notify-send -u low 'sxhkd' 'Sound active\nMicrophone active') + mic_toggle super + backslash - amixer get Master | tail -2 | grep -q '\[on\]' && $(amixer set Master mute &> /dev/null ; amixer set Capture nocap &> /dev/null ; notify-send -u low 'sxhkd' 'Sound muted\nMicrophone muted') || $(amixer set Capture nocap &> /dev/null ; amixer set Master unmute &> /dev/null ; notify-send -u low 'sxhkd' 'Sound active\nMicrophone muted') + sound_toggle super + shift + l - setxkbmap -query | grep -q 'nodeadkeys' && $(setxkbmap de ru ; notify-send -u low 'sxhkd' 'Set keymap to russian') || $(setxkbmap de nodeadkeys ; notify-send -u low 'sxhkd' 'Set keymap to german') + setxkbmap -query | grep -q 'nodeadkeys' && $(setxkbmap de ru ; notify-send -u low 'SXHKD' 'Set keymap to russian') || $(setxkbmap de nodeadkeys ; notify-send -u low 'SXHKD' 'Set keymap to german') super + shift + r - pkill -usr1 -x sxhkd; notify-send -u low 'sxhkd' 'Reloaded config' + pkill -usr1 -x sxhkd ; notify-send -u low 'SXHKD' 'Reloaded config' super + Return $TERMINAL @@ -45,9 +45,9 @@ super + shift + space dunstctl close-all super + F5 - togglemonitor + monitor_toggle super + F6 - toggletouchpad + touchpad_toggle super + F7 dmenumount super + F8 diff --git a/.local/bin/tools/audio/mic_activated.wav b/.local/bin/tools/audio/mic_activated.wav new file mode 100644 index 0000000..6e19ede Binary files /dev/null and b/.local/bin/tools/audio/mic_activated.wav differ diff --git a/.local/bin/tools/audio/mic_muted.wav b/.local/bin/tools/audio/mic_muted.wav new file mode 100644 index 0000000..732e0e0 Binary files /dev/null and b/.local/bin/tools/audio/mic_muted.wav differ diff --git a/.local/bin/tools/audio/mic_toggle b/.local/bin/tools/audio/mic_toggle new file mode 100755 index 0000000..79f89c6 --- /dev/null +++ b/.local/bin/tools/audio/mic_toggle @@ -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 diff --git a/.local/bin/tools/audio/sound_muted.wav b/.local/bin/tools/audio/sound_muted.wav new file mode 100644 index 0000000..4c8834f Binary files /dev/null and b/.local/bin/tools/audio/sound_muted.wav differ diff --git a/.local/bin/tools/audio/sound_resumed.wav b/.local/bin/tools/audio/sound_resumed.wav new file mode 100644 index 0000000..e1d0223 Binary files /dev/null and b/.local/bin/tools/audio/sound_resumed.wav differ diff --git a/.local/bin/tools/audio/sound_toggle b/.local/bin/tools/audio/sound_toggle new file mode 100755 index 0000000..0939111 --- /dev/null +++ b/.local/bin/tools/audio/sound_toggle @@ -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 diff --git a/.local/bin/tools/dwm/toggletouchpad b/.local/bin/tools/dwm/touchpad_toggle similarity index 100% rename from .local/bin/tools/dwm/toggletouchpad rename to .local/bin/tools/dwm/touchpad_toggle diff --git a/.local/bin/tools/togglemonitor b/.local/bin/tools/monitor_toggle similarity index 100% rename from .local/bin/tools/togglemonitor rename to .local/bin/tools/monitor_toggle