by alin23 · 4y ago · 0 comments
I admit that finding a way to change monitor brightness [1] or turn off individual displays [2] wasn’t as straightforward and needed a lot of reverse engineering. But macOS has a much nicer API [3] for configuring screen position, resolution, mirroring etc.
It’s not without its quirks however, I ran into a lot of bugs while developing the Blackout feature when having to create multiple mirror sets with multiple displays in each one. I finally had to reverse engineer the MonitorPanel.framework that’s used by System Preferences to get that functionality. [4]
From my understanding, Windows has a native way of disabling a display in software so this wouldn’t even be needed there.
[1] https://alinpanaitiu.com/blog/journey-to-ddc-on-m1-macs/
[2] https://lunar.fyi/#blackout
[3] https://developer.apple.com/documentation/coregraphics/quart...
I'm currently running Windows, and I'd love to check out Lunar if it's available.
You can get TwinkleTray for Windows that can do most of what Lunar does: https://twinkletray.com/