summaryrefslogtreecommitdiff
path: root/lf
diff options
context:
space:
mode:
authorpants <niklasjo2004@gmail.com>2026-09-21 14:16:02 -0700
committerpants <niklasjo2004@gmail.com>2026-09-21 14:16:02 -0700
commit40f81d08239763c2b5c05af63f17e3fd098d978d (patch)
treeb4475da076490a5fadc69904ad26bcf4ac46b9fc /lf
init
Diffstat (limited to 'lf')
-rw-r--r--lf/lfrc18
1 files changed, 18 insertions, 0 deletions
diff --git a/lf/lfrc b/lf/lfrc
new file mode 100644
index 0000000..43b2319
--- /dev/null
+++ b/lf/lfrc
@@ -0,0 +1,18 @@
+set ignorecase true
+set info size:time
+
+# bindings
+map . set hidden!
+map <delete> delete
+map S shell
+map s calcdirsize
+map <enter> $bash
+map b $btop
+
+# run shell scripts by pressing l on them
+map l ${{
+ case $(file --mime-type -b "$f") in
+ text/x-shellscript) sh "$f" ;;
+ *) lf -remote "send $id open" ;;
+ esac
+}}