summaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2022-01-29 00:42:46 -0500
committerMalfurious <m@lfurio.us>2023-06-03 22:28:40 -0400
commitf91dec9e023273b305537e867f641e124ad25475 (patch)
treeb6bf112b5333d18c3e8f6fadfc693c45cbc15ba4 /config.def.h
parent44040e4c78cafcaf7d1e8c857fec57c55473fb3f (diff)
downloaddwm-f91dec9e023273b305537e867f641e124ad25475.tar.gz
dwm-f91dec9e023273b305537e867f641e124ad25475.zip
patch: taglabels
Displays the executable name of each tag's current master client after the tag name in the dwm bar. For example, if st is the master client on tag 1, then the bar would display [1: st] as opposed to just 1. The format of the label, for both non-empty and empty tags, is configurable through the configuration variables ptagf and etagf respectively. There is also a config variable, lcaselbl, that, when enabled, makes the first letter lowercase (out of personal preference). This is a modified version of the taglabels patch that, rather than using the window class (executable name) of the master client, uses the actual window title for each tag's label.
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h
index c5e8fd5..e92de44 100644
--- a/config.def.h
+++ b/config.def.h
@@ -27,6 +27,10 @@ static const unsigned int alphas[][3] = {
/* tagging */
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", "0" };
+static const char ptagf[] = "[%s %s]"; /* format of a tag label */
+static const char etagf[] = "[%s]"; /* format of an empty tag */
+static const int lcaselbl = 0; /* 1 means make tag label lowercase */
+
static const Rule rules[] = {
/* xprop(1):
* WM_CLASS(STRING) = instance, class