diff options
| author | Craig Jennings <craigmartinjennings@gmail.com> | 2023-08-18 10:34:19 -0500 |
|---|---|---|
| committer | Craig Jennings <craigmartinjennings@gmail.com> | 2023-08-18 10:34:19 -0500 |
| commit | c2209008aba381a513cf015e79b79abba4880804 (patch) | |
| tree | 4284f41d2d9d875c8b9f68a2960b9bd8e7595150 /config.def.h | |
| parent | 8bb2c50231ce05fa6c06b341478181e431777615 (diff) | |
adding exitcmd for dmenuexitmenu
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h index c1bfc08..1c8318d 100644 --- a/config.def.h +++ b/config.def.h @@ -137,6 +137,7 @@ static const char *termcmd[] = { "st", NULL }; // default terminal; respe static const char *browsercmd[] = { "firefox", NULL }; // default browser; respects $BROWSER env variable static const char *editorcmd[] = { "emacs", NULL }; // default editor; respects $VISUAL env variable static const char *torbrowsercmd[] = { "tor-browser", NULL }; +static const char *exitcmd[] = { "dmenuexitmenu", NULL }; // script that provides exit options /* volume control */ static const char *upvol[] = { "pactl", "set-sink-volume", "0", "+5%", NULL }; @@ -195,8 +196,9 @@ static Key keys[] = { { 0, XF86XK_AudioMute, spawn, {.v = mutevol } }, { 0, XF86XK_AudioLowerVolume, spawn, {.v = downvol } }, { 0, XF86XK_AudioRaiseVolume, spawn, {.v = upvol } }, - { MODKEY|ShiftMask, XK_q, quit, {0} }, - { MODKEY|ShiftMask, XK_r, self_restart, {0} }, + { MODKEY|ShiftMask, XK_q, spawn, {.v = exitcmd } }, + { MODKEY|ShiftMask, XK_BackSpace, quit, {0} }, + { MODKEY|ShiftMask, XK_Escape, self_restart, {0} }, TAGKEYS( XK_1, 0) TAGKEYS( XK_2, 1) |
