Used to swallow (send to the scratchpad) a terminal window after a blocking application is run in Aerospace window manager
See similar project - i3-swallow
- MacOS system with Aerospace installed (in a way that
aerospacebinary is in PATH) - Python3.x+ or nix
On systems with nix, you can just use the current repo as a flake input.
I.e.
# flake.nix
inputs.aerospace-swallow.url = "github:Dirakon/Aerospace-Swallow";and
# flake.nix
outputs = inputs:
{
# aerospace-swallow program is now under inputs.aerospace-swallow.default."aarch64-darwin"
# install it in whatever way suits you
# ...
}(or use overlays)
You would need python (as per flake.nix and flake.lock - tested only on python 3.12.5).
Just do
python main.py *ANY COMMAND*aerospace-swallow *ANY COMMAND*For example, run Neovide and hide the current terminal app while Neovide is active
aerospace-swallow neovide --no-fork .As per current simplistic implementation, the "hiding" window just goes to a workspace named "scratchpad". If something goes wrong, you can manually visit that workspace - aerospace workspace scratchpad
This Project is licensed under the MIT License. Check license file for more info.