hotkey or shortcut to change display preferences from extend display to mirror display
I'm looking for a method to toggle from extend display to mirror display. The cmd+f1 shortcut achieves this but it defaults to my 2nd monitor's resolution (can't find a way to default to built-in retina resolution). I briefly explored apple scripts, but navigating system preferences gets tricky fast.
For additional context, these screenshots show the two settings I want to toggle between.
Thanks!
MacBook Air