Different actions if fullscreen

I thought I saw this feature requested on the old forums but I was unable to find it here.

I would like to be able to define different trigger/action profiles based on whether or not an app is fullscreen or not.
For example you can't show the desktop while in a fullscreen app, so I'd like to make the gesture I have for showing the desktop do something useful while I'm in a fullscreen app.