aboutsummaryrefslogtreecommitdiffstats
path: root/catalina_brightness_bullshit.lua
AgeCommit message (Collapse)Author
2019-11-13catalina_brightness_bullshit: Don't restore brightness on wakeTeddy Wing
Don't bother running on wake because we always unlock the screen right after waking. There's no need to restore twice.
2019-10-31init: Reset brightness in F8 invert screen colours bindingTeddy Wing
Mac OS X 10.15 Catalina sometimes (but not always) causes the internal display's brightness to change to the maximum when connected to an external monitor after inverting screen colours. In our F8 shortcut which inverts screen colours, reset the screen brightness to correct this idiocy.
2019-10-20catalina_brightness_bullshit: Get current brightness on initTeddy Wing
Instead of setting the arbitrary 50% brightness default, get the actual current brightness on initialisation so we can restore the real value in case the computer is locked/slept before the timer can store it.
2019-10-20catalina_brightness_bullshit: Save brightness on a timerTeddy Wing
Doesn't seem to be working reliably by saving on lock and sleep, as the brightness is getting saved & restored to the maximum of 100. Save the brightness level on a half-hour timer instead.
2019-10-16Add brightness correction for OS X 10.15 CatalinaTeddy Wing
Since upgrading to 10.15 Catalina, when my external monitor is plugged in and I wake up my machine, for some unexplained reason the internal display resets to maximum brightness. Fix Catalina's nonsense on wake by resetting to the brightness from before sleep.