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

  1. #!/usr/bin/env sh
  2. # TODO: Remove LF_UebERZUG_FIFO and use LF_UEBERZUG_TEMPDIR/fifo
  3. cleanup() {
  4. rm -r "$LF_UEBERZUG_TEMPDIR" 2>/dev/null
  5. kill $ueberzugpid 2>/dev/null
  6. }
  7. export LF_UEBERZUG_TEMPDIR="$(mktemp -d -t lf-ueberzug-XXXXXX)"
  8. trap cleanup INT
  9. export LF_UEBERZUG_FIFO="$LF_UEBERZUG_TEMPDIR/fifo"
  10. mkfifo "$LF_UEBERZUG_FIFO"
  11. tail -f "$LF_UEBERZUG_FIFO" | ueberzug layer --silent &
  12. ueberzugpid=$!
  13. lf $@
  14. cleanup