b6c2dc0dee
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. |
||
---|---|---|
.. | ||
meta | ||
alsa.hpp | ||
backlight.hpp | ||
battery.hpp | ||
bspwm.hpp | ||
counter.hpp | ||
cpu.hpp | ||
date.hpp | ||
dwm.hpp | ||
fs.hpp | ||
github.hpp | ||
i3.hpp | ||
ipc.hpp | ||
memory.hpp | ||
menu.hpp | ||
mpd.hpp | ||
network.hpp | ||
pulseaudio.hpp | ||
script.hpp | ||
systray.hpp | ||
temperature.hpp | ||
text.hpp | ||
unsupported.hpp | ||
xbacklight.hpp | ||
xkeyboard.hpp | ||
xwindow.hpp | ||
xworkspaces.hpp |