dotfiles

My dotfiles used for LARBS
Log | Files | Refs | README | LICENSE

vu (366B)


      1 #!/usr/bin/env sh
      2 
      3 # This is a wrapper for vifm to allow ueberzug images.
      4 
      5 export FIFO_UEBERZUG="/tmp/vifm-ueberzug-${PPID}"
      6 
      7 cleanup() {
      8     rm "$FIFO_UEBERZUG" 2>/dev/null
      9     pkill -P $$ 2>/dev/null
     10 }
     11 
     12 rm "$FIFO_UEBERZUG" 2>/dev/null
     13 mkfifo "$FIFO_UEBERZUG"
     14 trap cleanup EXIT
     15 tail --follow "$FIFO_UEBERZUG" | ueberzug layer --silent --parser bash &
     16 
     17 vifm
     18 cleanup