I had this working on my Note 10+ so that everytime I would shake the device the macro would "Keep Device Awake" and "Set Screen Timeout (Never)". It doesnt seem to be doing this now on my dual screen Z Fold 5.
Any help/advice would be greatly appreciated!