swayhide

Crates.ioswayhide
lib.rsswayhide
version0.2.1
sourcesrc
created_at2021-06-30 09:30:04.198689
updated_at2022-06-10 16:34:29.125906
descriptionA window swallower for swaywm
homepage
repositoryhttps://github.com/NomisIV/swayhide/
max_upload_size
id416759
size49,183
NomisIV (NomisIV)

documentation

README

swayhide - A window swallower for sway

Description

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

Usage

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

Installation

$ cargo install swayhide

There's also an AUR package for ArchLinux users:

paru -S swayhide

Building from source

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

License

This project is licensed under GPL 3.0

Commit count: 27

cargo fmt