Actions to switch the resolution and brightness of external display

I ended up switching to using a BenQ display. Their app “Display Pilot” can sync their display’s colour gamma with Mac, and control resolution, audio, and brightness from any connected keyboard and menubar.