toggle mic
This commit is contained in:
@@ -89,6 +89,7 @@ static const Key keys[] = {
|
|||||||
{ 0, XF86XK_AudioRaiseVolume, vene_inc_vol, {0} },
|
{ 0, XF86XK_AudioRaiseVolume, vene_inc_vol, {0} },
|
||||||
{ 0, XF86XK_AudioLowerVolume, vene_dec_vol, {0} },
|
{ 0, XF86XK_AudioLowerVolume, vene_dec_vol, {0} },
|
||||||
{ 0, XF86XK_AudioMute, vene_toggle_vol, {0} },
|
{ 0, XF86XK_AudioMute, vene_toggle_vol, {0} },
|
||||||
|
{ 0, XF86XK_AudioMicMute, vene_toggle_mic, {0} },
|
||||||
#if HAS_SW_BACKLIGHT
|
#if HAS_SW_BACKLIGHT
|
||||||
{ 0, XF86XK_MonBrightnessUp, spawn, {.v = bright_up } },
|
{ 0, XF86XK_MonBrightnessUp, spawn, {.v = bright_up } },
|
||||||
{ 0, XF86XK_MonBrightnessDown,spawn, {.v = bright_down } },
|
{ 0, XF86XK_MonBrightnessDown,spawn, {.v = bright_down } },
|
||||||
|
|||||||
@@ -340,4 +340,11 @@ extern "C"
|
|||||||
child = toggle_vol.detach();
|
child = toggle_vol.detach();
|
||||||
has_child = true;
|
has_child = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void vene_toggle_mic(const Arg*)
|
||||||
|
{
|
||||||
|
Cmd toggle_mic(amixer + "-q" + "set" + "Capture" + "toggle");
|
||||||
|
child = toggle_mic.detach();
|
||||||
|
has_child = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ void vene_webbookmark();
|
|||||||
void vene_inc_vol(const Arg*);
|
void vene_inc_vol(const Arg*);
|
||||||
void vene_dec_vol(const Arg*);
|
void vene_dec_vol(const Arg*);
|
||||||
void vene_toggle_vol(const Arg*);
|
void vene_toggle_vol(const Arg*);
|
||||||
|
void vene_toggle_mic(const Arg*);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user