/devour.sh

Window Manager agnostic swallowing feature for terminal emulators (Shellscript)

Primary LanguageShellGNU General Public License v3.0GPL-3.0

Demonstration done by DistroTube

Devour: Window Manager agnostic swallowing feature for terminal emulators

Devour hides your terminal window before launching an external program and unhides it after quitting.

Devour is the successor to BSPWM_Swallow and a fork of sw by ronniedroid

Dependencies

Installation

git clone https://github.com/salman-abedin/devour.git && cd devour && sudo make install

Usage

devour CMD/ALIAS ... SAFE FILE ...
devour CMD/ALIAS ... -- SAFE FILE/UNSAFE FILE

Pro Tip

Devour from your file explorer instead of the shell.

Watch my demo and notice how seamless it is compared to devouring from the shell.

Hint: If you are one of those unfortunate souls who uses xdg-open instead of a custom launch script, then go to your ~/.local/share/applications directory and modify the applications you launch from your file explorer like below and enjoy the true devouring experience.

[Desktop Entry]
Type=Application
Name=PDF Reader
Exec=/usr/local/bin/devour /usr/bin/zathura %U

Uninstallation

sudo make uninstall

Patches

  • 21/06/20:- Added support for names with spaces

  • 07/07/20:- Added support for shell aliases

  • 24/07/20:- Added support for names with spaces in alias mode

Contributors


Repos you might be interested in

Name Description
bolt The launcher wrapper
uniblocks The status bar wrapper
tide Minimal Transmission CLI client
puri Minimal URL launcher
crystal The transparent setup
Magpie The dotfiles
Alfred The scripts

Contact

SalmanAbedin@disroot.org