about this you can be rest assured that mhwd wont create any additional file if its not speified in the mhwd-db of that config
this is how optimus manager config is done in garuda
as for optimus switch i believe that can be done as well in mhwd.
we just need to detect which dm is installed or its service is active and install that script
before i wasnt sure but now i am