Devilspie2 is a window matching utility, allowing the user to perform scripted actions on windows as they are opened and closed.
Devilspie 2 is based on the excellent program Devil's Pie by Ross Burton. It will read Lua scripts from a folder and run them whenever a window is opened, and the rules in them are applied on the window.