[wiki] [sites] [dwm][patch][defaulttag] add patch || k

From: <git_AT_suckless.org>
Date: Sat, 28 Sep 2024 23:07:28 +0200

commit 84d43e9f294f78827389bf8206590aa65a359648
Author: k <k_AT_pc.void>
Date: Sat Sep 28 23:06:57 2024 +0200

    [dwm][patch][defaulttag] add patch

diff --git a/dwm.suckless.org/patches/default b/dwm.suckless.org/patches/default
new file mode 100644
index 00000000..676376ed
--- /dev/null
+++ b/dwm.suckless.org/patches/default
_AT_@ -0,0 +1,35 @@
+fullgaps
+========
+
+Description
+-----------
+This patch adds gaps between client windows. It is similar to [gaps](../gaps/),
+but contains additional functionality:
+* it also adds outer gaps (between the clients and the screen frame), as well
+ as a gap between the master and stack area,
+* it adds keybindings to change the gap size at runtime: [Alt]+[-]/[Alt]+[=] to
+ decrease/increase the gap size and [Alt]+[Shift]+[=] to set it to zero.
+
+The configuration variable `gappx` contains the default gap size.
+
+Download
+--------
+* [dwm-fullgaps-6.4.diff](dwm-fullgaps-6.4.diff)
+* [dwm-fullgaps-6.2.diff](dwm-fullgaps-6.2.diff)
+* [dwm-fullgaps-20200508-7b77734.diff](dwm-fullgaps-20200508-7b77734.diff)
+
+The following patch allows for gaps to be toggled, and also uses a `Gap` struct
+to contain the gap information, in anticipation of this being used with
+[pertag](../pertag/). (To use this, apply the patch *instead* of the default
+fullgaps patch.)
+
+[Alt]+[Shift]+[=] to toggle. [Alt]+[Shift]+[-] to reset to `config.h` defaults.
+
+* [dwm-fullgaps-toggle-20200830.diff](dwm-fullgaps-toggle-20200830.diff)
+
+Author
+------
+* Maciej Janicki <mail_AT_macjanicki.eu>
+* David Julien <swy7ch_AT_protonmail.com> (20200504-b2e1dfc port)
+* Klein Bottle <kleinbottle4_AT_gmail.com> (dwm-fullgaps-toggle...)
+* Luka Rapava <luka.rapava2004_AT_gmail.com> (6.4 port)
diff --git a/dwm.suckless.org/patches/defaulttag/dwm-defaulttag-6.0.diff b/dwm.suckless.org/patches/defaulttag/dwm-defaulttag-6.0.diff
new file mode 100644
index 00000000..24b3b889
--- /dev/null
+++ b/dwm.suckless.org/patches/defaulttag/dwm-defaulttag-6.0.diff
_AT_@ -0,0 +1,25 @@
+diff --git a/config.def.h b/config.def.h
+index 77ff358..d66d225 100644
+--- a/config.def.h
++++ b/config.def.h
+_AT_@ -10,6 +10,7 @@ static const char selbgcolor[] = "#005577";
+ static const char selfgcolor[] = "#eeeeee";
+ static const unsigned int borderpx = 1; /* border pixel of windows */
+ static const unsigned int snap = 32; /* snap pixel */
++static const unsigned int defaulttag= 2; /* default tag on startup */
+ static const Bool showbar = True; /* False means no bar */
+ static const Bool topbar = True; /* False means bottom bar */
+
+diff --git a/dwm.c b/dwm.c
+index 1d78655..cbb9b59 100644
+--- a/dwm.c
++++ b/dwm.c
+_AT_@ -649,7 +649,7 @@ createmon(void) {
+
+ if(!(m = (Monitor *)calloc(1, sizeof(Monitor))))
+ die("fatal: could not malloc() %u bytes
", sizeof(Monitor));
+- m->tagset[0] = m->tagset[1] = 1;
++ m->tagset[0] = m->tagset[1] = defaulttag;
+ m->mfact = mfact;
+ m->nmaster = nmaster;
+ m->showbar = showbar;
diff --git a/dwm.suckless.org/patches/defaulttag/dwm-defaulttag-6.2.diff b/dwm.suckless.org/patches/defaulttag/dwm-defaulttag-6.2.diff
new file mode 100644
index 00000000..9ff3f5b6
--- /dev/null
+++ b/dwm.suckless.org/patches/defaulttag/dwm-defaulttag-6.2.diff
_AT_@ -0,0 +1,25 @@
+diff --git a/config.def.h b/config.def.h
+index 9efa774..d631b7d 100644
+--- a/config.def.h
++++ b/config.def.h
+_AT_@ -3,6 +3,7 @@
+ /* appearance */
+ static const unsigned int borderpx = 1; /* border pixel of windows */
+ static const unsigned int snap = 32; /* snap pixel */
++static const unsigned int defaulttag= 2; /* default tag on startup */
+ static const int showbar = 1; /* 0 means no bar */
+ static const int topbar = 1; /* 0 means bottom bar */
+ static const char *fonts[] = { "monospace:size=10" };
+diff --git a/dwm.c b/dwm.c
+index 67c6b2b..b8a480c 100644
+--- a/dwm.c
++++ b/dwm.c
+_AT_@ -636,7 +636,7 @@ createmon(void)
+ Monitor *m;
+
+ m = ecalloc(1, sizeof(Monitor));
+- m->tagset[0] = m->tagset[1] = 1;
++ m->tagset[0] = m->tagset[1] = defaulttag;
+ m->mfact = mfact;
+ m->nmaster = nmaster;
+ m->showbar = showbar;
diff --git a/dwm.suckless.org/patches/defaulttag/index.md b/dwm.suckless.org/patches/defaulttag/index.md
new file mode 100644
index 00000000..164ed6c6
--- /dev/null
+++ b/dwm.suckless.org/patches/defaulttag/index.md
_AT_@ -0,0 +1,12 @@
+alpha
+=====
+
+Description
+-----------
+By default, dwm starts on tag 1. This patch makes it configurable.
+
+Download
+--------
+* [dwm-defaulttag-6.0.diff](dwm-defaulttag-6.0.diff)
+* [dwm-defaulttag-6.2.diff](dwm-defaulttag-6.2.diff)
+
Received on Sat Sep 28 2024 - 23:07:28 CEST

This archive was generated by hypermail 2.3.0 : Sat Sep 28 2024 - 23:12:49 CEST