title: Get Macbook screen size from terminal/bash
body: <p>Does anyone know of any possible way to determine or glean this information from the terminal (in order to use in a bash shell script)?</p>
  
  <p>On my Macbook Air, via the GUI I can go to "About this mac" > "Displays" and it tells me:
  Built-in Display, 13-inch (1440 x 900)</p>
  
  <p>I can get the screen resolution from the system_profiler command, but not the "13-inch" bit.
  I've also tried with ioreg without success.  Calculating the screen size from the resolution is not accurate, as this can be changed by the user.</p>
  
  <p>Has anyone managed to achieve this?</p>