From 31073d88b89a5141242372fb7a9e22fee8f12da2 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Wed, 13 Apr 2022 19:35:24 +0530 Subject: key bindings, added mic mute swicth --- config.def.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/config.def.h b/config.def.h index 91f21c4..5235a2c 100644 --- a/config.def.h +++ b/config.def.h @@ -96,6 +96,7 @@ static const char *ytsub[] = { "st", "ytfzf", "-tl", "--subs=4", NULL }; static const char *upvol[] = { "pamixer", "-i", "5", NULL }; static const char *downvol[] = { "pamixer", "-d", "5", NULL }; static const char *mutevol[] = { "pamixer", "-t", NULL }; +static const char *mutemic[] = { "mutemic", NULL }; static const Key keys[] = { /* modifier key function argument */ @@ -126,9 +127,10 @@ static const Key keys[] = { { MODKEY, XK_minus, setgaps, {.i = -1 } }, { MODKEY, XK_equal, setgaps, {.i = +1 } }, { MODKEY|ShiftMask, XK_equal, setgaps, {.i = 0 } }, - { MODKEY, XK_F10, spawn, {.v = upvol } }, - { MODKEY, XK_F9, spawn, {.v = downvol } }, - { MODKEY, XK_F8, spawn, {.v = mutevol } }, + { 0, XK_XF86AudioRaiseVolume, spawn, {.v = upvol } }, + { 0, XK_XF86AudioLowerVolume, spawn, {.v = downvol } }, + { 0, XK_XF86AudioMute, spawn, {.v = mutevol } }, + { 0, XK_XF86AudioMicMute, spawn, {.v = mutemic } }, { MODKEY, XK_x, spawn, {.v = scrnlock } }, { MODKEY, XK_s, spawn, {.v = scrnshotsel } }, { MODKEY|ShiftMask, XK_s, spawn, {.v = scrnshot } }, -- cgit v1.2.3