diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2022-03-11 18:32:19 -0500 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2022-03-11 18:32:19 -0500 |
| commit | 42987c2d64b549df26de8f724590f01d1bec0ae1 (patch) | |
| tree | 1b460d5fb3244494bfd3d2f70c270e08e5d9779b /.local | |
| parent | 21bbe35ae3bdc2bce24499af61118a2b7ed1d382 (diff) | |
| download | eibhear-42987c2d64b549df26de8f724590f01d1bec0ae1.tar.gz eibhear-42987c2d64b549df26de8f724590f01d1bec0ae1.tar.zst eibhear-42987c2d64b549df26de8f724590f01d1bec0ae1.zip | |
lf cleanup
Diffstat (limited to '.local')
| -rwxr-xr-x | .local/bin/lf-cleaner | 4 | ||||
| -rwxr-xr-x | .local/bin/lf-select | 9 | ||||
| -rwxr-xr-x | .local/bin/lfub | 2 |
3 files changed, 1 insertions, 14 deletions
diff --git a/.local/bin/lf-cleaner b/.local/bin/lf-cleaner deleted file mode 100755 index a184d84..0000000 --- a/.local/bin/lf-cleaner +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -if [ -n "$FIFO_UEBERZUG" ]; then - printf '{"action": "remove", "identifier": "PREVIEW"}\n' > "$FIFO_UEBERZUG" -fi diff --git a/.local/bin/lf-select b/.local/bin/lf-select deleted file mode 100755 index 3b2a17a..0000000 --- a/.local/bin/lf-select +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -# Reads file names from stdin and selects them in lf. - -while read -r file; do - [ -z "$file" ] && continue - lf -remote "send select \"$file\"" - lf -remote "send toggle" -done diff --git a/.local/bin/lfub b/.local/bin/lfub index 2cf470a..9012f50 100755 --- a/.local/bin/lfub +++ b/.local/bin/lfub @@ -19,6 +19,6 @@ else mkfifo "$FIFO_UEBERZUG" ueberzug layer -s <"$FIFO_UEBERZUG" -p json & exec 3>"$FIFO_UEBERZUG" - trap cleanup EXIT + trap cleanup HUP INT QUIT TERM PWR EXIT lf "$@" 3>&- fi |
