Add ability to reset with Super+Shift+r

This commit is contained in:
Alexander Rosenberg 2023-05-01 22:40:55 -07:00
parent 39806edb91
commit 0854099eab
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

8
dwm.c
View File

@ -268,8 +268,10 @@ static int xerror(Display *dpy, XErrorEvent *ee);
static int xerrordummy(Display *dpy, XErrorEvent *ee);
static int xerrorstart(Display *dpy, XErrorEvent *ee);
static void zoom(const Arg *arg);
static void restart(const Arg *arg);
/* variables */
static const char *exec_name;
static Systray *systray = NULL;
static const char broken[] = "broken";
static char stext[256];
@ -2551,9 +2553,15 @@ zoom(const Arg *arg)
pop(c);
}
void
restart(const Arg *arg) {
execlp(exec_name, exec_name, NULL);
}
int
main(int argc, char *argv[])
{
exec_name = argv[0];
if (argc == 2 && !strcmp("-v", argv[1]))
die("dwm-"VERSION);
else if (argc != 1)