Skip to content

sarrost/dwmblocks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My personal build of dwmblocks

Dwmblocks is a modular status bar for dwm written in C. This build is a fork of the original.

Modifying blocks

The statusbar is made from text output from commandline programs. Blocks are added and removed by editing the config.h file.

Scripts

I have dwmblocks read my custom scripts. For the build to work straight out of the, download my scripts and put them in your $PATH.

Installation

git clone https://github.com/sarrost/dwmblocks
cd dwmblocks/src
sudo make install

Usage

dwmblocks

In my build of dwm I have dwmblocks run everytime I start/restart dwm.

Signaling changes

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, rather than having it rerun idly.

For example, the volume module has the update signal 12 by default. Thus, running pkill -RTMIN+10 dwmblocks will update it.

You can also run kill -44 $(pidof dwmblocks) which will have the same effect, but is faster (and sometimes unstable). Just add 34 to your typical signal number.

My volume module never updates on its own, instead I have this command run along side my volume shortcuts in dwm to only update it when relevant.

Contact

About

My personal build of dwmblocks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published