[Request] Perform a system action when specific activities are detected

Hey there,
I was wondering if there happens to be or if there are any plans to have a mechanism to perform an action based on an activity being detected? The current specific want that I have is when VSCode is detected to be the active window, I want to run a shell command to change my Key Mapper hotkey set.

If nothing like this exists, I would definitely like to request it as a possible future feature. Something as simple as a key/value list of application process/name/title/etc as key then the command to run when the key is found to be active would be awesome.


We have considered similar things like this before, but it was a long time ago.
Some watchers also have the option of delaying its reporting to aw-server for performance reasons, so if done with the window watcher there might be a significant delay.