X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/38a43c2dcc2c75ece9ef1ac5cd82a8d05c7c519f..e5a965a27480c8b27cfb4884cc8f4988924d1087:/dwm.c?ds=sidebyside diff --git a/dwm.c b/dwm.c index 943e17b..7a6c591 100644 --- a/dwm.c +++ b/dwm.c @@ -51,6 +51,7 @@ #define LENGTH(x) (sizeof x / sizeof x[0]) #define MAXTAGLEN 16 #define MOUSEMASK (BUTTONMASK|PointerMotionMask) +#define SHCMD(cmd) { .v = (char*[]){ "/bin/sh", "-c", cmd, NULL } } #define TAGMASK ((int)((1LL << LENGTH(tags)) - 1)) #define TEXTW(x) (textnw(x, strlen(x)) + dc.font.height) @@ -363,7 +364,7 @@ checkotherwm(void) { void cleanup(void) { Arg a = {.i = ~0}; - Layout foo = { 0 }; + Layout foo = { "", NULL }; close(STDIN_FILENO); view(&a);