I have a Lenovo Thinkpad X1 yoga, which has an OLED display. This means the brightness isn't set in the usual way, but luckily you can get around that with scripts using xrandr --brightness. Specifically, I have a script set up that listens for brightness changes and then uses xrandr to implement them. Unfortunately, this does not take into account color temperature, and so does not pick up changes from Gnome Night Light. Where does Night Light store its current settings, and how does one get access to them? Or better yet, is there a way to convince Night Light to use xrandr to set brightness?
NB: This is not a duplicate of this question. OLED displays do not respond to the usual way of setting brightness. So Night Light by itself only changes the color temperature, but not the brightness. On the other hand, I can set the brightness with xrandr, but this overrides the color temperature. Can I get Night Light to use xrandr to set brightness instead of the standard method? Or, failing that, how do I read out Night Light's settings to set the correct temperature and brightness myself?