polybar-dwm/include
Mihir Lad b6c2dc0dee dwm: Use functions to update labels
To keep consistency, use functions to update all labels. Since the labels have
tokens that have to be replaced, if this needed to be changed, or if the label
updating code needed to be changed, it could easily be done in one place without
having to scour the code for all places where the label is updated. It improves
refactorability.

This decouples the token replacement of labels from other functions and keeps
that code contained to the update label functions.

Since functions like update_title_label and update_floating_label already exist,
it makes sense to stick with this pattern of using functions to update the
labels. For updating the labels in different ways, overloaded functions can
simply be used.
2020-12-19 19:43:05 -05:00
..
adapters Merge branch 'hotfix/3.5.1' 2020-12-12 13:28:57 +01:00
cairo feat(conf) Properties for {bottom,top}-{left,right} radius 2020-12-13 17:02:23 +01:00
components New Tag Parser (#2303) 2020-12-17 20:37:28 +01:00
drawtypes feat: Warn state for cpu, memory, fs, battery modules (#2199) 2020-12-02 15:55:13 +01:00
events New Tag Parser (#2303) 2020-12-17 20:37:28 +01:00
modules dwm: Use functions to update labels 2020-12-19 19:43:05 -05:00
tags New Tag Parser (#2303) 2020-12-17 20:37:28 +01:00
utils New Tag Parser (#2303) 2020-12-17 20:37:28 +01:00
x11 feat(xkeyboard): Add variant support to layout label (#2163) 2020-12-19 18:22:27 +01:00
CMakeLists.txt build: remove xdamage extension 2019-06-03 00:46:12 +02:00
common.hpp refactor(build): Remove version number namespace 2019-05-17 16:49:47 +02:00
debug.hpp refactor: Cleanup 2017-01-11 03:07:28 +01:00
errors.hpp Add missing <stdexcept> header 2019-12-25 01:00:29 +01:00
settings.hpp.cmake Update cmake/config files to include dwmipcpp 2020-12-19 19:28:34 -05:00