commit ce312b7eac2767184004b5fe9ba7814dc129909f
parent 108ade0bbcff4e0f6a69399d695b541459a8bbbe
Author: Devin J. Pohly <djpohly@gmail.com>
Date: Sun, 16 Aug 2020 01:01:35 -0500
Merge branch 'shcmd' of https://github.com/guidocella/dwl into master
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/config.def.h b/config.def.h
@@ -51,6 +51,8 @@ static const int repeat_delay = 600;
{ MODKEY|WLR_MODIFIER_SHIFT, SKEY, tag, {.ui = 1 << TAG} }, \
{ MODKEY|WLR_MODIFIER_CTRL|WLR_MODIFIER_SHIFT,SKEY,toggletag, {.ui = 1 << TAG} }
+#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
+
/* commands */
static const char *termcmd[] = { "alacritty", NULL };