Skip to content

Dirakon/Aerospace-Swallow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swallow

Used to swallow (send to the scratchpad) a terminal window after a blocking application is run in Aerospace window manager

Information

See similar project - i3-swallow

Requirements

  • MacOS system with Aerospace installed (in a way that aerospace binary is in PATH)
  • Python3.x+ or nix

Installation Instruction

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)

Non-nix

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*

Usage

aerospace-swallow *ANY COMMAND*

For example, run Neovide and hide the current terminal app while Neovide is active

aerospace-swallow neovide --no-fork .

Warning

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

License

This Project is licensed under the MIT License. Check license file for more info.

About

A script to swallow the terminal app in Aerospace - similar to i3-swallow

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors