integrated status text


Allows dwm to handle the text by itself. You can think of it like a dwmblocks integration into dwm itself. This is extracted from demwm, dwm fork[0], in which you can find even more information.


/* fg         command             interval  signal */
{ "#000000",  "echo 'dwm block!",   10,       3},

You can change $(pidof dwm) with $STATUSBAR to 'fix' signaling multiple instances of dwm, since this patch also wraps the PID of dwm into the $STATUSBAR enviromental variable.

Last thing, mouse actions. For this you need to handle the env variable $BLOCK_BUTTON in a script, this is so you can easily reuse the scripts used in dwmblocks. And remember that mouse actions update the block.

[0] or