Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From 9b5719969ce85c3ecc0238d49c0255c5c2cc79f0 Mon Sep 17 00:00:00 2001 |From: mihirlad55 |Date: Mon, 10 Aug 2020 01:39:28 +0000 |Subject: [PATCH] Add support for managing external status bars | |This patch allows dwm to manage other status bars such as |polybar/lemonbar without them needing to set override-redirect. For |all intents and purposes, DWM treats this bar as if it were its own |and as a result helps the status bar and DWM live in harmony. | |This has a few advantages |* The bar does not block fullscreen windows |* DWM makes room for the status bar, so windows do not overlap the bar |* The bar can be hidden/killed and DWM will not keep an unsightly gap | where the bar was |* DWM receives EnterNotify events when your cursor enters the bar | |To use another status bar, set usealtbar to 1 in your config.h and set |altbarclass to the class name (can be found using xprop) to the class |name of your status bar. Also make sure that if your status bar will |be displayed on top, topbar is set to 1 in your config, and if it will |be displayed on bottom, topbar is set to 0. This patch does not |support bars that are not docked at the top or at the bottom of your |monitor. | |This verison of the patch fixes handling of polybar's tray. | |The patch is developed at https://github.com/mihirlad55/dwm-anybar |--- | config.def.h | 4 ++ | dwm.c | 192 +++++++++++++++++++++++++++++++++++++++++++++++---- | 2 files changed, 181 insertions(+), 15 deletions(-) | |diff --git a/config.def.h b/config.def.h |index 1c0b587..f45211b 100644 |--- a/config.def.h |+++ b/config.def.h -------------------------- Patching file config.def.h using Plan A... Hunk #1 succeeded at 5. 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 9fd0286..c1d8ce0 100644 |--- a/dwm.c |+++ b/dwm.c -------------------------- Patching file dwm.c using Plan A... Hunk #1 succeeded at 47. Hunk #2 succeeded at 116. Hunk #3 succeeded at 130. Hunk #4 succeeded at 181. Hunk #5 succeeded at 199. Hunk #6 succeeded at 212. Hunk #7 succeeded at 222. Hunk #8 succeeded at 238. Hunk #9 succeeded at 514. Hunk #10 succeeded at 579. Hunk #11 succeeded at 650. Hunk #12 succeeded at 661. Hunk #13 succeeded at 713. Hunk #14 succeeded at 1097. Hunk #15 succeeded at 1156. Hunk #16 succeeded at 1454. Hunk #17 succeeded at 1471. Hunk #18 succeeded at 1632. Hunk #19 succeeded at 1681. Hunk #20 succeeded at 1740. Hunk #21 succeeded at 1796. Hunk #22 succeeded at 1890. Hunk #23 succeeded at 1932. Hunk #24 succeeded at 1969. Hunk #25 succeeded at 2210. Hmm... Ignoring the trailing garbage. done