Skip to content

Aegix dwmblocks - i3blocks-like status bar where you can refresh each "block" independently by update time or signal.

License

Notifications You must be signed in to change notification settings

AegixLinux/dwmblocks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dwmblocks

Modular status bar for dwm written in c.

Modifying blocks

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

Aegix build

dwmblocks reads preexisting scripts from ~/.local/bin/statusbar. So if you want this build outside of Aegix, download those and put them in your $PATH to avoid redundancy in statusbar scripts.

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 audio module has the update signal 10 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. Just add 34 to your typical signal number.

The volume module never updates on its own, instead, this command runs along side the volume shortcuts in dwm to only update when relevant.

Note that all modules must have different signal numbers.

Clickable modules

Like i3blocks, this build allows you to build in additional actions into your scripts in response to click events. See the above linked scripts for examples of this using the $BLOCK_BUTTON variable. This allows us to increase/decrease screen brightness by hovering over the battery indicator and scrolling up or down.

For this feature to work, you need the appropriate patch in dwm as well. See here. Credit for those patches goes to Daniel Bylinka ([email protected]).

About

Aegix dwmblocks - i3blocks-like status bar where you can refresh each "block" independently by update time or signal.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published