Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From 02f1f07ee4460787c971bd28e934cb5fc319253d Mon Sep 17 00:00:00 2001 |From: explosion-mental |Date: Thu, 26 May 2022 22:34:14 -0500 |Subject: [PATCH] [PATCH] Allows dwm to handle the text by itself. You can | think of it like a dwmblocks integration into dwm itself. This is extracted | from my dwm build[0] in which you can find even more information. | |Example: |``` |/* fg command interval signal */ |{ "#000000", "echo 'dwm block!", 10, 3}, |``` | |- fg: the foreground color of the individual block, for the background it |uses the bg of SchemeStatus. | |- command: it uses the output of the commands for the status text |interval: in seconds, how much does it have to pass before updating the |block. | |- interval: in seconds, how many seconds until the block it's updated | |- signal: have to be less than 30. This lets you update the block with |`kill` by adding 35 to this value. |For the block above it would be 34 + 3 = 37 -> `kill -37 $(pidof dwm)`. |These signals are linux dependant. | |You can change `$(pidof dwm)` with `$STATUSBAR` to 'fix' signaling |multiple instances of dwm, since this patch also wraps the PID of dwm |into the `$STATUSBAR` enviromental variable. | |Last thing, mouse actions. For this you need to handle the env variable |`$BLOCK_BUTTON` in a script, this is so you can easily reuse the scripts |used in dwmblocks. And remember that mouse actions update the block. | |[0] https://github.com/explosion-mental/Dwm or |https://codeberg.org/explosion-mental/Dwm |--- | config.def.h | 39 ++++++- | dwm.c | 298 +++++++++++++++++++++++++++++++++++++++++++++++---- | 2 files changed, 318 insertions(+), 19 deletions(-) | |diff --git a/config.def.h b/config.def.h |index a2ac963..cad178c 100644 |--- a/config.def.h |+++ b/config.def.h -------------------------- Patching file config.def.h using Plan A... Hunk #1 succeeded at 16. Hunk #2 succeeded at 134. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/dwm.c b/dwm.c |index a96f33c..5789f72 100644 |--- a/dwm.c |+++ b/dwm.c -------------------------- Patching file dwm.c using Plan A... Hunk #1 succeeded at 28. Hunk #2 succeeded at 60. Hunk #3 succeeded at 142. Hunk #4 succeeded at 180. Hunk #5 succeeded at 210. Hunk #6 succeeded at 253. Hunk #7 succeeded at 291. Hunk #8 succeeded at 462. Hunk #9 succeeded at 745. Hunk #10 succeeded at 939. Hunk #11 succeeded at 1512. Hunk #12 succeeded at 1650. Hunk #13 succeeded at 1767. Hunk #14 succeeded at 1842. Hunk #15 succeeded at 1889. Hunk #16 succeeded at 2257. Hmm... Ignoring the trailing garbage. done