From 6ab007a849254110eec20758a1be52800a30e657 Mon Sep 17 00:00:00 2001 From: "franck.stauffer" Date: Fri, 12 Feb 2021 11:54:11 +0100 Subject: [PATCH] Add tagkeys for azerty, add shortcut for micmute --- config.def.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/config.def.h b/config.def.h index 93d7a7c..bb99251 100644 --- a/config.def.h +++ b/config.def.h @@ -59,7 +59,7 @@ static const Layout layouts[] = { /* commands */ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static const char *dmenucmd[] = { "/usr/bin/dmenu_run", "-m", dmenumon, NULL }; -static const char *pmenucmd[] = { "/usr/bin/passmenu", "--type", NULL }; +static const char *pmenucmd[] = { "/usr/bin/passmenu", NULL }; static const char *termcmd[] = { "/usr/bin/xterm", NULL }; static const char *lockcmd[] = { "/usr/bin/slock", NULL }; static const char *mailcmd[] = { "/usr/bin/thunderbird", NULL }; @@ -67,6 +67,7 @@ static const char *webcmd[] = { "/usr/lib/firefox/firefox", NULL }; static const char *volup[] = { "/usr/bin/pactl", "set-sink-volume", "@DEFAULT_SINK@", "+5%", NULL}; static const char *voldown[] = { "/usr/bin/pactl", "set-sink-volume", "@DEFAULT_SINK@", "-5%", NULL}; static const char *volmute[] = { "/usr/bin/pactl", "set-sink-mute", "@DEFAULT_SINK@", "toggle", NULL}; +static const char *micmute[] = { "/usr/bin/pactl", "set-source-mute", "@DEFAULT_SOURCE@", "toggle", NULL}; static const char *brightup[] = { "/usr/bin/brightnessctl", "set", "10%+", NULL}; static const char *brightdown[] = { "/usr/bin/brightnessctl", "set", "10%-", NULL}; @@ -83,6 +84,7 @@ static Key keys[] = { { 0, 0x1008ff11, spawn, {.v = voldown } }, { 0, 0x1008ff12, spawn, {.v = volmute } }, { 0, 0x1008ff13, spawn, {.v = volup } }, + { 0, 0x1008ffb2, spawn, {.v = micmute } }, { MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } }, @@ -115,6 +117,15 @@ static Key keys[] = { TAGKEYS( XK_7, 6) TAGKEYS( XK_8, 7) TAGKEYS( XK_9, 8) + TAGKEYS( XK_ampersand, 0) + TAGKEYS( XK_eacute, 1) + TAGKEYS( XK_quotedbl, 2) + TAGKEYS( XK_apostrophe, 3) + TAGKEYS( XK_parenleft, 4) + TAGKEYS( XK_minus, 5) + TAGKEYS( XK_egrave, 6) + TAGKEYS( XK_underscore, 7) + TAGKEYS( XK_ccedilla, 8) { MODKEY|ShiftMask, XK_q, quit, {0} }, };