Hammerspoon spoon for switching contexts
Basically a wrapper around hs.layout with the following additions:
-
Allows for an optional function to be called when a context is applied
-
Starts any applications listed in the layout if they are not running.
-
Unminimizes any windows listed in the layout if needed.
-
Allows for an optional function to be called with a context is unapplied (typically when another context is applied.
Note: There currently is a race condition in that applications in the layout that are started may not be running yet when subsequent steps are taken.