This commit is contained in:
2026-06-17 13:31:28 +02:00
parent 98d969c333
commit 506f882d77
4 changed files with 53 additions and 2 deletions

View File

@@ -64,8 +64,8 @@ static const Rule rules[] = {
{ NULL, "spfm", NULL, SPTAG(1), 1, 0, 0, -1 },
{ NULL, "keepassxc", NULL, SPTAG(2), 0, 0, 0, -1 },
{ "Steam", NULL, NULL, 1 << 4, 0, 0, -1 -1, 0 },
{ "steam_app", NULL, NULL, 1 << 5, 0, 0, -1 -1, 0 },
{ "Steam", NULL, NULL, 0, 0, 0, -1 -1, 1 },
{ "steam_app", NULL, NULL, 0, 0, 0, -1 -1, 1 },
};
/* layout(s) */

BIN
dwm

Binary file not shown.

BIN
dwm.o

Binary file not shown.

View 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