monitor specific conditional presets

I'd like to be able to have a gesture behave differently if I have my laptop plugged into my external monitor. For example, I have a three finger swipe up mapped to maximizing a window, which I would like to do a maximize to the middle half (i.e, the 2 middle quarters, leaving the left and right quarter visible) when plugged into a specific external monitor.