Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |From c2dda4ff0a6456f2b30406c9b5a7024a2f7c474d Mon Sep 17 00:00:00 2001 |From: aleks |Date: Wed, 27 May 2020 17:57:15 +0200 |Subject: [PATCH] Apply netwmicon-0.8.4 | |Enables to set *_NET_WM_ICON* which hardcodes an icon for st. An icon is |already defined in the file *icon.h* which is stolen from |[flat-remix](https://github.com/daniruiz/flat-remix). | |Generally the icon of an application is defined by its desktop-entry. A patch |with the name [desktopentry](../desktopentry) already exists for this purpose. |However, some programs like tint2 do not respect the desktopentry and rely |instead on an hardcoded icon which has to be defined by *_NET_WM_ICON*. Since |st does not define *_NET_WM_ICON* those programs will display some default icon |(which is ugly). | |You can of course change the icon to any icon you want. Just grab some icon |from your favorite icon-theme. The tricky part is that it needs to be encoded |as *"an array of 32bit packed CARDINAL ARGB with high byte being A, low byte |being B" - |[Source](https://specifications.freedesktop.org/wm-spec/1.3/ar01s05.html)*. |This can be done with the script [netwmicon.sh](netwmicon.sh). It takes as |argument the icon-file and prints to stdout the encoded icon. Redirect it to |icon.h to save it and reinstall st. You need to install both *imagemagick* and |*inkscape* for the script to work. | |Bug: netwmicon.sh seems to distort the icon. | |--- | icon.h | 686 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | x.c | 7 +- | 2 files changed, 692 insertions(+), 1 deletion(-) | create mode 100644 icon.h | |diff --git a/icon.h b/icon.h |new file mode 100644 |index 0000000..7ab09d0 |--- /dev/null |+++ b/icon.h -------------------------- (Creating file icon.h...) Patching file icon.h using Plan A... Empty context always matches. Hunk #1 succeeded at 1. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |diff --git a/x.c b/x.c |index 210f184..396ac33 100644 |--- a/x.c |+++ b/x.c -------------------------- Patching file x.c using Plan A... Hunk #1 succeeded at 17. Hunk #2 succeeded at 94. Hunk #3 succeeded at 1189. Hmm... Ignoring the trailing garbage. done