From ebab2f2586739a9e7d0df38f9a1b2eca18b7c719 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Mon, 21 Dec 2020 14:17:42 +0530 Subject: Moves ls and dunst configs and enables notifications --- config/lf/lfrun.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 config/lf/lfrun.sh (limited to 'config/lf/lfrun.sh') diff --git a/config/lf/lfrun.sh b/config/lf/lfrun.sh new file mode 100755 index 0000000..e350c3f --- /dev/null +++ b/config/lf/lfrun.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +export FIFO_UEBERZUG="/tmp/lf-ueberzug-${PPID}"; +export LAST_IMAGE_F="/tmp/lf-ueberzug-${PPID}-last-img"; + +function cleanup { + ~/scripts/image.sh clear; + rm "$FIFO_UEBERZUG" 2>/dev/null + pkill -P $$ +} + +mkfifo "$FIFO_UEBERZUG" 2&>/dev/null; +mkfifo "$LAST_IMAGE_F" 2&>/dev/null; + +trap cleanup EXIT +tail --follow "$FIFO_UEBERZUG" | ueberzug layer --silent --parser bash & + +lf "$@"; -- cgit v1.3.1