summaryrefslogtreecommitdiffstats
path: root/.config/lf/lfrc
diff options
context:
space:
mode:
Diffstat (limited to '.config/lf/lfrc')
-rw-r--r--.config/lf/lfrc8
1 files changed, 2 insertions, 6 deletions
diff --git a/.config/lf/lfrc b/.config/lf/lfrc
index 19653c1..5565b0b 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
+ nsxiv -aibof 2>/dev/null | while read -r file; do
[ -z "$file" ] && continue
lf -remote "send select \"$file\""
lf -remote "send toggle"
@@ -73,6 +68,7 @@ map <c-s> $$SHELL
map <c-n> push :mkdir<space>
map <f-7> push :mkdir<space>
map <c-r> reload
+map <c-g> clear
cmap <c-g> cmd-escape
map x !$f
map X $$f