I see. Thank you for your help. I have done it with MacroDroid, but since I need a Google Play or App Store app, or at least an APK or PIA file ready to be uploaded to the store, I think I’ll have to use Android.
One last question, is it possible to automatically run a shortcut at a given time? I guess no, it can’t unlock your phone.
I’d be surprised if they didn’t let an app toggle DND but let it open an app, let alone unlocking the phone.
Anyway, thank you for your help again. Have a nice day.