Inspect and control the displays attached to the system.
Obtaining screens
constall = hs.screen.all(); // [HSScreen, ...] constmain = hs.screen.main(); // screen containing the focused window constprimary = hs.screen.primary(); // screen with the global menu bar
Navigation
constright = hs.screen.main().toEast(); if (right) console.log("Screen to the right:", right.name);
Inspect and control the displays attached to the system.
Obtaining screens
Navigation
Display modes
Screenshots