Thanks!
I will check out this option. I also created an Apple Shortcuts integration, so if Apple provides a way to integrate desktop changes using the automation app, you can configure it to run a DockFlow preset for each scenario.
The shortcut and CLI integration are really powerful, I know users who set up automations for focus modes, time of day, etc.
Let me know if you manage to create such an integration, and I will check that out as well.
Thank you!
I haven't coded for macOS for a while... well, for almost ten years :-) But as far as I remember, there's a 'NotificationCenter' which broadcasts system state changes to apps. Maybe it has a 'Desktop changed' event?