Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
418 B

#!/usr/bin/env sh
# TODO: Remove LF_UebERZUG_FIFO and use LF_UEBERZUG_TEMPDIR/fifo
cleanup() {
rm -r "$LF_UEBERZUG_TEMPDIR" 2>/dev/null
kill $ueberzugpid 2>/dev/null
}
export LF_UEBERZUG_TEMPDIR="$(mktemp -d -t lf-ueberzug-XXXXXX)"
trap cleanup INT
export LF_UEBERZUG_FIFO="$LF_UEBERZUG_TEMPDIR/fifo"
mkfifo "$LF_UEBERZUG_FIFO"
tail -f "$LF_UEBERZUG_FIFO" | ueberzug layer --silent &
ueberzugpid=$!
lf $@
cleanup