Xdpyinfo How to install ArchLinux: sudo pacman -S xorg-xdpyinfo Current DPI To get current DPI resolution use: xdpyinfo | grep -B2 resolution See also xorg xrandr