Display X server properties and screen information
X.Org: Utility for displaying information about an X server
xdpyinfo
$ xdpyinfo | grep dimensions
$ xdpyinfo | grep -A 5 'screen #0'
$ xdpyinfo
$ xdpyinfo | grep resolution
$ xdpyinfo -display :0