]> nyquistdev.net Git - dwm-config.git/commitdiff
readme
authorA-Larsen <austin.larsen@mailfence.com>
Wed, 14 Oct 2026 20:54:33 +0000 (16:54 -0400)
committerA-Larsen <austin.larsen@mailfence.com>
Wed, 14 Oct 2026 20:54:33 +0000 (16:54 -0400)
.images/tag-icons.png [new file with mode: 0644]
README.adoc

diff --git a/.images/tag-icons.png b/.images/tag-icons.png
new file mode 100644 (file)
index 0000000..13eb6fc
Binary files /dev/null and b/.images/tag-icons.png differ
index 10a0be94c3073f014db626bf5eb5fee609d57eed..6e9ab1a15d652ba9d36728d8efb99bdf557335bc 100644 (file)
@@ -1,14 +1,14 @@
 = Austin's DWM config
+:imagesdir: https://nyquistdev.net/git/?p=dwm-config.git;a=blob_plain;f=.images
 
 == How to use
-Check out this https://dwm.suckless.org/tutorial/[tutorial]. Everything should
+Check out this https://dwm.suckless.org/tutorial/. Everything should
 be the same, the only difference being that I changed `ALT` to be `Super`
 (windows key). I also added patches from the dwm site and did some of my own custom
 changes to the source code.
 
 Patches added to dwm (that I can remember):
 
-* https://dwm.suckless.org/patches/mmnametags/[mmnametags]
 * https://dwm.suckless.org/patches/movestack/[movestack]
 * https://dwm.suckless.org/patches/pertag/[pertag]
 
@@ -34,10 +34,30 @@ Extra keyboard shortcuts:
 | Super+Shift+w       | open sidepanel loader
 |===
 
-I would also like to give a special acknowledgement to the
-https://dwm.suckless.org/patches/nametag/[nametag] patch. My
-https://dwm.suckless.org/patches/mmnametags/[mmnametags] patch is
-just some changes and additions to this patch.
-
-
-
+There are icons for the tags by default as you launch an application. 
+
+[.center]
+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.
+
+[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 */
+}
+----