CLI option for minimum/maximum XDR nits? #4169
-
Is there a way to configure the above values via CLI? I'm trying to set up a Hammerspoon automation to limit max brightness to 500 nits on battery (and unlock 1600 nits when plugged in), to limit battery drain. Right now, I have it set up to toggle:
which works, but is pretty jarring due to the screen flashing. Is there a way to set max nits via CLI instead? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi there, sadly, right now you can't change this value via CLI easily - but all BetterDisplay stored data is (somewhat) accessible using userdefaults. I recommend changing the value to some weird number, run It is a hack but probably works. |
Beta Was this translation helpful? Give feedback.
Hi there,
sadly, right now you can't change this value via CLI easily - but all BetterDisplay stored data is (somewhat) accessible using userdefaults. I recommend changing the value to some weird number, run
defaults export pro.betterdisplay.BetterDisplay ~/Desktop/settings.plist
, search for the weird number with BBEdit in the plist file, look at it's key and then usedefaults
to directly change the value of the key - this should sync back to the app. However for the change to take effect, you still need to use the off/on as it won't take effect this way right away.It is a hack but probably works.