diff options
author | Malfurious <m@lfurio.us> | 2024-02-28 20:19:03 -0500 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2024-03-05 21:04:33 -0500 |
commit | 37b25c9685f265acaf864cb91c6c540befcfb80b (patch) | |
tree | 226e3c294f3ea45463c1040b1f22abcd6b48c4b0 /config.def.h | |
parent | 1533625373f1404709b8562d008008adc5d007c8 (diff) | |
download | dwm-37b25c9685f265acaf864cb91c6c540befcfb80b.tar.gz dwm-37b25c9685f265acaf864cb91c6c540befcfb80b.zip |
patch: barlayout
This is an overhaul of the statusbar appearance, inspired by a
combination of the patches: rearrangebar, taglabels, hide-vacant-tags,
and statusallmons.
The bar layout (from left to right) is now just tag labels, status, and
the layout symbol. However, tag labels are generally larger than usual
and contain the name of the leading client on each tag. The format of
these new labels is controlled by a new option in config.h.
The layout symbol is moved all the way to the far right, per
rearrangebar, however the center area is left clear for the tag labels
to grow into.
statusallmons and hide-vacant-tags work exactly as normal, but are
implemented from scratch in this patch to avoid conflicts.
This patch addresses some oversights by the others in the buttonpress()
function for handling clicks on the statusbar. The logic is updated to
correctly handle the new location of the status and ltsymbol. Tag
labels are stored in the Monitor struct (instead of the original patch's
global variable) so tag clicks can be handled correctly on multimonitor.
This patch is updated to identify any hidden clients opened by the
scratchpadz patch.
Diffstat (limited to 'config.def.h')
-rw-r--r-- | config.def.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h index 4ac4099..9ef5309 100644 --- a/config.def.h +++ b/config.def.h @@ -27,6 +27,7 @@ static const unsigned int alphas[][3] = { /* tagging */ static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", "0" }; +static const char *tagfmt = "[%s: %.30s]"; static const Rule rules[] = { /* xprop(1): |