Matt Dobson 4ef564ce20 mpdcontrol patch added 2 years ago
..
scripts 4ef564ce20 mpdcontrol patch added 2 years ago
.SRCINFO 4ef564ce20 mpdcontrol patch added 2 years ago
LICENSE 4ef564ce20 mpdcontrol patch added 2 years ago
Makefile 4ef564ce20 mpdcontrol patch added 2 years ago
PKGBUILD 4ef564ce20 mpdcontrol patch added 2 years ago
README.org 4ef564ce20 mpdcontrol patch added 2 years ago
blocks.def.h 4ef564ce20 mpdcontrol patch added 2 years ago
blocks.h 4ef564ce20 mpdcontrol patch added 2 years ago
dwmblocks d1146c488e added alpa and removeborder patches 2 years ago
dwmblocks.c 4ef564ce20 mpdcontrol patch added 2 years ago

README.org

About Dwmblocks

https://gitlab.com/dwt1/dotfiles/raw/master/.screenshots/dotfiles05-thumb.png

Dwmblocks is a modular status bar for dwm written in c. This is my personal build of dwmblocks.

Modifying dwmblocks

The statusbar is made from text output from scripts found in my https://gitlab.com/dwt1/dotfiles/-/tree/master/.local/bin. Blocks are added and removed by editing the blocks.h header file.

Installing dwmblocks-distrotube on Arch Linux

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=

To get my dwmblocks to work for you...

You will, of course, need my dwmblocks build and my scripts in [.local/bin](https://gitlab.com/dwt1/dotfiles/-/tree/master/.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 your .bashrc:

PATH="$HOME/.local/bin${PATH:+:${PATH}}"