feat: add a key map for restarting dmenu

This commit is contained in:
Dan Anglin 2022-05-22 14:34:44 +01:00
parent 7e4f91ccb8
commit 6bd467894a
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638

View file

@ -70,6 +70,7 @@ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufon
static const char *termcmd[] = { TERMINAL, NULL };
static const char *tmuxcmd[] = { TERMINAL, "-e", "tmux", NULL };
static const char *firefoxcmd[] = { "firefox", NULL };
static const char *logoutcmd[] = { "pkill", "dwm", NULL };
static Key keys[] = {
/* modifier key function argument */
@ -100,7 +101,8 @@ static Key keys[] = {
TAGKEYS( XK_2, 1)
TAGKEYS( XK_3, 2)
TAGKEYS( XK_4, 3)
{ MODKEY|ShiftMask, XK_q, quit, {0} },
{ MODKEY|ShiftMask, XK_r, quit, {0} }, /* This actually restarts DWM */
{ MODKEY|ShiftMask, XK_q, spawn, {.v = logoutcmd } }, /* This returns you to the login manager */
{ MODKEY|ShiftMask, XK_t, spawn, {.v = termcmd } },
{ MODKEY|ShiftMask, XK_b, spawn, {.v = firefoxcmd } },
};