I have two identical Samsung Monitors connected to my Macbook pro 14. Everytime the system sleeps the Persistent Ids of the screens change. I tried swapping the persistent Ids and running the script, but then I get the error could not find res:1080x1920x60.
This is really frustrating. Please help out here.