Live data from Hacker News

MonitorControl: Control external monitor brightness and volume on your Mac

github.com

31–40 of 89 posts

Re: MonitorControl: Control external monitor brightness and volume on your Mac

#37
post #13
post #8

Great codebase. I stumbled on this while trying to figure out how to programmatically control screen brightness in a macOS app. Turns out that this is far more difficult than imagined. Even controlling just the built-in screen, something I assumed would be included in Apple's libraries, was not included. The source code in MonitorControl is very well written and commented and helped me catch the mistakes I was doing…

Doing anything on macOS is more difficult than I imagine it to be. For example, writing an alt-tab-type app, enumerating the list of apps and their windows. Good luck.

You can get the dock icon (app) list pretty easily, along with their windows

https://github.com/robilic/DockHand

Re: MonitorControl: Control external monitor brightness and volume on your Mac

#38
post #4

On linux: `ddcutil setvcp 0x10 + ` to increase brightness (and - to lower it). Ymmv.

An eye saver with this ultra lightweight 16" USB-C travel monitor I picked up.

On resume from suspend the monitor always dims down to some ridiculously low setting, and without `ddcutil` I'd have to manually adjust the brightness via hardware toggle. As a workaround for the limitation of the monitor I just have a bash script that invokes `ddcutil` on resume from suspend - wonderful :)

Re: MonitorControl: Control external monitor brightness and volume on your Mac

#39
post #13
post #8

Great codebase. I stumbled on this while trying to figure out how to programmatically control screen brightness in a macOS app. Turns out that this is far more difficult than imagined. Even controlling just the built-in screen, something I assumed would be included in Apple's libraries, was not included. The source code in MonitorControl is very well written and commented and helped me catch the mistakes I was doing…

Doing anything on macOS is more difficult than I imagine it to be. For example, writing an alt-tab-type app, enumerating the list of apps and their windows. Good luck.

The famous Dropbox Mac finder hack. It may have been mythologized a little, as Rajiv Eranki was probably the genius hacker who figured it out.

> Here’s that rare Steve Jobs story, one that’s never been told, about the company that got away. Jobs had been tracking a young software developer named Drew Houston, who blasted his way onto Apple’s radar screen when he reverse-engineered Apple’s file system so that his startup’s logo, an unfolding box, appeared elegantly tucked inside. Not even an Apple SWAT team had been able to do that.

> Rajiv Eranki (early employee, no longer at Dropbox) did much of the reverse-engineering required to get the our file overlay icons onto files in the Finder, and also to get us into context menus.

https://www.forbes.com/sites/victoriabarret/2011/10/18/dropb...

https://www.quora.com/Many-articles-about-Drew-Houston-say-t...

Post reply on HN