4 ms·
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 th
by throwanem 6y ago
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.)