Initial commit

This commit is contained in:
2024-07-14 13:55:45 +02:00
commit 55373d6ed9
75 changed files with 6638 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
# set previewer ~/.config/lf/pv_sandbox.sh
# map i $~/.config/lf/pv_sandbox.sh $f | less -R
set preview false
set ratios 1
set hidden true
set info size:time
set promptfmt "\033[34;1m%d\033[0m"
set incsearch true
set incfilter true
set period 1
# map f filter
# map j updir
# map k down
# map l up
# map ; open
+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/env sh
read -p "Path: " path
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env sh
case "$1" in
*.tar*) tar tf "$1";;
*.zip) unzip -l "$1";;
*.rar) unrar l "$1";;
*.7z) 7z l "$1";;
*.pdf) pdftotext "$1" -;;
*) highlight -O ansi "$1";;
esac
+23
View File
@@ -0,0 +1,23 @@
#!/usr/bin/env sh
set -euo pipefail
(
exec bwrap \
--ro-bind /usr/bin /usr/bin \
--ro-bind /usr/share/ /usr/share/ \
--ro-bind /usr/lib /usr/lib \
--ro-bind /usr/lib64 /usr/lib64 \
--symlink /usr/bin /bin \
--symlink /usr/bin /sbin \
--symlink /usr/lib /lib \
--symlink /usr/lib64 /lib64 \
--proc /proc \
--dev /dev \
--ro-bind /etc /etc \
--ro-bind ~/.config ~/.config \
--ro-bind ~/.cache ~/.cache \
--ro-bind "$PWD" "$PWD" \
--unshare-all \
--new-session \
sh ~/.config/lf/pv.sh "$@"
)