Macro to set MacBook Pro screen brightness to zero if brightness is beneath a certain threshold?

Finally got some time on one. So, in case helps anybody:

ioreg -rc IOMobileFramebufferShim | grep '\"IOMFBBrightnessLevel\"' | head -1 | grep -Eo "\d+$"

...giving a number from 0 (fully dimmed) to 19660800 (full brightness).

1 Like