vifmrun 318 B

12345678910111213141516
  1. #!/usr/bin/env bash
  2. export FIFO_UEBERZUG="/tmp/vifm-ueberzug-${PPID}"
  3. function cleanup {
  4. rm "$FIFO_UEBERZUG" 2>/dev/null
  5. pkill -P $$ 2>/dev/null
  6. }
  7. rm "$FIFO_UEBERZUG" 2>/dev/null
  8. mkfifo "$FIFO_UEBERZUG"
  9. trap cleanup EXIT
  10. tail --follow "$FIFO_UEBERZUG" | ueberzug layer --silent --parser bash &
  11. vifm
  12. cleanup