Re: [i3] Retina/HiDPI: Querying DPI

  • From: Michael Stapelberg <michael@xxxxxxxx>
  • To: Jeff Jibson <jeff@xxxxxxxxxx>, "Discussions\/Questions about the i3 window manager" <i3-discuss@xxxxxxxxxxxxx>
  • Date: Thu, 05 Jun 2014 23:27:54 +0200

Hi Jeff,

Jeff Jibson <jeff@xxxxxxxxxx> writes:

It seems to me that the xrandr --dpi method would be better, especially
with laptops where the monitor plugged in varies. I already use xrandr in
my xinit to determine the resolution of an external monitor.
I remember doing the dpi calculations years ago, but it made the fonts
huge. So, I ended up lying to X setting the dpi to 72x72.
Note that you cannot set the DPI for different monitors independently,
it is global for your X session. But sure, what you write makes some
sense — xrandr is scriptable whereas Xft.dpi is static.

Any other opinions?

--
Best regards,
Michael

Other related posts: