whoops
This commit is contained in:
51
patches/dwm-autostart-6.3.diff
Normal file
51
patches/dwm-autostart-6.3.diff
Normal file
@@ -0,0 +1,51 @@
|
||||
From 788b6667e121ad234fb8dab6c5ab962b0dd9d8c4 Mon Sep 17 00:00:00 2001
|
||||
From: Bakkeby <bakkeby@gmail.com>
|
||||
Date: Mon, 24 Jun 2024 09:55:42 +0200
|
||||
Subject: [PATCH] Adding autostart patch
|
||||
|
||||
Refer to https://dwm.suckless.org/patches/autostart/
|
||||
---
|
||||
dwm.c | 13 +++++++++++++
|
||||
1 file changed, 13 insertions(+)
|
||||
|
||||
diff --git a/dwm.c b/dwm.c
|
||||
index a96f33c..0fad144 100644
|
||||
--- a/dwm.c
|
||||
+++ b/dwm.c
|
||||
@@ -194,6 +194,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);
|
||||
@@ -1384,6 +1385,17 @@ run(void)
|
||||
handler[ev.type](&ev); /* call handler */
|
||||
}
|
||||
|
||||
+void
|
||||
+runAutostart(void) {
|
||||
+
|
||||
+ int ret;
|
||||
+
|
||||
+ ret = system("cd ~/.config/dwm; ./autostart_blocking.sh");
|
||||
+ ret = system("cd ~/.config/dwm; ./autostart.sh &");
|
||||
+
|
||||
+ if (ret); // ignore, hide compilation warnings
|
||||
+}
|
||||
+
|
||||
void
|
||||
scan(void)
|
||||
{
|
||||
@@ -2148,6 +2160,7 @@ main(int argc, char *argv[])
|
||||
die("pledge");
|
||||
#endif /* __OpenBSD__ */
|
||||
scan();
|
||||
+ runAutostart();
|
||||
run();
|
||||
cleanup();
|
||||
XCloseDisplay(dpy);
|
||||
--
|
||||
2.45.2
|
||||
|
||||
Reference in New Issue
Block a user