Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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).

share|improve this question
up vote 6 down vote accepted

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:


share|improve this answer
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. – jonyamo Jul 2 '11 at 21:23
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. – jonyamo Jul 4 '11 at 13:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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