xdpyinfo# Dump info about an X display. $ xdpyinfo $ xdpyinfo | grep dimensions $ xdpyinfo -display :1