Variables system-name, and system-typewill be useful; they allow you to write standard Lisp conditional expressions based on them. frame.elalso has various bits of code that may be useful - display-mm-widthfor example, theoretically returns the physical size of the display.
See ifalso condin the elisp link if you need specific Lisp constructors to determine how to express this solution.
source
share