I have my mac configured for a 4-finger upward swipe to reveal all windows. But it doesn't seem as though a 4 finger swipe up is programmable on KM. Am I missing something?
Keyboard Maestro is limited by whatever macOS supports in its public APIs. Even though macOS may itself support a four finger swipe, that doesn't mean it allows any other apps to intercept that event and reprogram it. In this case, Apple probably doesn't want people to redefine a four finger swipe, so they don't allow apps like KM to intercept it.
But if you can find a public API in Apple's public APIs that allows apps to intercept this event, there's a fair chance that KM will add support for it.
The usual workaround for this sort of case would be to use BetterTouchTool. You can use that to respond to the four-finger swipe and output some Applescript to trigger Keyboard Maestro.
Regarding Trackpad Gestures, BetterTouchTool is the most reliable productivity tool for mac AFAIK. IIRC, they offer a 45 day fully feature trial.
Keyboard Maestro macros can be triggered easily by running an Apple Script with a simple line:
tell application "Keyboard Maestro Engine" to do script "NAME OF THE MACRO"
Personally, I always use a kmtrigger://macro=..
URL call in BTT to run a macro. It's concise and doesn't require spinning up an AppleScript instance.
AppleScript is usually fast enough for my needs, so I typically avoid using the kmtrigger://macro
URL unless the app or extension can't execute AppleScript directly. That said, I experimented with replacing the macro shown in the screenshot (which uses Keyboard Maestro’s "Activate Last Application" action), and found it noticeably slower than the AppleScript version (especially because it runs the compiled SCPT script). It also causes the window to flicker, possibly due to multiple rapid window switching (?):
See GIF
Anyway, thanks for the suggestion, @devoy . I'll try it with other macros this weekend.