Window and application rules for SDR brightness / color intensity

I often find myself changing the SDR brightness when changing between tasks. It would be nice if these settings (SDR brightness and SDR color intensity) were available as window / application rules.