#sway #swayipc #hide #window-swallower

app swayhide

A window swallower for swaywm

2 unstable releases

0.2.0 Jul 28, 2021
0.1.0 Jun 30, 2021

#625 in Command line utilities

35 downloads per month


84 lines

swayhide - A window swallower for sway


swayhide hides the currently active terminal (by moving it to the scratchpad), then it executes the supplied command. When the child process has finished, the terminal is moved back. This is incredibly useful if your workflow includes opening graphical programs from the terminal, as the "locked" terminal won't have to take up any space.

Ideally this would be done using wlroots instead of swayipc, but I'm too lazy to figure out how that works.

This project will be deprecated when I find/build a wlroots alternative, since that would make it wm-independent and thus more future proof.

This project is heavily inspired by jamesofarrell/i3-swallow


$ swayhide firefox
$ alias hide="swayhide"
$ hide zathura document.pdf
$ hide "imv image.jpg"


$ cargo install swayhide

Building from source

$ git clone https://github.com/NomisIV/swayhide
$ cd swayhide
$ cargo install --path .


  • Shell completions (how to bundle completion files?)

Contributions are very welcome :)


~39K SLoC