dwmblocks - the modular status bar for dwm written in c.
There are 3 branches:
master
is for general changeslaptop
is my laptop's builddesktop
is my desktop's build
In order to make the bar work correctly you need the scripts that I use (can be found at bin), or provide your own.
Clone the repository, switch to the appropriate branch and then enter the following command to build and install dwmblocks (if necessary as root):
make clean install
After installing you can put dwmblocks in your xinitrc or other startup script to have it start with dwm.
The statusbar is made from text output from commandline
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.
Most statusbars constantly rerun every script every several seconds to update. This is an option here, but a superior choice is giving your module a signal that you can signal to it to update on a relevant event. For example, the audio module has the update signal 9 by default.
You can also run kill -43 $(pidof dwmblocks)
which will have the same effect,
but is faster. Just add 34 to your typical signal number.
Visit suckless.org for more information on suckless programs.