swallow applications launched from a terminal
rewrite of bspswallow
by default swallow
uses xdg-mime
to get the default programs for images, videos and pdfs with images/*
, videos/*
and application/pdf
.
however you can specify your own by setting SWALLOW_APPLICATIONS
to the class of the programs that you want to act as swallowers
# ~/.profile
# set as a regex
export SWALLOW_APPLICATIONS="sxiv|zathura|mpv"
the script contains an internal list for st
, urxvt
and alacritty
but you can specify your own
# ~/.profile
# set as a regex
export SWALLOW_TERMINALS="xterm|gnome-terminal"
note:
SWALLOW_APPLICATIONS
andSWALLOW_TERMINAL
are both case insensitive, and replaces defaults if set.
install
installs to /usr/local
by default. to change this set PREFIX=/some/other/path
before you run the script.
git clone https://github.com/The3File/swallow.git
cd swallow
export PREFIX=~/.local
sudo bash -e install
copy bin/swallow
somewhere in your path
git clone https://github.com/The3File/swallow.git
cp swallow/bin/swallow ~/bin
execute the script from ex. .xinitrc
# ~/.xinitrc
...
exec swallow &
bspwm
bash
bspwm
xorg-xprop
xdg-utils
- hide last node before new note (my test were extremly buggy, so nothing yet)
- list of hidden nodes should survive script restart
i just wanted to be able to add features as i saw fit, and i ended up completely rewriting the script. @JopStro did most of the hard work though, so thank him if you like it.