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_APPLICATIONSandSWALLOW_TERMINALare 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 installcopy bin/swallow somewhere in your path
git clone https://github.com/The3File/swallow.git
cp swallow/bin/swallow ~/binexecute the script from ex. .xinitrc
# ~/.xinitrc
...
exec swallow &
bspwmbashbspwmxorg-xpropxdg-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.