about summary refs log tree commit diff stats
path: root/config/lf/lfrc
diff options
context:
space:
mode:
Diffstat (limited to 'config/lf/lfrc')
-rw-r--r--config/lf/lfrc20
1 files changed, 2 insertions, 18 deletions
diff --git a/config/lf/lfrc b/config/lf/lfrc
index 21634d4..e5e58cd 100644
--- a/config/lf/lfrc
+++ b/config/lf/lfrc
@@ -3,30 +3,14 @@ set shell sh
 set shellopts '-eu'
 set ifs "\n"
 
+set promptfmt "\033[1;31m%u\033[0;32m@\033[1;34m%h\033[0m:\033[1;36m%w/\033[0m\033[1m%f\033[0m"
 # cmds
 cmd open ${{
-    case $(file -bi $f) in
-	text/troff) man ./ $f;;
-        text/*) $EDITOR $fx;;
-	image/x-xcf|image/svg+xml) gimp $f >/dev/null 2>&1 & ;;
-	image/vnd.djvu|application/epub+zip|application/pdf) zathura $f >/dev/null 2>&1 & ;;
-	image/*) sxiv -ai >/dev/null 2>&1 & ;;
-	audio/*) mpv --input-ipc-server=/tmp/mpvsoc$(date +%%s) --quiet $f >/dev/null 2>&1 & ;;
-	video/*) mpv --input-ipc-server=/tmp/mpvsoc$(date +%%s) $f ;;
-        *) for f in $fx; do lh $f > /dev/null 2>&1 & done;;
-    esac
+	opener $f
 }}
 
 cmd rename %[ -e $1 ] && printf "file exists" || mv $f $1
 
-cmd delete ${{
-	set -f
-	printf "%s\n\t" "$fx"
-	printf "delete?[y/n]"
-	read ans
-	[ $ans = "y" ] && rm -rf $fx
-}}
-
 # binds
 map D delete
 map a push %mkdir<space>