hammerspoon
hammerspoon copied to clipboard
screen count when mirroring displays
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!