Edit the config file and reload the layout. Only way I can think of. It’s a pain. May I ask why you need to disable/enable plugins on the fly? Maybe they better off loaded as a module?
I am trying to create a module that shows the game flyer artwork. When a certain action button is pressed and held down, then the artwork pops up and by using the joystick and two other action buttons you can zoom in and out and navigate across the artwork. I use a CRT, so you can't see details when a flyer is shown even in fullscreen. I can 'capture' all inputs, but a button with a plugin assigned to it will always run the plugin. No matter what I do...
but you are right, I could convert the plugin to a module. Didn't thought of that. Thanks!