polybar-dwm/include/modules
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
..
meta Add dwm module 2020-12-19 19:43:01 -05:00
alsa.hpp Incorporate reviews 2020-11-26 20:53:53 +01:00
backlight.hpp Incorporate reviews 2020-11-26 20:53:53 +01:00
battery.hpp feat: Warn state for cpu, memory, fs, battery modules (#2199) 2020-12-02 15:55:13 +01:00
bspwm.hpp Incorporate reviews 2020-11-26 20:53:53 +01:00
counter.hpp refactor: Move module type string into modules 2020-11-26 20:53:53 +01:00
cpu.hpp feat: Warn state for cpu, memory, fs, battery modules (#2199) 2020-12-02 15:55:13 +01:00
date.hpp Incorporate reviews 2020-11-26 20:53:53 +01:00
dwm.hpp dwm: Use functions to update labels 2020-12-19 19:43:05 -05:00
fs.hpp feat: Warn state for cpu, memory, fs, battery modules (#2199) 2020-12-02 15:55:13 +01:00
github.hpp refactor: Move module type string into modules 2020-11-26 20:53:53 +01:00
i3.hpp Incorporate reviews 2020-11-26 20:53:53 +01:00
ipc.hpp refactor: Move module type string into modules 2020-11-26 20:53:53 +01:00
memory.hpp feat: Warn state for cpu, memory, fs, battery modules (#2199) 2020-12-02 15:55:13 +01:00
menu.hpp Incorporate reviews 2020-11-26 20:53:53 +01:00
mpd.hpp Load rgba from config instead of strings. 2020-11-27 22:08:03 +01:00
network.hpp feat(network): Ability to change speed unit text (B/s) (#2068) 2020-11-29 14:15:27 +01:00
pulseaudio.hpp Incorporate reviews 2020-11-26 20:53:53 +01:00
script.hpp refactor: Move module type string into modules 2020-11-26 20:53:53 +01:00
systray.hpp Incorporate reviews 2020-11-26 20:53:53 +01:00
temperature.hpp feat: Warn state for cpu, memory, fs, battery modules (#2199) 2020-12-02 15:55:13 +01:00
text.hpp refactor: Move module type string into modules 2020-11-26 20:53:53 +01:00
unsupported.hpp Add dwm module to unsupported.hpp 2020-12-19 19:30:00 -05:00
xbacklight.hpp Incorporate reviews 2020-11-26 20:53:53 +01:00
xkeyboard.hpp Incorporate reviews 2020-11-26 20:53:53 +01:00
xwindow.hpp refactor: Move module type string into modules 2020-11-26 20:53:53 +01:00
xworkspaces.hpp fix(xworkspaces): Never swallow updates (#2275) 2020-12-05 23:28:48 +01:00