From f1f3dad880045cbf0b53e463ae0733ced6b237f4 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 23 Jul 2023 12:05:15 -0500 Subject: added self-restart patch. DWM now restarts with super + shift + r --- config.def.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 81fc9ff..ba484f2 100644 --- a/config.def.h +++ b/config.def.h @@ -152,6 +152,8 @@ static const char *editorcmd[] = { "emacs", NULL }; static const char *browsercmd[] = { "firefox", NULL }; static const char *calccmd[] = { "gnome-calculator", NULL }; +#include "selfrestart.c" + static Key keys[] = { /* modifier key function argument */ { MODKEY, XK_p, spawn, {.v = dmenucmd } }, @@ -211,6 +213,8 @@ static Key keys[] = { TAGKEYS( XK_8, 7) TAGKEYS( XK_9, 8) { MODKEY|ShiftMask, XK_q, quit, {0} }, + { MODKEY|ShiftMask, XK_r, self_restart, {0} }, + }; /* Button definitions */ /* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */ -- cgit v1.2.3