commit 7a6114e40c822c453545ced3288bccf96fccf787
Author: Hritik Vijay <hritikxx8_AT_gmail.com>
Date: Sun Apr 18 02:12:40 2021 +0530
[dwm][patch][systray] Fix right padding issue
As mentioned in the following thread
https://www.reddit.com/r/suckless/comments/m1x9f1/how_can_i_remove_the_on_dwm/
"..." appears on the status text due to insufficient space. This patch
fixes it.
diff --git a/dwm.suckless.org/patches/systray/dwm-systray-20210217-61bb8b2.diff b/dwm.suckless.org/patches/systray/dwm-systray-20210418-67d76bd.diff
similarity index 99%
rename from dwm.suckless.org/patches/systray/dwm-systray-20210217-61bb8b2.diff
rename to dwm.suckless.org/patches/systray/dwm-systray-20210418-67d76bd.diff
index 02604e5a..e0bea67f 100644
--- a/dwm.suckless.org/patches/systray/dwm-systray-20210217-61bb8b2.diff
+++ b/dwm.suckless.org/patches/systray/dwm-systray-20210418-67d76bd.diff
_AT_@ -1,7 +1,7 @@
-From 54948f3b69824de6eba41d281ff72c08131451a8 Mon Sep 17 00:00:00 2001
+From b9d4791ea3bdfcf3f750e133047345edebea0a70 Mon Sep 17 00:00:00 2001
From: Hritik Vijay <hr1t1k_AT_protonmail.com>
Date: Wed, 17 Feb 2021 19:30:25 +0530
-Subject: [PATCH] [Patch] Systray for dwm
+Subject: [PATCH] System tray for dwm
This patch adds an option for systray placement via `systrayleft`.
_AT_@ -35,7 +35,7 @@ index 1c0b587..9e74de2 100644
};
-
diff --git a/dwm.c b/dwm.c
-index 664c527..f0d50ee 100644
+index b0b3466..1e2a32d 100644
--- a/dwm.c
+++ b/dwm.c
_AT_@ -57,12 +57,30 @@
_AT_@ -271,7 +271,7 @@ index 664c527..f0d50ee 100644
drw_setscheme(drw, scheme[SchemeNorm]);
- tw = TEXTW(stext) - lrpad + 2; /* 2px right padding */
- drw_text(drw, m->ww - tw, 0, tw, bh, 0, stext, 0);
-+ tw = TEXTW(stext) - lrpad + 2; /* 2px padding */
++ tw = TEXTW(stext) - lrpad / 2 + 2; /* 2px extra right padding */
+ drw_text(drw, m->ww - tw - stw, 0, tw, bh, lrpad / 2 - 2, stext, 0);
}
_AT_@ -656,7 +656,7 @@ index 664c527..f0d50ee 100644
+ if (!showsystray)
+ return;
+ if (systrayonleft)
-+ x -= sw;
++ x -= sw + lrpad / 2;
+ if (!systray) {
+ /* init systray */
+ if (!(systray = (Systray *)calloc(1, sizeof(Systray))))
_AT_@ -750,5 +750,5 @@ index 664c527..f0d50ee 100644
zoom(const Arg *arg)
{
--
-2.30.1
+2.31.0
diff --git a/dwm.suckless.org/patches/systray/index.md b/dwm.suckless.org/patches/systray/index.md
index b3ca0bfd..a7366885 100644
--- a/dwm.suckless.org/patches/systray/index.md
+++ b/dwm.suckless.org/patches/systray/index.md
_AT_@ -11,7 +11,7 @@ in dwm. This has helped at least in one case with pidgin.
Download
--------
-* [dwm-systray-20210217-61bb8b2.diff](dwm-systray-20210217-61bb8b2.diff) (24K) (20210217)
+* [dwm-systray-20210418-67d76bd.diff](dwm-systray-20210418-67d76bd.diff) (24K) (20210418)
* [dwm-systray-20200914-61bb8b2.diff](dwm-systray-20200914-61bb8b2.diff) (23k) (20200914)
* [dwm-systray-6.2.diff](dwm-systray-6.2.diff) (23923b) (20200216)
* [dwm-systray-20190208-cb3f58a.diff](dwm-systray-20190208-cb3f58a.diff) (24K)
_AT_@ -27,4 +27,4 @@ Author
* Eric Pruitt (7af4d43 (20160626))
* Igor Gevka (cb3f58a (6.2), 20200216)
* Michel Boaventura <michel.boaventura_AT_protonmail.com> (f09418b)
-* Hritik Vijay <hr1t1k_AT_protonmail.com> (54948f3)
+* Hritik Vijay <hr1t1k_AT_protonmail.com> (20210418)
Received on Sat Apr 17 2021 - 22:46:35 CEST