diff options
author | awy <awy@awy.one> | 2025-01-29 16:04:36 +0300 |
---|---|---|
committer | awy <awy@awy.one> | 2025-01-29 16:04:36 +0300 |
commit | 015f2fd07f0f7647d097d02552e652702c48f48a (patch) | |
tree | 6055ec52efd035a633601746ae0f78589eabc133 /.config | |
parent | 45636fa86ebe92e651cd4a22d323468a08a53255 (diff) |
update
Diffstat (limited to '.config')
-rwxr-xr-x | .config/lf/cleaner | 4 | ||||
-rw-r--r-- | .config/lf/icons | 77 | ||||
-rw-r--r-- | .config/lf/lfrc | 25 | ||||
-rwxr-xr-x | .config/lf/scope | 13 |
4 files changed, 0 insertions, 119 deletions
diff --git a/.config/lf/cleaner b/.config/lf/cleaner deleted file mode 100755 index 1227249..0000000 --- a/.config/lf/cleaner +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -#rm ~/.cache/lf/* -f -exec kitty +kitten icat --clear --stdin no --silent --transfer-mode file </dev/null >/dev/tty - diff --git a/.config/lf/icons b/.config/lf/icons deleted file mode 100644 index aad068c..0000000 --- a/.config/lf/icons +++ /dev/null @@ -1,77 +0,0 @@ -di 📁 -fi 📃 -tw 🤝 -ow 📂 -ln ⛓ -or ❌ -ex 🎯 -*.txt ✍ -*.mom ✍ -*.me ✍ -*.ms ✍ -*.avif 🖼 -*.png 🖼 -*.webp 🖼 -*.ico 🖼 -*.jpg 📸 -*.jpe 📸 -*.jpeg 📸 -*.gif 🖼 -*.svg 🗺 -*.tif 🖼 -*.tiff 🖼 -*.xcf 🖌 -*.html 🌎 -*.xml 📰 -*.gpg 🔒 -*.css 🎨 -*.pdf 📚 -*.djvu 📚 -*.epub 📚 -*.csv 📓 -*.xlsx 📓 -*.tex 📜 -*.md 📘 -*.r 📊 -*.R 📊 -*.rmd 📊 -*.Rmd 📊 -*.m 📊 -*.mp3 🎵 -*.opus 🎵 -*.ogg 🎵 -*.m4a 🎵 -*.flac 🎼 -*.wav 🎼 -*.mkv 🎥 -*.mp4 🎥 -*.webm 🎥 -*.mpeg 🎥 -*.avi 🎥 -*.mov 🎥 -*.mpg 🎥 -*.wmv 🎥 -*.m4b 🎥 -*.flv 🎥 -*.zip 📦 -*.rar 📦 -*.7z 📦 -*.tar 📦 -*.z64 🎮 -*.v64 🎮 -*.n64 🎮 -*.gba 🎮 -*.nes 🎮 -*.gdi 🎮 -*.1 ℹ -*.nfo ℹ -*.info ℹ -*.log 📙 -*.iso 📀 -*.img 📀 -*.bib 🎓 -*.ged 👪 -*.part 💔 -*.torrent 🔽 -*.jar ♨ -*.java ♨ diff --git a/.config/lf/lfrc b/.config/lf/lfrc deleted file mode 100644 index 56ca258..0000000 --- a/.config/lf/lfrc +++ /dev/null @@ -1,25 +0,0 @@ -set ifs "\n" -set icons -set sixel true -set cleaner ~/.config/lf/cleaner -set previewer ~/.config/lf/scope - -cmd open ${{ - case $(file --mime-type "$(readlink -f $f)" -b) in - text/*|application/json|inode/x-empty|application/x-subrip) $EDITOR $fx;; - video/*) setsid -f mpv $f -quiet >/dev/null 2>&1 ;; - audio/*|video/x-ms-asf) mpv --audio-display=no $f ;; - *) for f in $fx; do setsid -f $OPENER $f >/dev/null 2>&1; done;; - esac -}} - -cmd delete ${{ - clear; tput cup $(($(tput lines)/3)); tput bold - set -f - printf "%s\n\t" "$fx" - printf "delete?[y/N]" - read ans - [ $ans = "y" ] && rm -rf -- $fx -}} - -map D delete diff --git a/.config/lf/scope b/.config/lf/scope deleted file mode 100755 index b79c4b6..0000000 --- a/.config/lf/scope +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -case "$(file -Lb --mime-type -- "$1")" in - image/*) - chafa -f sixel -s "$2x$3" --animate off --polite on "$1" - exit 1 - ;; - text/* | */xml | application/json | application/x-ndjson) bat -p --theme ansi --terminal-width "$(($4-2))" -f "$1" ;; - audio/* | application/octet-stream) mediainfo "$1" || exit 1 ;; - video/*) - CACHE="${XDG_CACHE_HOME:-$HOME/.cache}/lf/thumb.$(stat --printf '%n\0%i\0%F\0%s\0%W\0%Y' -- "$(readlink -f "$1")" | sha256sum | cut -d' ' -f1)" - [ ! -f "$CACHE" ] && ffmpegthumbnailer -i "$1" -o "$CACHE" -s 0 - chafa -f sixel -s "$2x$3" --animate off --polite on "$CACHE" -esac |