From: A-Larsen Date: Wed, 14 Oct 2026 20:54:33 +0000 (-0400) Subject: readme X-Git-Url: https://nyquistdev.net/git/?a=commitdiff_plain;h=609b069aa96203f4fef96e0ddf66d6397c615fb9;p=dwm-config.git readme --- diff --git a/.images/tag-icons.png b/.images/tag-icons.png new file mode 100644 index 0000000..13eb6fc Binary files /dev/null and b/.images/tag-icons.png differ diff --git a/README.adoc b/README.adoc index 10a0be9..6e9ab1a 100644 --- a/README.adoc +++ b/README.adoc @@ -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 */ +} +----