feat: add a key map for restarting dmenu
This commit is contained in:
parent
7e4f91ccb8
commit
6bd467894a
1 changed files with 3 additions and 1 deletions
4
config.h
4
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 *termcmd[] = { TERMINAL, NULL };
|
||||||
static const char *tmuxcmd[] = { TERMINAL, "-e", "tmux", NULL };
|
static const char *tmuxcmd[] = { TERMINAL, "-e", "tmux", NULL };
|
||||||
static const char *firefoxcmd[] = { "firefox", NULL };
|
static const char *firefoxcmd[] = { "firefox", NULL };
|
||||||
|
static const char *logoutcmd[] = { "pkill", "dwm", NULL };
|
||||||
|
|
||||||
static Key keys[] = {
|
static Key keys[] = {
|
||||||
/* modifier key function argument */
|
/* modifier key function argument */
|
||||||
|
@ -100,7 +101,8 @@ static Key keys[] = {
|
||||||
TAGKEYS( XK_2, 1)
|
TAGKEYS( XK_2, 1)
|
||||||
TAGKEYS( XK_3, 2)
|
TAGKEYS( XK_3, 2)
|
||||||
TAGKEYS( XK_4, 3)
|
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_t, spawn, {.v = termcmd } },
|
||||||
{ MODKEY|ShiftMask, XK_b, spawn, {.v = firefoxcmd } },
|
{ MODKEY|ShiftMask, XK_b, spawn, {.v = firefoxcmd } },
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue