3 ms·
Could you share the script? I think lots of people would find it very useful!
by andy_ppp 6y ago
Could you share the script? I think lots of people would find it very useful!
- deleted 6y ago[deleted]
- throwanem 6y agoNo, 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.)