sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 279b080e0df2f75f4f46ab90f20ee9f5d4043ae2
parent 60c58f08a1cb0e0f195572ca2133defbf4bd2a7d
Author: aleks <aleks.stier@icloud.com>
Date:   Tue, 31 May 2022 23:00:39 +0200

[st][netwmicon] mention dependencies; give credit to xseticon

Diffstat:
Mst.suckless.org/patches/netwmicon/index.md | 12++++++++++++
Mst.suckless.org/patches/netwmicon/st-netwmicon-0.8.5.diff | 7+++++++
2 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/st.suckless.org/patches/netwmicon/index.md b/st.suckless.org/patches/netwmicon/index.md @@ -14,6 +14,11 @@ itself with the window-propery *\_NET\_WM\_ICON*. Since st doesn't define *\_NET\_WM\_ICON* this programs can't display the correct icon for st even if a desktop-entry exists. This patch solves this problem. +Dependencies +------------ +- gd +- glib + Defining an icon ---------------- By default each time st starts it will search for a file with the name *st.png* @@ -41,6 +46,13 @@ Call to action Maybe somebody would like to create an icon with the st-logo so we could add it here as the official icon. If it already exists tell me. +Credits +------- +The code for loading and transforming the image to an appropriate format is, +except for minor modifications, from +[xseticon](https://www.leonerd.org.uk/code/xseticon/) which is developed by Paul +Evans. + Download -------- * [st-netwmicon-0.8.5.diff](st-netwmicon-0.8.5.diff) diff --git a/st.suckless.org/patches/netwmicon/st-netwmicon-0.8.5.diff b/st.suckless.org/patches/netwmicon/st-netwmicon-0.8.5.diff @@ -12,6 +12,8 @@ application itself with the window-propery _NET_WM_ICON. Since st doesn't define _NET_WM_ICON this programs can't display the correct icon for st even if a desktop-entry exists. This patch solves this problem. +The dependencies are gd and glib. + By default each time st starts it will search for a file with the name st.png under /usr/local/share/pixmaps/. If you put an image with this name in the root-directory of the st-repository and call make install the image will be @@ -28,6 +30,11 @@ changing in confing.mk the line *ICONPREFIX = $(PREFIX)/share/pixmaps* to *ICONPREFIX = $(PREFIX)/share/icons/hicolor/256x256/apps/* and install the icon there. +The code for loading and transforming the image to an appropriate format +is, except for minor modifications, from xseticon +(https://www.leonerd.org.uk/code/xseticon/) which is developed by Paul +Evans. + --- Makefile | 3 +++ config.mk | 8 ++++++--