how to check screen resolution in ubuntu code example Example: what is my monitor resolution ubuntu xdpyinfo | grep dimensions