Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From 841ad7d5767f945ee9da6c5afc8cff98ca2f8231 Mon Sep 17 00:00:00 2001 |From: explosion-mental |Date: Thu, 1 Sep 2022 16:21:58 -0500 |Subject: [PATCH] [PATCH] tag previews: free() tagmap and add previewtag func | |Allows you to see the contents of an already viewed tag. So a more |accurate description would be to re-view a tag. | |Allows you to see the contents of an already viewed tag. So a more |accurate description would be to re-view a tag. | |Compatibility with the alpha patch (replacing DefaultDepth() and |DefaultVisual() with depth and visual + window masks) and hide vacants can be |achieved, I left some lines to uncomment. | |added: |* more compact structure, more probable to patch on top of other patches | or easier to patch manually (like not moving the Monitor struct..) |* create the window preview in updatebars() |* renamed switchtag() -> takepreview(), makes more sense since it's | "taking" the preview (basically a screenshot). |* option previewbar, whether to show the bar in the preview or not. |* previewtag which takes a tag (unsigned int from 0 to the last tag) and | previews it. This allows to preview tags without using the | cursor/mouse (which avoids a recursive previews preview). | adding it to the TAGKEYS macro makes more sense so I've added it | replacing (keybinding wise, not functionality) toggletag. |``` |\#define TAGKEYS(KEY,TAG) \ | { MODKEY, KEY, view, {.ui = 1 << TAG} }, \ | { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \ | { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \ |-> { MODKEY|ControlMask|ShiftMask, KEY, previewtag, {.ui = TAG } }, |``` |--- | config.def.h | 4 +- | config.mk | 5 +- | dwm.c | 139 ++++++++++++++++++++++++++++++++++++++++++++++++++- | 3 files changed, 145 insertions(+), 3 deletions(-) | |diff --git a/config.def.h b/config.def.h |index a2ac963..eb70348 100644 |--- a/config.def.h |+++ b/config.def.h -------------------------- Patching file config.def.h using Plan A... Hunk #1 succeeded at 3. Hunk #2 succeeded at 52. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/config.mk b/config.mk |index b6eb7e0..6f5129e 100644 |--- a/config.mk |+++ b/config.mk -------------------------- Patching file config.mk using Plan A... Hunk #1 succeeded at 20. 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..0c0ba12 100644 |--- a/dwm.c |+++ b/dwm.c -------------------------- Patching file dwm.c using Plan A... Hunk #1 succeeded at 40. Hunk #2 succeeded at 113. Hunk #3 succeeded at 239. Hunk #4 succeeded at 446. Hunk #5 succeeded at 511. Hunk #6 succeeded at 519. Hunk #7 succeeded at 661. Hunk #8 succeeded at 1146. Hunk #9 succeeded at 1581. Hunk #10 succeeded at 1873. Hunk #11 succeeded at 1939. Hunk #12 succeeded at 2179. Hmm... Ignoring the trailing garbage. done