Display information about an X server and its screen capabilities
X.Org: Utility for displaying information about an X server
xdpyinfo
$ xdpyinfo
$ xdpyinfo -display :0
$ xdpyinfo | grep -E 'dimensions|depth'