Skip to content
A status bar for dwm
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README Added reference to Unia's repo Jun 2, 2013
status.c minor reduction in memory use Jun 20, 2012
ttwmstatus.c convering for ttwm Nov 14, 2012


DWM Status

A Status bar for dwm.

This is "hardcoded" for my system and was not meant to be flexible.  Flexibility costs memory and processor time.

This can, however, be used as a template for your own status bar app.

Note that this was written to work with the status colors patch and use symbols from the terminus2 font.  Both the colors and the symbols are int the format strings of the sprintf commands.  However, as they are mostly nonprintable they can show up oddly, or not at all, depending on your editor.

To remove the dependecy on status colors and terminus2 font, simply remove these characters from the format strings.

PS: Audio information is retrieved from a file in my home directory.
This file is updated by whenever the volume is changed by my XF86Vol* keybindings.
This is much more efficient that querying the actual volume from alsa every second.


EDIT: 2 June 2013
As I no longer use dwm, I have not done anything with this code in quite some time, and I don't anticipate doing any of the needed improvements.

Anyone interested in implementing a similar status input for dwm should see Unia's great take on this status bar here:
Something went wrong with that request. Please try again.