hammerspoon icon indicating copy to clipboard operation
hammerspoon copied to clipboard

screen count when mirroring displays

Open marksantcroos opened this issue 10 years ago • 8 comments

Hi,

Im using hs.screens to detect the connection of an external screen and act upon that. However, in mirrored mode (which I use) the number of screens is 1.

At least the documentation should be changed that screens != monitors ;-)

It seems that I get two notifications though through the watcher, and after the 2nd one, the name of "the" screen becomes the name of my external screen.

I can probably work with the latter, but not sure how reliable/universal this is.

Anybody familiar with the underlying library and knows how this could be extended?

Thanks!

marksantcroos avatar Dec 31 '14 15:12 marksantcroos