I would like to use the inconsolata font in dwm's statusbar. Right now my config.h is set up like so using terminus:

static const char font[] = "-*-terminus-medium-r-normal-*-14-*-*-*-*-*-*-*";

I tried changing that to:

static const char font[] = "-*-inconsolata-medium-r-normal-*-17-*-*-*-*-*-*-*";

But it didn't work. I currently have inconsolata working in urxvt by setting the following line in .Xdefaults:

URxvt.font: xft:inconsolata:size=10

So, I believe the best bet would be to just patch Xft support into dwm, but I can't seem to find a patch anywhere and I'm not sure how to do it myself.

Any help would be greatly appreciated. I am currently using dwm 5.8.2.

(At the time of this writing I didn't have enough points to create new tags so I just went with X11 and fonts, please feel free to modify).


There is a (reasonably old) thread on the suckless mailing list about this issue, that includes a patch: called pango.

There is slightly more recent version in the AUR for 5.8.2:


  • if I download the package from the AUR and then modify config.h and run makepkg, I get an error that config.h didn't pass the validity test and won't install. – J.C. Yamokoski Jul 2 '11 at 21:23
  • 1
    I didn't realize you were running Arch. Download the tarball, extract and cd in. Then run makepkg. Once the package is built, edit config.h and then makepg -efi. – jasonwryan Jul 2 '11 at 21:52
  • You have to edit the PKGBUILD and remove anything between md5sums=().You can also do makepkg -g >> PKGBUILD but then the PKGBUILD will get cluttered. – bollovan Jul 3 '11 at 9:22
  • @jasonwryan, I suppose I should have mentioned that I am using Arch... thanks for your answers, worked like a charm. – J.C. Yamokoski Jul 4 '11 at 13:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.