[wiki] [sites] [dwm][patch][unicode-ellipsis] initial commit || amarakon

From: <git_AT_suckless.org>
Date: Fri, 30 Sep 2022 01:44:25 +0200

commit 9f4242d4cd9aab3d9e59bf13a37ff8c69be03f18
Author: amarakon <amar.al-zubaidi45_AT_tutanota.com>
Date: Thu Sep 29 19:40:09 2022 -0400

    [dwm][patch][unicode-ellipsis] initial commit

diff --git a/dwm.suckless.org/patches/unicode-ellipsis/dwm-unicode_ellipsis-20222909-d3f93c7.diff b/dwm.suckless.org/patches/unicode-ellipsis/dwm-unicode_ellipsis-20222909-d3f93c7.diff
new file mode 100644
index 00000000..a03f88f2
--- /dev/null
+++ b/dwm.suckless.org/patches/unicode-ellipsis/dwm-unicode_ellipsis-20222909-d3f93c7.diff
_AT_@ -0,0 +1,22 @@
+diff --git a/drw.c b/drw.c
+index ced7d37..95da860 100644
+--- a/drw.c
++++ b/drw.c
+_AT_@ -285,7 +285,7 @@ drw_text(Drw *drw, int x, int y, unsigned int w, unsigned int h, unsigned int lp
+
+ usedfont = drw->fonts;
+ if (!ellipsis_width && render)
+- ellipsis_width = drw_fontset_getwidth(drw, "...");
++ ellipsis_width = drw_fontset_getwidth(drw, "…");
+ while (1) {
+ ew = ellipsis_len = utf8strlen = 0;
+ utf8str = text;
+_AT_@ -339,7 +339,7 @@ drw_text(Drw *drw, int x, int y, unsigned int w, unsigned int h, unsigned int lp
+ w -= ew;
+ }
+ if (render && overflow)
+- drw_text(drw, ellipsis_x, y, ellipsis_w, h, 0, "...", invert);
++ drw_text(drw, ellipsis_x, y, ellipsis_w, h, 0, "…", invert);
+
+ if (!*text || overflow) {
+ break;
diff --git a/dwm.suckless.org/patches/unicode-ellipsis/index.md b/dwm.suckless.org/patches/unicode-ellipsis/index.md
new file mode 100644
index 00000000..9b34eb81
--- /dev/null
+++ b/dwm.suckless.org/patches/unicode-ellipsis/index.md
_AT_@ -0,0 +1,15 @@
+Unicode ellipsis
+================
+
+Description
+-----------
+This patch uses the Unicode ellipsis character instead of three periods to
+indicate a title that does not fit in the title bar.
+
+Download
+--------
+* [dwm-unicode_ellipsis-20222909-d3f93c7.diff](dwm-unicode_ellipsis-20222909-d3f93c7.diff)
+
+Authors
+-------
+* Amar Al-Zubaidi <amar.al-zubaidi45_AT_tutanota.com>
Received on Fri Sep 30 2022 - 01:44:25 CEST

This archive was generated by hypermail 2.3.0 : Fri Sep 30 2022 - 01:48:56 CEST