Dwmblocks is a modular status bar for dwm written in c. This is my adapted personal build of dwmblocks.
The statusbar is made from text output from scripts found in .local/bin. Blocks are added and removed by editing the blocks.h header file.
All you need to do is download the PKGBUILD from this repository. Then run the following command:
makepkg -cf
This will create a file that ends in .pkg.tar.zst (for example, dwmblocks-distrotube-git-6.2-1-x86_64.pkg.tar.zst). Then run:
=sudo pacman -U *.pkg.tar.zst
Alternatively, you could also install dwmblocks-distrotube-git from my own personal Arch repository. To do so, add the following to the end of /etc/pacman.conf :
[dt-arch-repo] SigLevel = Optional DatabaseOptional Server = https://gitlab.com/dwt1/$repo/-/raw/master/$arch
Then, sync the repositories and update your system with:
sudo pacman -Syyu
And, then:
sudo pacman -S dwmblocks-distrotube-git
You will, of course, need my dwmblocks build and the scrpts in .local/bin. Make sure that .local/bin is in your $PATH otherwise you can’t call those scripts by name which is what I’m doing in blocks.h. Instead, you’d have to write out the full path to each script in the blocks.h.
To add .local/bin to $PATH, just add this line to .bashrc:
PATH="$HOME/.local/bin${PATH:+:${PATH}}"