summaryrefslogtreecommitdiff
path: root/.local/bin
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/lfub5
1 files changed, 3 insertions, 2 deletions
diff --git a/.local/bin/lfub b/.local/bin/lfub
index 9012f50..43a7ef9 100755
--- a/.local/bin/lfub
+++ b/.local/bin/lfub
@@ -7,7 +7,7 @@
set -e
cleanup() {
- exec 3>&-
+ exec 3>&-
rm "$FIFO_UEBERZUG"
}
@@ -17,8 +17,9 @@ else
[ ! -d "$HOME/.cache/lf" ] && mkdir -p "$HOME/.cache/lf"
export FIFO_UEBERZUG="$HOME/.cache/lf/ueberzug-$$"
mkfifo "$FIFO_UEBERZUG"
- ueberzug layer -s <"$FIFO_UEBERZUG" -p json &
+ ueberzug layer -s -p json <"$FIFO_UEBERZUG" &
exec 3>"$FIFO_UEBERZUG"
trap cleanup HUP INT QUIT TERM PWR EXIT
lf "$@" 3>&-
+ killall ueberzug >/dev/null 2>&1
fi