commit 96e2c42482108ecbec17683c399af8efc65c2f8b
parent 5d724733483b327aa3173a59022b751b38085909
Author: parazyd <parazyd@dyne.org>
Date: Tue, 26 Apr 2022 20:00:09 +0200
Config, add dunstclosecmd
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/config.h b/config.h
@@ -35,6 +35,7 @@ static const Rule rules[] = {
{ "feh", NULL, NULL, 0, 1, -1 },
{ "mpv", NULL, NULL, 0, 1, -1 },
{ "pinentry-qt5", NULL, NULL, 0, 1, -1 },
+ { "pinentry", NULL, NULL, 0, 1, -1 },
};
/* layout(s) */
@@ -78,6 +79,7 @@ static const char *slockcmd[] = { "slock", NULL };
static const char *dmenuraisecmd[] = { "dmenuraise", NULL };
static const char *dmenupasscmd[] = { "dmenupass", NULL };
static const char *glyphcmd[] = { "glyph", NULL };
+static const char *dunstclosecmd[] = { "dunstctl", "close", NULL };
static const char *rickcmd[] = { "mpv", "--no-video", "never_gonna_give_you_up.mp3", NULL };
@@ -96,6 +98,7 @@ static Key keys[] = {
{ MODKEY, XK_Print, spawn, {.v = dmenuraisecmd } },
{ MODKEY|ShiftMask, XK_F12, spawn, {.v = rickcmd } },
{ MODKEY, XK_grave, togglescratch, {.v = scratchpadcmd } },
+ { MODKEY, XK_space, spawn, {.v = dunstclosecmd } },
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },
@@ -112,7 +115,7 @@ static Key keys[] = {
{ MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
{ MODKEY, XK_c, setlayout, {.v = &layouts[3]} },
- { MODKEY, XK_space, setlayout, {0} },
+ // { MODKEY, XK_space, setlayout, {0} },
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
// { MODKEY, XK_0, view, {.ui = ~0 } },
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },