[wiki] [sites] Revert "[dwm][patch] Add qubesrules patch" || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Fri, 21 Jan 2022 12:00:09 +0100

commit 4aaa5c7590d62f9a7f0eb716d7ef6bd11f934abc
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Fri Jan 21 11:58:26 2022 +0100

    Revert "[dwm][patch] Add qubesrules patch"
    
    This reverts commit 905d9e775d70c0b79f0e3978ded05f3e38128de9.
    
    Please use proper hyperlinks: the links to monero etc are not proper.

diff --git a/dwm.suckless.org/patches/qubesrules/dwm-qubesrules-6.3.diff b/dwm.suckless.org/patches/qubesrules/dwm-qubesrules-6.3.diff
deleted file mode 100644
index fb4ec7a7..00000000
--- a/dwm.suckless.org/patches/qubesrules/dwm-qubesrules-6.3.diff
+++ /dev/null
_AT_@ -1,76 +0,0 @@
-From: 3o14r473 <3o14_AT_pm.me>
-Donate: monero:41rMoMLvk8hEJYP2vbv3dNUGzN95CLXoANAtmAVaUxzse5KfPjhkE7d4PUwh8kCkF16FwwqfZTmS4ZKmYCjrsFAcGXTPpwH
-Subject: [PATCH] dwm-qubesrules-6.3.diff
-
-This patch allows dwm to use QubesOS-specific
-window properties, _QUBES_LABEL and _QUBES_VMNAME, in its rulematching.
-
-It needs to be applied on top of the qubesdecorations patch.
----
- config.def.h | 8 +++++---
- dwm.c        | 6 ++++++
- 2 files changed, 11 insertions(+), 3 deletions(-)
-
-diff --git a/config.def.h b/config.def.h
-index 42dce05..b246392 100644
---- a/config.def.h
-+++ b/config.def.h
-_AT_@ -40,12 +40,14 @@ static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
- 
- static const Rule rules[] = {
- 	/* xprop(1):
-+	 *	_QUBES_LABEL(CARDINAL) = label
-+	 *	_QUBES_VMNAME(STRING) = qube
- 	 *	WM_CLASS(STRING) = instance, class
- 	 *	WM_NAME(STRING) = title
- 	 */
--	/* class      instance    title       tags mask     isfloating   monitor */
--	{ "Gimp",     NULL,       NULL,       0,            1,           -1 },
--	{ "Firefox",  NULL,       NULL,       1 << 8,       0,           -1 },
-+	/* label  qube        class      instance    title       tags mask     isfloating   monitor */
-+	 { 0,    "personal", "Gimp",     NULL,       NULL,       0,            1,           -1 },
-+	 { 6,     NULL,      "Firefox",  NULL,       NULL,       1 << 8,       0,           -1 },
- };
- 
- /* layout(s) */
-diff --git a/dwm.c b/dwm.c
-index be99dde..9a71902 100644
---- a/dwm.c
-+++ b/dwm.c
-_AT_@ -86,6 +86,7 @@ typedef struct {
- typedef struct Monitor Monitor;
- typedef struct Client Client;
- struct Client {
-+	int label;
- 	char vmname[256];
- 	char name[256];
- 	float mina, maxa;
-_AT_@ -135,6 +136,8 @@ struct Monitor {
- };
- 
- typedef struct {
-+	int label;
-+	const char *qube;
- 	const char *class;
- 	const char *instance;
- 	const char *title;
-_AT_@ -301,6 +304,8 @@ applyrules(Client *c)
- 	for (i = 0; i < LENGTH(rules); i++) {
- 		r = &rules[i];
- 		if ((!r->title || strstr(c->name, r->title))
-+		&& (!r->label || (c->label == r->label))
-+		&& (!r->qube || strstr(c->vmname, r->qube))
- 		&& (!r->class || strstr(class, r->class))
- 		&& (!r->instance || strstr(instance, r->instance)))
- 		{
-_AT_@ -1076,6 +1081,7 @@ manage(Window w, XWindowAttributes *wa)
- 		c->tags = t->tags;
- 	} else {
- 		c->mon = selmon;
-+		c->label = getlabel(c);
- 		applyrules(c);
- 	}
- 
--- 
-2.30.2
-
diff --git a/dwm.suckless.org/patches/qubesrules/index.md b/dwm.suckless.org/patches/qubesrules/index.md
deleted file mode 100644
index a6d95d7e..00000000
--- a/dwm.suckless.org/patches/qubesrules/index.md
+++ /dev/null
_AT_@ -1,17 +0,0 @@
-qubesrules
-==========
-
-Description
------------
-This patch allows dwm to use [QubesOS](https://qubes-os.org)-specific
-window properties, _QUBES_LABEL and _QUBES_VMNAME, in its rulematching.
-
-It needs to be applied on top of the [qubesdecorations patch](https://dwm.suckless.org/patches/qubesdecorations).
-
-Download
---------
-* [dwm-qubesrules-6.3.diff](dwm-qubesrules-6.3.diff) (2022-01-07)
-
-Author
--------
-* 3o14r473 - [fingerprint](E4FEE61C3B02F4CAB6D80CA7F105757D34BEFA98) [email](3o14_AT_pm.me) [github](https://github.com/3o14r473) [moneroj](41rMoMLvk8hEJYP2vbv3dNUGzN95CLXoANAtmAVaUxzse5KfPjhkE7d4PUwh8kCkF16FwwqfZTmS4ZKmYCjrsFAcGXTPpwH)
Received on Fri Jan 21 2022 - 12:00:09 CET

This archive was generated by hypermail 2.3.0 : Fri Jan 21 2022 - 12:00:48 CET