From: A-Larsen Date: Wed, 14 Oct 2026 21:32:23 +0000 (-0400) Subject: readme X-Git-Url: https://nyquistdev.net/git/?a=commitdiff_plain;h=b6a85a35928f674085b7d8bf134492c66148f36e;p=dwm-config.git readme --- diff --git a/.images/geticon-function.png b/.images/geticon-function.png new file mode 100644 index 0000000..0364af5 Binary files /dev/null and b/.images/geticon-function.png differ diff --git a/README.adoc b/README.adoc index eb6119d..5d8a9f1 100644 --- a/README.adoc +++ b/README.adoc @@ -48,23 +48,7 @@ image::tag-icons.png[tag-icons] If it is not an application recognized by dwm it will have the default application icon. You can change icons and add icons in the 'config.def.h' file. -Just find the geticons function and change the icon for your application. +Just find the geticon function and change the icon for your application. -[source, c] ----- -const char * -geticon(char *class) -{ - if (strstr(class, "Brave-browser")) return ""; - if (strstr(class, "Alacritty")) return ""; - if (strstr(class, "Gimp")) return ""; - if (strstr(class, "dolphin")) return ""; - if (strstr(class, "Blender")) return ""; - if (strstr(class, "steam")) return ""; - if (strstr(class, "discord")) return ""; - if (strstr(class, "calendar")) return ""; - if (strstr(class, "Zathura")) return ""; - - return ""; /* Default icon for unknown apps */ -} ----- +[.center] +image::geticon-function.png[tag-icons] diff --git a/rendered.html b/rendered.html index 08b33b2..ae4fad9 100644 --- a/rendered.html +++ b/rendered.html @@ -433,88 +433,6 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b @media amzn-kf8{#header,#content,#footnotes,#footer{padding:0}} - @@ -1226,25 +1144,11 @@ them.

If it is not an application recognized by dwm it will have the default application icon. You can change icons and add icons in the 'config.def.h' file. -Just find the geticons function and change the icon for your application.

+Just find the geticon function and change the icon for your application.

-
+
-
const char *
-geticon(char *class)
-{
-    if (strstr(class, "Brave-browser")) return "";
-    if (strstr(class, "Alacritty"))     return "";
-    if (strstr(class, "Gimp"))          return "";
-    if (strstr(class, "dolphin"))       return "";
-    if (strstr(class, "Blender"))       return "";
-    if (strstr(class, "steam"))         return "";
-    if (strstr(class, "discord"))       return "";
-    if (strstr(class, "calendar"))      return "";
-    if (strstr(class, "Zathura"))      return "";
-
-    return ""; /* Default icon for unknown apps */
-}
+tag-icons