Re:MonitorControl: Control external monitor brightness and v...
by andy_ppp on Friday July 10, 2020 @05:44AM
(#23789729)
Could you share the script? I think lots of people would find it very useful!
[ Parent
| on HN ]
Re:MonitorControl: Control external monitor brightness and v...
by throwanem on Friday July 10, 2020 @07:12AM
(#23790296)
No, but the only thing in it that isn't trivial or already discussed is the invocation for getting the internal display's current brightness values, which is this:
ioreg -c AppleBacklightDisplay | grep brightness | cut -d= -f2- | perl -pe's@=@:@g'
(The cut and perl commands cause it to spit out a JSON blob, instead of the vaguely JSONish format ioreg gives you.)