From 3cc594b0322507b7df42a9f8177925fdf2f035c3 Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 3 Mar 2025 10:44:34 +0100 Subject: up --- .config/lf/lfrc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to '.config/lf/lfrc') diff --git a/.config/lf/lfrc b/.config/lf/lfrc index 19653c1..b121f04 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -14,11 +14,6 @@ set previewer '~/.config/lf/scope' # cmds/functions cmd open ${{ - if [ -n "$WAYLAND_DISPLAY" ]; then - IMAGER=imv - else - IMAGER="nsxiv -aibo" - fi case $(file --mime-type "$(readlink -f $f)" -b) in application/vnd.openxmlformats-officedocument.spreadsheetml.sheet) localc $fx ;; application/vnd.openxmlformats-officedocument.wordprocessingml.document) docx2txt $f | $PAGER ;; @@ -30,7 +25,7 @@ cmd open ${{ image/svg+xml) display -- $f ;; image/*) rotdir $f | grep -i "\.\(png\|jpg\|jpeg\|gif\|webp\|tif\|ico\)\(_large\)*$" | - $IMAGER 2>/dev/null | while read -r file; do + imv 2>/dev/null | while read -r file; do [ -z "$file" ] && continue lf -remote "send select \"$file\"" lf -remote "send toggle" -- cgit v1.2.3