sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 84d43e9f294f78827389bf8206590aa65a359648
parent 7891390acdd7862bdc527888caa7bb047b62aac5
Author: k <k@pc.void>
Date:   Sat, 28 Sep 2024 23:06:57 +0200

[dwm][patch][defaulttag] add patch

Diffstat:
Adwm.suckless.org/patches/default | 35+++++++++++++++++++++++++++++++++++
Adwm.suckless.org/patches/defaulttag/dwm-defaulttag-6.0.diff | 25+++++++++++++++++++++++++
Adwm.suckless.org/patches/defaulttag/dwm-defaulttag-6.2.diff | 25+++++++++++++++++++++++++
Adwm.suckless.org/patches/defaulttag/index.md | 12++++++++++++
4 files changed, 97 insertions(+), 0 deletions(-)

diff --git a/dwm.suckless.org/patches/default b/dwm.suckless.org/patches/default @@ -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@macjanicki.eu> +* David Julien <swy7ch@protonmail.com> (20200504-b2e1dfc port) +* Klein Bottle <kleinbottle4@gmail.com> (dwm-fullgaps-toggle...) +* Luka Rapava <luka.rapava2004@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 @@ -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 +@@ -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 +@@ -649,7 +649,7 @@ createmon(void) { + + if(!(m = (Monitor *)calloc(1, sizeof(Monitor)))) + die("fatal: could not malloc() %u bytes\n", 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 @@ -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 +@@ -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 +@@ -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 @@ -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) +