[wiki] [sites] [dwm][patch] improving description wording and minor styling modifications || explosion-mental

From: <git_AT_suckless.org>
Date: Fri, 27 Aug 2021 03:26:04 +0200

commit d2ed30c1cc4577e11573468783668f8a96fa1c46
Author: explosion-mental <explosion0mental_AT_gmail.com>
Date: Thu Aug 26 20:16:45 2021 -0500

    [dwm][patch] improving description
    wording and minor styling modifications

diff --git a/dwm.suckless.org/patches/shift-tools/index.md b/dwm.suckless.org/patches/shift-tools/index.md
index 9a453ef3..4a48fdeb 100644
--- a/dwm.suckless.org/patches/shift-tools/index.md
+++ b/dwm.suckless.org/patches/shift-tools/index.md
_AT_@ -4,34 +4,38 @@ shift-tools
 Description
 -----------
 A group of functions that shift. Inspired by
-[shiftview](https://lists.suckless.org/dev/1104/7590.html) and
-[focusadjacenttag](../focusadjacenttag). There is also a
+[shiftview](https://lists.suckless.org/dev/1104/7590.html),
+[focusadjacenttag](../focusadjacenttag) and [swaptags](../swaptags). There is also a
 [version](shift-tools-scratchpads.c) compatible with the
 [scratchpads](../scratchpads) patch with only needs you to include the file
-(#include "shift-tools-scratchpads.c") before the keys[] array.
+`#include "shift-tools-scratchpads.c"` before the keys[] array.
 
 
 
-- shifttag, moves the current selected client to the adjacent tag
-- shifttagclients, moves the current selected client to the adjacent tag that
- has at least one client else acts as shifttag
-- shiftview, view adjacent tag
-- shiftviewclients, view the closes tag that has a client. If none acts as
- shiftview
-- shiftboth, shifttag and shiftview. Basically moves the window to the
+* **shifttag** - moves the current selected client to the adjacent tag.
+* **shifttagclients** moves the current selected client to the adjacent tag
+ that has at least one client, if none it acts as shifttag.
+* **shiftview** view adjacent tag.
+* **shiftviewclients** view the closes tag that has a client. If none acts as
+ shiftview.
+* **shiftboth** shifttag and shiftview. Basically moves the window to the
   next/prev tag and follows it.
-- shiftswaptags, its a shift implementation on the swaptags function, which in
- short 'swaps tags' (swaps all clients with the clients on the adjacent tag).
- A pretty useful example of this is chosing a tag empty and sending all your
- clients to that tag.
-- swapfunction is the 'helper' function for the shiftswaptags. remember that
- these functions **shift**, which means you can go from tag 1 to 9 or 9 to 1.
- Also remember that the default argument is 1 and you can change it.
+* **shiftswaptags** - its a shift implementation on the swaptags function,
+ which in short 'swaps tags' (swaps all clients with the clients on the
+ adjacent tag). A pretty useful example of this is chosing a tag empty and
+ sending all your clients to that tag.
+* **swapfunction** - used on shiftswaptags, original code on
+ [swaptags](../swaptags).
+
+
+
+Remember that these functions _shift_, which means you can go from tag 1 to 9
+or 9 to 1. Also remember that the default argument is 1/-1 and you can change it.
 
 Download
 --------
 * [dwm-shif-tools-6.2.diff](dwm-shif-tools-6.2.diff)
-* [Github mirror](https://github.com/explosion-mental/Dwm/blob/main/Patches/dwm-shif-tools-6.2.diff)
+* [github mirror](https://github.com/explosion-mental/Dwm/blob/main/Patches/dwm-shif-tools-6.2.diff)
 * [shift-tools.c](shift-tools.c)
 * [shift-tools-scratchpads.c](shift-tools-scratchpads.c)
 
diff --git a/dwm.suckless.org/patches/tag-previews/index.md b/dwm.suckless.org/patches/tag-previews/index.md
index 2e3fc7d1..9d781327 100644
--- a/dwm.suckless.org/patches/tag-previews/index.md
+++ b/dwm.suckless.org/patches/tag-previews/index.md
_AT_@ -4,18 +4,53 @@ tag previews
 Description
 -----------
 Allows you to see the contents of an already viewed tag. So a more accurate
-description would be to re-view a tag. This patch is extracted from
-https://github.com/siduck76/chadwm. Keep in mind that this uses Imlib2, which
-on the diff is already put on.
+description would be to re-view a tag.
 
 
 ![screenshot](screenshot.png)
 
+This is done with Imlib2. This patch is extracted from
+https://github.com/siduck76/chadwm. Keep in mind this moves `monitor` struct
+below `#include config.h` so it can read the 'LENGTH' of your tags, since it's
+defined in config.h. A workaround if you get into compatibility issues is to
+just put 9 (or the number of tags you have) and remove the macro, the below
+a patch that does that.
+
+
+ _AT_@ -271,6 +254,31 @@ static Window root, wmcheckwin;
+ /* configuration, allows nested code to access above variables */
+ #include "config.h"
+
+ struct Monitor {
+ char ltsymbol[16];
+ float mfact;
+ int nmaster;
+ int num;
+ int by; /* bar geometry */
+ int mx, my, mw, mh; /* screen size */
+ int wx, wy, ww, wh; /* window area */
+ unsigned int seltags;
+ unsigned int sellt;
+ unsigned int tagset[2];
+ int showbar;
+ int topbar;
+ Client *clients;
+ Client *sel;
+ Client *stack;
+ Monitor *next;
+ Window barwin;
+ Window tagwin;
+ int previewshow;
+ - Pixmap tagmap[LENGTH(tags)];
+ + Pixmap tagmap[9];
+ const Layout *lt[2];
+ };
+
 
 Download
 --------
 * [dwm-tag-preview-6.2.diff](dwm-tag-preview-6.2.diff)
-* [Github mirror](https://github.com/explosion-mental/Dwm/blob/main/Patches/dwm-tag-preview-6.2.diff)
+* [github mirror](https://github.com/explosion-mental/Dwm/blob/main/Patches/dwm-tag-preview-6.2.diff) (issues and contribs)
 
 Authors
 -------
Received on Fri Aug 27 2021 - 03:26:04 CEST

This archive was generated by hypermail 2.3.0 : Fri Aug 27 2021 - 03:36:43 CEST