dotfiles

andersuno dotfiles
git clone git://git.andersuno.nu/dotfiles.git
Log | Files | Refs | README

vifmrun (318B)


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