Showing you how to use shell scripts as modules (blocks) for a status bar - dwmblocks. This program allows for updating each module on a separate timer OR with a signal for dynamic updates. I'll discuss how to install and get started, and then go through a module I've made and how to create your own.
Install dwmblocks from this repo: github.com/torrinfail/dwmblocks
Get the statuscmd patch for dwm from Suckless: dwm.suckless.org/patches/statuscmd/
To patch, use the patch command on the downloaded .diff file, in the directory you've installed dwm. If a module fails, check the .rej file, and manually apply any remaining changes.
Use the pkill command to send a custom update signal, example: pkill -RTMIN+11 dwmblocks
If adding to xinitrc, exec dwmblocks before exec dwm.
Ещё видео!