Personal fork of dwmblocks, a simple status bar for dwm
Go to file
2023-09-09 00:33:29 -07:00
scripts Update dwmblocks-battery 2023-07-29 00:18:16 -07:00
.gitignore Add PKGBUILD 2023-05-23 03:04:48 -07:00
blocks.def.h Added dwmblocks-pulse-listener.c 2023-02-23 09:22:54 -08:00
dwmblocks.c Ensure pulse gets cleaned up 2023-09-09 00:31:15 -07:00
LICENSE Initial commit 2023-02-21 12:15:57 -08:00
Makefile Make pulse listener built in 2023-09-08 23:39:55 -07:00
PKGBUILD Update PKGBUILD 2023-09-09 00:33:29 -07:00
pulse-listener.c Ensure pulse gets cleaned up 2023-09-09 00:31:15 -07:00
pulse-listener.h Make pulse listener built in 2023-09-08 23:39:55 -07:00
README.md Update README.md 2023-02-23 11:59:57 -08:00

dwmblocks

My personal fork of dwmblocks. Original found here.

Dwmblocks is a modular status bar for dwm written in c.

Usage

To use dwmblocks first run 'make' and then install it with 'sudo make install'. After that you can put dwmblocks in your xinitrc or other startup script to have it start with dwm.

The dwmblocks-pulse-listener program is a small daemon that takes the pid of a dwmblocks instance and notifies it of pulse audio volume changes.

Modifying Blocks

The status bar is made from text output from command-line programs. Blocks are added and removed by editing the blocks.h header file. By default the blocks.h header file is created the first time you run make which copies the default config from blocks.def.h. This is so you can edit your status bar commands and they will not get overwritten in a future update.

Other Changes

Note that the intervals listed in blocks.h are in milliseconds (1/1000 second). Because of this, the SECONDS() macro is provided for readability. I also implemented some changes from Luke Smith's fork found here.