summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-03-24 08:23:13 -0400
committerLuke Smith <luke@lukesmith.xyz>2020-03-24 08:23:13 -0400
commit02bda162f7e8561462bb4765a36214a2249a7761 (patch)
tree4aa4931902d70f88f5f0d24ede24262d55cfe35e
parent6ca93e48923f0a106a1c7d4274b730f7b3ce6a70 (diff)
dwmblocks started by default
-rw-r--r--dwm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/dwm.c b/dwm.c
index d748a68..bea6b6e 100644
--- a/dwm.c
+++ b/dwm.c
@@ -226,6 +226,7 @@ static void resizeclient(Client *c, int x, int y, int w, int h);
static void resizemouse(const Arg *arg);
static void restack(Monitor *m);
static void run(void);
+static void runAutostart(void);
static void scan(void);
static int sendevent(Client *c, Atom proto);
static void sendmon(Client *c, Monitor *m);
@@ -1520,6 +1521,11 @@ run(void)
}
void
+runAutostart(void) {
+ system("export STATUSBAR=\"dwmblocks\" ; killall dwmblocks ; dwmblocks &");
+}
+
+void
scan(void)
{
unsigned int i, num;
@@ -2478,6 +2484,7 @@ main(int argc, char *argv[])
die("pledge");
#endif /* __OpenBSD__ */
scan();
+ runAutostart();
run();
cleanup();
XCloseDisplay(dpy);