xdpyinfo

Display information about an X server and its screen capabilities

brewmacoslinux
Try with needOr install directly
Source

About

X.Org: Utility for displaying information about an X server

Commands

xdpyinfo

Examples

Display complete information about the default X server$ xdpyinfo
Show information about a specific X display$ xdpyinfo -display :0
Get only screen dimensions and color depth information$ xdpyinfo | grep -E 'dimensions|depth'