From ac610f623678ca8a97aa74262e00deaf8c0e6096 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Tue, 29 Aug 2023 11:44:35 +0200 Subject: [PATCH] Add starting tagset --- dwl_patches/montagset.patch | 28 ++++++++++++++++++++++++++++ modules/dwl/config.h | 14 +++++++------- overlays/default.nix | 1 + 3 files changed, 36 insertions(+), 7 deletions(-) create mode 100644 dwl_patches/montagset.patch diff --git a/dwl_patches/montagset.patch b/dwl_patches/montagset.patch new file mode 100644 index 0000000..9b5b772 --- /dev/null +++ b/dwl_patches/montagset.patch @@ -0,0 +1,28 @@ +diff --git a/dwl.c b/dwl.c +index e32e58f..a7c2e28 100644 +--- a/dwl.c ++++ b/dwl.c +@@ -211,6 +211,7 @@ typedef struct { + const Layout *lt; + enum wl_output_transform rr; + int x, y; ++ unsigned tagset; + } MonitorRule; + + struct pointer_constraint { +@@ -997,7 +998,6 @@ createmon(struct wl_listener *listener, void *data) + m->gappiv = gappiv; + m->gappoh = gappoh; + m->gappov = gappov; +- m->tagset[0] = m->tagset[1] = (1<name || strstr(wlr_output->name, r->name)) { + m->mfact = r->mfact; +@@ -1008,6 +1008,7 @@ createmon(struct wl_listener *listener, void *data) + wlr_output_set_transform(wlr_output, r->rr); + m->m.x = r->x; + m->m.y = r->y; ++ m->tagset[0] = m->tagset[1] = (r->tagset ? r->tagset : (1<