yeah, I have been playing around with the dtwmrc file, and I have changed most of the settings in that. but I could not duplicate these two functions in my own way. That is why I went for scripting for these two functions but I could not gather an idea for that.
Is there any specific function that replaces these actions?