= 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]
| 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 */
+}
+----