You can bind a single keyboard shortcut to cycle through different possible positions for a single window size. For example, let's say you want a window to take up half the screen. In my case I press F2 once or twice depending if it's on the left or right half.
Another tool to script the GUI is Keyboard Maestro[1]. Almost any GUI action is possible such as closing a specific application on open or moving mouse to x,y. In my case, I set up a keyboard shortcut to activate iTerm (a almost terminal.app) and enter %run<up arrow><enter> to run a python script.
Both cost money but I couldn't live without it after the free trial ended.
[0, 1]:(I'm on mobile otherwise I would post a link; use google).