diff --git a/config.h b/config.h index e978545..ef5e5c1 100644 --- a/config.h +++ b/config.h @@ -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 } }, };