How to configure Bettertouchtool to hide a running app from the dock

So, on my Mac, I run Djay app for listening to music whilst working, Many apps are open and running at the same time, however, I wish to completely hide the running Djay app icon on the Dock leaving it to the control center where I can see it running in the background without quitting the app.
I've been able to use the Bettertouchtool to hide it from the desktop or stage manager. Would anyone suggest how to go about hiding the app icon in the dock using Bettertouchtool?
It will be helpful.
Thank you.

oh at first thought could help but reread what you desired-removing/hiding actual open apps icon from the dock. No way that I no of and dont quite get it the use case and workflow but each their own,

Note: 2 native settings may interest you

  1. Enable "only show running apps" and some other options frrom Dock widgett in BTT
  2. Mac Native system option to make hidden apps transparrent effect applied to them in the dock to differentiate for other apps.

hope that helps. take a look at Dock widget in BTT and see if any combo of options suits you with chanes perhaps to your desired workflow

Thanks Wynstaxx, I've also tried your 2 possibilities. Bettertouchtool actually helps hide it from Stage Manager after configuration. It is also true that, most apps must come with the possibility of inherent running in the background without showing dock icon, if not it becomes an impossibility to think of any... but things are changing so I thought someone might have a good shot at it.

There is no way to remove an app from the dock since code signing was made mandatory (I think it was with Catalina), unless the developer has provided for this. The latter must either set LSUIElement to true in the plist or NSApplicationActivationPolicyAccessory in the code.

Earlier tools that had LSUIElement set to true in the plist no longer work due to the code signing, as the app then no longer starts.

Edit: If the app allows the execution of scripts, you can execute the following Apple Script within the app:

-- hide from dock
use framework "Foundation"
current application's NSApp's setActivationPolicy:(current application's NSApplicationActivationPolicyAccessory)
-- show in dock
use framework "Foundation"
current application's NSApp's setActivationPolicy:(current application's NSApplicationActivationPolicyRegular)

(e.g. you can test it with the Script Editor)