#
hs.screen.watcher
Watch for screen layout changes This could be the addition or removal of a monitor, a screen resolution change, movement of a monitor in the Display preferences pane, etc.
Note that screen events which happen while your Mac is suspended, may not trigger the watcher in various circumstances (e.g. if you have FileVault enabled and the machine resumes out of hibernation - the screen events will be happening before the drive is unlocked and will not be reported to Hammerspoon)
This module is based primarily on code from the previous incarnation of Mjolnir by Steven Degutis.
#
API Overview
Constructors - API calls which return an object, typically one that offers API methods
new newWithActiveScreen
Methods - API calls which can only be made on an object returned by a constructor
start stop