From 76c8a9274490a366f451cbb438ea4f512fb8c6cf Mon Sep 17 00:00:00 2001
From: Luca Bilke <luca@bil.ke>
Date: Thu, 1 Feb 2024 13:34:32 +0100
Subject: [PATCH] add SCRATCHPAD env var to scratchpads

---
 config.h | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/config.h b/config.h
index da68bbe..8a9213c 100644
--- a/config.h
+++ b/config.h
@@ -109,13 +109,13 @@ static const Layout layouts[] = {
 
 /* commands */
 static const char *spqalc[]  = { "q", "qalculate-gtk", NULL };
-static const char *spterm[]  = { "t", TERMINAL, "-n", "spterm", "tmux", NULL };
-static const char *splf[]    = { "l", TERMINAL, "-n", "splf", "-e", "lf-sixel", NULL };
-static const char *sphtop[]  = { "h", TERMINAL, "-n", "sphtop", "-e", "htop", NULL };
-static const char *spmix[]   = { "m", TERMINAL, "-n", "spmix", "-e", "pulsemixer", NULL };
-static const char *sphelp[]  = { "n", TERMINAL, "-n", "sphelp", "-e", "/bin/sh", "-c", "glow /usr/share/dwm/dwm.md | less", NULL };
-static const char *spnmtui[] = { "i", TERMINAL, "-n", "spnmtui", "-e", "nmtui", NULL };
-static const char *spwiki[]  = { "v", TERMINAL, "-n", "spwiki", "-e", "zk", "edit", "-i", NULL };
+static const char *spterm[]  = { "t", TERMINAL, "-n", "spterm", "-e", "env", "SCRATCHPAD=true", "tmux", NULL };
+static const char *splf[]    = { "l", TERMINAL, "-n", "splf", "-e", "env", "SCRATCHPAD=true", "lf-sixel", NULL };
+static const char *sphtop[]  = { "h", TERMINAL, "-n", "sphtop", "-e", "env", "SCRATCHPAD=true", "htop", NULL };
+static const char *spmix[]   = { "m", TERMINAL, "-n", "spmix", "-e", "env", "SCRATCHPAD=true", "pulsemixer", NULL };
+static const char *sphelp[]  = { "n", TERMINAL, "-n", "sphelp", "-e", "env", "SCRATCHPAD=true", "/bin/sh", "-c", "glow /usr/share/dwm/dwm.md | less", NULL };
+static const char *spnmtui[] = { "i", TERMINAL, "-n", "spnmtui", "-e", "env", "SCRATCHPAD=true", "nmtui", NULL };
+static const char *spwiki[]  = { "v", TERMINAL, "-n", "spwiki", "-e", "env", "SCRATCHPAD=true", "zk", "edit", "-i", NULL };
 
 #include <X11/XF86keysym.h>