Skip to content

The3File/swallow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 

Repository files navigation

swallow

swallow applications launched from a terminal

rewrite of bspswallow

configuration

swallowing applications

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"

terminals to swallow

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 and SWALLOW_TERMINAL are both case insensitive, and replaces defaults if set.

installation

use the install script

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

manual

copy bin/swallow somewhere in your path

git clone https://github.com/The3File/swallow.git
cp swallow/bin/swallow ~/bin

usage

execute the script from ex. .xinitrc

# ~/.xinitrc
...
exec swallow &
bspwm

dependencies

  • bash
  • bspwm
  • xorg-xprop
  • xdg-utils

ideas

  • hide last node before new note (my test were extremly buggy, so nothing yet)
  • list of hidden nodes should survive script restart

notes

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.

About

dwm swallow for bspwm

Topics

Resources

License

Stars

Watchers

Forks

Languages