DWM on a HiDPI display

last modified: | 1 min read #dwm #fix #linux #suckless

It took me a while to fully configure DWM (dynamic window manager from suckless.org) on my Lenovo X1 Carbon with a HiDPI display (2560x1440 on 14").

As usual the Arch Wiki had the answer but it’s not completely clear which of the solutions was the right for me.

In the end I’ve added the following lines to my .Xresources:

Xft.dpi: 168

Xft.antialias: 1
Xft.hinting: 1
Xft.rgba: rgb
Xft.autohint: 0
Xft.hintstyle: hintfull
Xft.lcdfilter: lcdfilter

And don’t forget to merge your personal file before you load DWM (like I did :-D) so add the following lines to .xinitrc

xrdb -merge ~/.Xresources

That should work flawlessly!

If for some reason some application doesn’t scale properly have a look on the Arch wiki on HiDPI