From efb336a23b65a9a2d56889396b13c1757bdaf354 Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Sun, 29 Dec 2019 14:58:33 -0300 Subject: Initial commit --- .config/vifm/scripts/vifmrun | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 .config/vifm/scripts/vifmrun (limited to '.config/vifm/scripts/vifmrun') diff --git a/.config/vifm/scripts/vifmrun b/.config/vifm/scripts/vifmrun new file mode 100755 index 00000000..a032b418 --- /dev/null +++ b/.config/vifm/scripts/vifmrun @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +export FIFO_UEBERZUG="/tmp/vifm-ueberzug-${PPID}" + +function cleanup { + rm "$FIFO_UEBERZUG" 2>/dev/null + pkill -P $$ 2>/dev/null +} +pkill -P $$ 2>/dev/null +rm "$FIFO_UEBERZUG" 2>/dev/null +mkfifo "$FIFO_UEBERZUG" >/dev/null +trap cleanup EXIT 2>/dev/null +tail --follow "$FIFO_UEBERZUG" | ueberzug layer --silent --parser bash 2>&1 >/dev/null & + +vifm +cleanup -- cgit v1.2.3