/dwmstatus

C-based status bar for dwm

Primary LanguageCMIT LicenseMIT

dwmstatus

This is a version of the dwmstatus code (originally found here)

My version has been modified to my tastes (particularly in coding standards) and to fit my machines.

Included:

  • sysavg: 1 minute sys avg divided by number of cores
  • battery: read from files under /sys
  • mail: As reported by notmuch
  • media: As reported by mpd/mopidy
  • weather: Reported by parsing Accuweather's RSS feed

Presumptions

Because this is tailored to my machine, I assume you're using my dwm. If not, you'll need a version of dwm patched with pango (not XFT). In addition, you'll need to change the drawing of the statusbar to use pango_layout_set_markup and pango_xft_render_layout, as I believe the current patch floating around does not do this by default.

Building

  • Clone this repository and cd into it
  • Make sure you've got the right headers (remember that you may need to install -dev or -devel packages on your distro to be able to link against them
    • libnotmuch
    • libmpdclient
    • libcurl
  • Modify dwmstatus.c to fit your machine (the import bits are #defines at the top-ish)
  • make
  • Put the binary somewhere