Giter Site home page Giter Site logo

devour's Introduction

Devour: X11 Window Swallower

Devour hides your current window before launching an external program and unhides it after quitting.
Devour was inspired by sw and is a successor to devour.sh

Dependencies

  • Xlib (client-side header files)

Installation

AUR

yay -S --noconfirm devour
# or
yay -S --noconfirm devour-git # Nightly

Git

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

Usage

devour CMD ...

Patches

  • Shell aliases. (ex. devour z FILE instead of devour zathura FILE)
cd devour
patch -s < devour-shellalias-12.diff    # Add the feature
patch -s -R < devour-shellalias-12.diff # Remove the feature
sudo make install                      # Reinstall

Use devour-shellalias-10.0.diff for previous versions of devour.

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

Update

cd devour
git pull --no-rebase && sudo make install

Uninstallation

cd devour
sudo make uninstall

Logs

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

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

  • 03/08/20:- Rewrote the shellscript in C

  • 23/08/20:- Made additional features optional using patching

  • 08/11/20:- Added support for all unsafe characters

Contributors

TO-DOs

  • Authentic swallowing

devour's People

Contributors

keni7385 avatar salman-abedin avatar sourav-majumdar-math avatar westofer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.