summaryrefslogtreecommitdiffstats
path: root/.config/lf
diff options
context:
space:
mode:
Diffstat (limited to '.config/lf')
-rw-r--r--.config/lf/colors174
-rw-r--r--.config/lf/icons267
-rw-r--r--.config/lf/lfrc97
-rwxr-xr-x.config/lf/scope39
4 files changed, 0 insertions, 577 deletions
diff --git a/.config/lf/colors b/.config/lf/colors
deleted file mode 100644
index 1f1d4a8..0000000
--- a/.config/lf/colors
+++ /dev/null
@@ -1,174 +0,0 @@
-# vim:ft=dircolors
-# (This is not a dircolors file but it helps to highlight colors and comments)
-
-# default values from dircolors
-# (entries with a leading # are not implemented in lf)
-# #no 00 # NORMAL
-# fi 00 # FILE
-# #rs 0 # RESET
-# di 01;34 # DIR
-# ln 01;36 # LINK
-# #mh 00 # MULTIHARDLINK
-# pi 40;33 # FIFO
-# so 01;35 # SOCK
-# #do 01;35 # DOOR
-# bd 40;33;01 # BLK
-# cd 40;33;01 # CHR
-# or 40;31;01 # ORPHAN
-# #mi 00 # MISSING
-# su 37;41 # SETUID
-# sg 30;43 # SETGID
-# #ca 30;41 # CAPABILITY
-# tw 30;42 # STICKY_OTHER_WRITABLE
-# ow 34;42 # OTHER_WRITABLE
-# st 37;44 # STICKY
-# ex 01;32 # EXEC
-
-# default values from lf (with matching order)
-# ln 01;36 # LINK
-# or 31;01 # ORPHAN
-# tw 01;34 # STICKY_OTHER_WRITABLE
-# ow 01;34 # OTHER_WRITABLE
-# st 01;34 # STICKY
-# di 01;34 # DIR
-# pi 33 # FIFO
-# so 01;35 # SOCK
-# bd 33;01 # BLK
-# cd 33;01 # CHR
-# su 01;32 # SETUID
-# sg 01;32 # SETGID
-# ex 01;32 # EXEC
-# fi 00 # FILE
-
-# file types (with matching order)
-ln 01;36 # LINK
-or 31;01 # ORPHAN
-tw 34 # STICKY_OTHER_WRITABLE
-ow 34 # OTHER_WRITABLE
-st 01;34 # STICKY
-di 01;34 # DIR
-pi 33 # FIFO
-so 01;35 # SOCK
-bd 33;01 # BLK
-cd 33;01 # CHR
-su 01;32 # SETUID
-sg 01;32 # SETGID
-ex 01;32 # EXEC
-fi 00 # FILE
-
-# archives or compressed (dircolors defaults)
-*.tar 00;31
-*.tgz 00;31
-*.arc 00;31
-*.arj 00;31
-*.taz 00;31
-*.lha 00;31
-*.lz4 00;31
-*.lzh 00;31
-*.lzma 00;31
-*.tlz 00;31
-*.txz 00;31
-*.tzo 00;31
-*.t7z 00;31
-*.zip 00;31
-*.z 00;31
-*.dz 00;31
-*.gz 00;31
-*.lrz 00;31
-*.lz 00;31
-*.lzo 00;31
-*.xz 00;31
-*.zst 00;31
-*.tzst 00;31
-*.bz2 00;31
-*.bz 00;31
-*.tbz 00;31
-*.tbz2 00;31
-*.tz 00;31
-*.deb 00;31
-*.rpm 00;31
-*.jar 00;31
-*.war 00;31
-*.ear 00;31
-*.sar 00;31
-*.rar 00;31
-*.alz 00;31
-*.ace 00;31
-*.zoo 00;31
-*.cpio 00;31
-*.7z 00;31
-*.rz 00;31
-*.cab 00;31
-*.wim 00;31
-*.swm 00;31
-*.dwm 00;31
-*.esd 00;31
-
-# image formats (dircolors defaults)
-*.jpg 00;35
-*.jpeg 00;35
-*.mjpg 00;35
-*.mjpeg 00;35
-*.gif 00;35
-*.bmp 00;35
-*.pbm 00;35
-*.pgm 00;35
-*.ppm 00;35
-*.tga 00;35
-*.xbm 00;35
-*.xpm 00;35
-*.tif 00;35
-*.tiff 00;35
-*.png 00;35
-*.svg 00;35
-*.svgz 00;35
-*.mng 00;35
-*.pcx 00;35
-*.mov 00;35
-*.mpg 00;35
-*.mpeg 00;35
-*.m2v 00;35
-*.mkv 00;35
-*.webm 00;35
-*.ogm 00;35
-*.mp4 00;35
-*.m4v 00;35
-*.mp4v 00;35
-*.vob 00;35
-*.qt 00;35
-*.nuv 00;35
-*.wmv 00;35
-*.asf 00;35
-*.rm 00;35
-*.rmvb 00;35
-*.flc 00;35
-*.avi 00;35
-*.fli 00;35
-*.flv 00;35
-*.gl 00;35
-*.dl 00;35
-*.xcf 00;35
-*.xwd 00;35
-*.yuv 00;35
-*.cgm 00;35
-*.emf 00;35
-*.ogv 00;35
-*.ogx 00;35
-
-# audio formats (dircolors defaults)
-*.aac 00;36
-*.au 00;36
-*.flac 00;36
-*.m4a 00;36
-*.mid 00;36
-*.midi 00;36
-*.mka 00;36
-*.mp3 00;36
-*.mpc 00;36
-*.ogg 00;36
-*.ra 00;36
-*.wav 00;36
-*.oga 00;36
-*.opus 00;36
-*.spx 00;36
-*.xspf 00;36
diff --git a/.config/lf/icons b/.config/lf/icons
deleted file mode 100644
index 249ada9..0000000
--- a/.config/lf/icons
+++ /dev/null
@@ -1,267 +0,0 @@
-fi=
-di=
-ln=
-pi=|
-so=ﯲ
-db=
-cd=c
-or=
-su=
-sg=
-tw=
-ow=w
-st=
-ex=
-*.7z=
-*.a=
-*.aac=
-*.ace=
-*.ai=
-*.alz=
-*.apk=
-*.arc=
-*.arj=
-*.asf=
-*.asm=
-*.asp=
-*.au=
-*.aup=
-*.avi=
-*.avi=
-*.bash=
-*.bat=
-*.bmp=
-*.bz2=
-*.bz=
-*.c++=
-*.c=
-*.cab=
-*.cbr=
-*.cbz=
-*.cc=
-*.cgm=
-*.class=
-*.clj=
-*.cljc=
-*.cljs=
-*.cmake=
-*.cmd=
-*.coffee=
-*.conf=
-*.cp=
-*.cpio=
-*.cpp=
-*.cs=
-*.css=
-*.cue=
-*.cvs=
-*.cxx=
-*.d=
-*.dart=
-*.db=
-*.deb=
-*.diff=
-*.dl=
-*.dll=
-*.doc=
-*.docx=
-*.dump=
-*.dwm=
-*.dz=
-*.ear=
-*.edn=
-*.eex=
-*.efi=
-*.ejs=
-*.elf=
-*.elm=
-*.emf=
-*.epub=
-*.erl=
-*.esd=
-*.ex=
-*.exe=
-*.exs=
-*.f#=
-*.fifo=|
-*.fish=
-*.flac=
-*.flc=
-*.fli=
-*.flv=
-*.flv=
-*.fs=
-*.fsi=
-*.fsscript=
-*.fsx=
-*.gem=
-*.gif=
-*.git=
-*.gl=
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-*.vob=
-*.war=
-*.wav=
-*.wav=
-*.webm=
-*.wim=
-*.wmv=
-*.xbm=
-*.xbps=
-*.xcf=
-*.xhtml=
-*.xls=
-*.xlsx=
-*.xml=
-*.xpm=
-*.xspf=
-*.xul=
-*.xwd=
-*.xz=
-*.yaml=
-*.yml=
-*.yuv=
-*.z=
-*.zip=
-*.zoo=
-*.zsh=
-*.zst=
-*.src=
-*.ebuild= \ No newline at end of file
diff --git a/.config/lf/lfrc b/.config/lf/lfrc
deleted file mode 100644
index 5565b0b..0000000
--- a/.config/lf/lfrc
+++ /dev/null
@@ -1,97 +0,0 @@
-# Basic vars
-set shellopts '-eu'
-set ifs "\n"
-set scrolloff 10
-set shell "/bin/sh"
-set icons
-set period 1
-set dirfirst true
-set drawbox true
-set preview true
-set ratios 1:3:5
-set tabstop 4
-set previewer '~/.config/lf/scope'
-
-# cmds/functions
-cmd open ${{
- 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 ;;
- image/vnd.djvu|application/pdf|application/octet-stream|application/postscript) setsid zathura $fx >/dev/null 2>&1 ;;
- text/html) $BROWSER $fx ;;
- text/plain) $PAGER $fx ;;
- text/*|application/json|inode/x-empty) bat --style=plain --tabs 4 --paging=always -f $fx ;;
- image/x-xcf) gimp $f >/dev/null 2>&1 ;;
- image/svg+xml) display -- $f ;;
- image/*)
- rotdir $f | grep -i "\.\(png\|jpg\|jpeg\|gif\|webp\|tif\|ico\)\(_large\)*$" |
- nsxiv -aibof 2>/dev/null | while read -r file; do
- [ -z "$file" ] && continue
- lf -remote "send select \"$file\""
- lf -remote "send toggle"
- done
- ;;
- audio/*) mpv --no-audio-display --audio-channels=stereo $fx ;;
- video/*) mpv --really-quiet --audio-channels=stereo $fx >/dev/null 2>&1 ;;
- *opendocument*) odt2txt $f | $PAGER ;;
- application/pdf|application/vnd*|application/epub*) zathura $fx >/dev/null 2>&1 ;;
- application/pgp-encrypted) $EDITOR $fx ;;
- *) for f in $fx; do xdg-open $f >/dev/null 2>&1; done;;
- esac
-}}
-
-cmd mkdir $mkdir -p "$(echo $* | sed 's/ /\ /g')"
-cmd bulkrename $vidir $fx
-cmd showallpics $exa *.png *.jpg *.jpeg *.gif *.webp *.tif *.ico 2>/dev/null | nsxiv -taib &
-cmd newtermedit $EDITOR $fx
-
-map gr cd /
-map gm cd ~/hdd
-map gw cd ~/stoc1/work
-map gS cd ~/pics/scrot
-map gc cd ~/.config
-map gb cd ~/.local/bin
-map gs cd ~/.local/share
-map gp cd ~/.local/packs
-map gM cd /mnt
-map gt cd /tmp
-map gf cd ~/dev/c/c_dergods_realm_2
-
-map za set hidden!
-map zh set info size:time
-map <c-f> $lf -remote "send $id select '$(fzf)'"
-map <enter> open
-map D delete
-map W $$SHELL
-map S $$SHELL
-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
-map o $$PAGER $f
-map V showallpics
-map @ !clear; du -sh .
-map ( set ratios 1
-map ) set ratios 1:1
-map _ set ratios 1:4
-map + set ratios 1:3:5
-map = set ratios 1:3:5
-map P set preview!
-
-map A rename # at the very end
-map c push A<c-u> # new rename
-map I push A<c-a> # at the very beginning
-map i push A<a-b><a-b><a-f> # before extention
-map a push A<a-b> # after extention
-map B bulkrename
-map <f-2> bulkrename
-
-map <c-e> down
-map <c-y> up
-map e $$EDITOR $fx
-map E $st -e $EDITOR $fx &
-map <insert> push :$$EDITOR<space>
diff --git a/.config/lf/scope b/.config/lf/scope
deleted file mode 100755
index 267e5bf..0000000
--- a/.config/lf/scope
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/sh
-
-# File preview handler for lf.
-
-set -C -f
-# IFS="$(printf '%b_' '\n')"; IFS="${IFS%_}"
-
-# image() {
-# if [ -n "$DISPLAY" ] && [ -z "$WAYLAND_DISPLAY" ] && command -V ueberzug >/dev/null 2>&1; then
-# printf '{"action": "add", "identifier": "PREVIEW", "x": "%s", "y": "%s", "width": "%s", "height": "%s", "scaler": "contain", "path": "%s"}\n' "$4" "$5" "$(($2-1))" "$(($3-1))" "$1" > "$FIFO_UEBERZUG"
-# else
-# mediainfo "$1"
-# fi
-# }
-
-# ifub() {
-# [ -n "$DISPLAY" ] && [ -z "$WAYLAND_DISPLAY" ] && command -V ueberzug >/dev/null 2>&1
-# }
-
-# Note that the cache file name is a function of file information, meaning if
-# an image appears in multiple places across the machine, it will not have to
-# be regenerated once seen.
-
-case "$(file --dereference --brief --mime-type -- "$1")" in
- image/*) mediainfo "$1" || exit 1 ;;
- text/html) lynx -width="$4" -display_charset=utf-8 -dump "$1" ;;
- text/troff) man ./ "$1" | col -b ;;
- text/* | */xml | application/json) bat --plain --terminal-width "$4" -f "$1" ;;
- application/zip) atool --list -- "$1" ;;
- application/x-xz) atool --list -- "$1" ;;
- application/gzip) atool --list -- "$1" ;;
- audio/* | application/octet-stream) mediainfo "$1" || exit 1 ;;
- video/* ) mediainfo "$1" || exit 1 ;;
- */pdf) pdftotext "$1" - || exit 1 ;;
- *opendocument*) odt2txt "$1" || exit 1;;
- application/vnd.openxmlformats-officedocument.wordprocessingml.document) docx2txt "$1" ;;
- application/pgp-encrypted) gpg -d -- "$1" ;;
-esac
-exit 1