dwm + HiDpi display

For some reason there are not so many forum themes for dwm (dynamic window manager from suckless.org) and hiDpi (the problem is that fonts, windows and icons are way too small). I found some fork for dwm/hidpi, but failed to figure out what exactly is changed here for resolution issue (there were other dwm patches as well).

So I did a small research for other WMs and got everything work fine with following steps.

Add following to ~/.xinit:

xrandr --dpi 220

Provide system-wide environment variable for scaling GUI, for example, add to /etc/environment

GDK_SCALE=2

P.S. For xfce4 same may be achieved with following command (put it in ~/.xinitrc):

xfconf-query -c xsettings -p /Gdk/WindowScalingFactor -s 2


Back