You can accomplish (mostly) the same thing with Spaces on Mac. Granted, I don't believe you can really script any of it. All manual, but it still works pretty well for me.
Some days I still really miss dwm, but having Photoshop, Ableton, and several other things Just Work™ makes it worth it.
The problem with spaces is that any time you cmd-tab between spaces, those spaces will be repositioned relative to each other to be adjacent. This also happens whenever a window opens a dialogue that forces you to switch to it. This means that you can't reliably keep spaces in a strict order.
Some days I still really miss dwm, but having Photoshop, Ableton, and several other things Just Work™ makes it worth it.