|Inderjit Gill 689b789e08||2 months ago|
|blocks||2 months ago|
|daemons||7 months ago|
|patches||4 months ago|
|.gitignore||10 months ago|
|GNUmakefile||4 months ago|
|LICENSE||4 months ago|
|README.md||5 months ago|
|blocks.h||2 months ago|
|dwmblocks.c||4 months ago|
|sigdwmblocks.c||4 months ago|
|xgetrootname.c||5 months ago|
Modular status monitor for dwm written in C with features including signaling, clickability, cursor hinting and color.
dwmblocks [-d <delimiter>]
Blocks are added and removed by editing blocks.h file. Read it for more info.
The provided blocks use siji font for icons.
patches folder contains two patches for dwm, one for dwm already patched with systray patch and the other for vanilla dwm. One of the patches, whichever appropriate, is essential for dwmblocks to function properly. It will add support for colored text, clickability and cursor hinting when hovering on clickable blocks (inspired by polybar).
Clickability is inspired by statuscmd patch for dwm. On clicking on text corresponding to a clickable block, the program specified to handle clicks for that block is executed with the first argument specifying which button was clicked (1 for left, 2 for middle and 3 for right).
Colored output is inspired by statuscolors patch for dwm. To add colors, have
your programs for the blocks output raw characters from
in status text switches active colorscheme to the first one in the colors array
defined in dwm's config.h and so on. See
statuscolors patch for dwm
for more info. Keep in mind that you have to start from
\x0b instead of
as instructed on the page.
To signal a specific block to update, run
sigdwmblocks <signal> [<sigval>].
<sigval> is optional and must be an integer. If provided, it is passed as the
first argument to the program specified for updating the block.
A tiny program to get the current root name. May prove helpful in debugging.
Clone the repository and run
cd dwmblocks sudo make install clean
Some ideas and code was taken from other projects. Credits for those go to -