dwmblocks setup for GLARBS.
Modular status bar for dwm written in c.
The statusbar is made from text output from commandline programs. Blocks are added and removed by editing the config.h file.
GLARBS dwmblocks reads the preexisting scripts in GLARBS Dotfiles repo.
Most statusbars constantly rerun every script every several seconds to update. This is an option here, but a superior choice is giving your module a signal that you can signal to it to update on a relevant event, rather than having it rerun idly.
For example, the audio module has the update signal 10 by default. Thus,
pkill -RTMIN+10 dwmblocks will update it.
You can also run
kill -44 $(pidof dwmblocks) which will have the same effect,
but is faster. Just add 34 to your typical signal number.
The volume module never updates on its own, instead this command runs along side the volume shortcuts in dwm to only update it when relevant.
Note that if you signal an unexpected signal to dwmblocks, it will probably crash. So if you disable a module, remember to also disable any cronjobs or other scripts that might signal to that module.
This build allows you to build in additional actions into your
scripts in response to click events. See the above linked scripts for examples
of this using the
Please install the
This build of dwmblocks does not block color emoji in the status/info bar, so you must install the libXft-bgra patch, which fixes a libXft color emoji rendering problem, otherwise dwmblocks will not show them. Hopefully this fix will be in libXft upstream soon enough.