diff --git a/config.h b/config.h index 3d86b9d..8bbe040 100644 --- a/config.h +++ b/config.h @@ -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) */ diff --git a/dwm b/dwm index 7945ac6..cc63b4e 100755 Binary files a/dwm and b/dwm differ diff --git a/dwm.o b/dwm.o index f828161..c81d12f 100644 Binary files a/dwm.o and b/dwm.o differ diff --git a/patches/dwm-autostart-6.3.diff b/patches/dwm-autostart-6.3.diff new file mode 100644 index 0000000..1b3d30d --- /dev/null +++ b/patches/dwm-autostart-6.3.diff @@ -0,0 +1,51 @@ +From 788b6667e121ad234fb8dab6c5ab962b0dd9d8c4 Mon Sep 17 00:00:00 2001 +From: Bakkeby +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 +