I've attached a script below that should do this for you. You can import it via the DisplayFusion Settings > Functions > Scripted Function > Import Scripted Function.
You can adjust the monitor split you want it to fire on in line 10. I've added a monitor ID of 1.1 (101 in the script) as an example, but you can adjust it to whatever you would like.
Hope that helps!