Monterey - run a command on shutdown
My Mac Mini shares display with my PC. I run ddccontrol from desktop to enable the HDMI input the Mac is connected to. When I'm finished working with Mac I need to run ddctl to return the display to my desktop, currently I SSH into Mac to accomplish this. Is there a place where this command runs automatically, like /etc/local.d/*.stop in OpenRC systems?