toggle mic
This commit is contained in:
@@ -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 } },
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user