toggle mic

This commit is contained in:
vrd
2026-07-30 11:54:49 +03:00
committed by Venelin Dechkov
parent e63ff9f1c4
commit 647cff6727
3 changed files with 9 additions and 0 deletions
+1
View File
@@ -89,6 +89,7 @@ static const Key keys[] = {
{ 0, XF86XK_AudioRaiseVolume, vene_inc_vol, {0} },
{ 0, XF86XK_AudioLowerVolume, vene_dec_vol, {0} },
{ 0, XF86XK_AudioMute, vene_toggle_vol, {0} },
{ 0, XF86XK_AudioMicMute, vene_toggle_mic, {0} },
#if HAS_SW_BACKLIGHT
{ 0, XF86XK_MonBrightnessUp, spawn, {.v = bright_up } },
{ 0, XF86XK_MonBrightnessDown,spawn, {.v = bright_down } },
+7
View File
@@ -340,4 +340,11 @@ extern "C"
child = toggle_vol.detach();
has_child = true;
}
void vene_toggle_mic(const Arg*)
{
Cmd toggle_mic(amixer + "-q" + "set" + "Capture" + "toggle");
child = toggle_mic.detach();
has_child = true;
}
}
+1
View File
@@ -22,6 +22,7 @@ void vene_webbookmark();
void vene_inc_vol(const Arg*);
void vene_dec_vol(const Arg*);
void vene_toggle_vol(const Arg*);
void vene_toggle_mic(const Arg*);
#ifdef __cplusplus
}