getdpi(1) User Commands getdpi(1)

getdpi - get the average horizontal DPI

getdpi Display the average DPI of all connected monitors.

getdpi can fetch information about all connected monitors, for X or Wayland, and return the average DPI (dots per inch).

Output DPI information for all available monitors.
Output both the horizontal and vertical average DPI.
Show the current version.

5.14.2

getdpi was written by Alexander F. Rødseth <xyproto@archlinux.org>

23 Jul 2025 getdpi