Krolyxon
Commit b13ae73

Branches

Refs →

aurorab13ae73

lf: improve opener, change icons

Author
krolxon
Date
2025-09-20 17:52 +0530
Parent
92e2da7
Commit
b13ae738e92c07faa4196ed784ecec6c4d817d5c

+643 −168

3 files changed

  1. D .config/lf/cleaner +0 −4
  2. M .config/lf/icons +630 −156
  3. M .config/lf/lfrc +13 −8
D .config/lf/cleaner View
@@ -1,4 +0,0 @@
1−#!/bin/sh
2−if [ -n "$FIFO_UEBERZUG" ]; then
3− printf '{"action": "remove", "identifier": "PREVIEW"}\n' > "$FIFO_UEBERZUG"
4−fi
M .config/lf/icons View
@@ -2,159 +2,633 @@ di 
22 fi 
33 ln 
44 or 
5−ex 
6−*.vimrc 
7−*.viminfo 
8−*.gitignore 
9−*.c 
10−*.cc 
11−*.clj 
12−*.coffee 
13−*.cpp 
14−*.css 
15−*.d 
16−*.dart 
17−*.erl 
18−*.exs 
19−*.fs 
20−*.go 
21−*.h 
22−*.hh 
23−*.hpp 
24−*.hs 
25−*.html 
26−*.java 
27−*.jl 
28−*.js 
29−*.json 
30−*.lua 
31−*.md 
32−*.php 
33−*.pl 
34−*.pro 
35−*.py 
36−*.rb 
37−*.rs 
38−*.scala 
39−*.ts 
40−*.vim 
41−*.cmd 
42−*.ps1 
43−*.sh 
44−*.bash 
45−*.zsh 
46−*.fish 
47−*.tar 
48−*.tgz 
49−*.arc 
50−*.arj 
51−*.taz 
52−*.lha 
53−*.lz4 
54−*.lzh 
55−*.lzma 
56−*.tlz 
57−*.txz 
58−*.tzo 
59−*.t7z 
60−*.zip 
61−*.z 
62−*.dz 
63−*.gz 
64−*.cz 
65−*.lrz 
66−*.lz 
67−*.lzo 
68−*.xz 
69−*.zst 
70−*.tzst 
71−*.bz2 
72−*.bz 
73−*.tbz 
74−*.tbz2 
75−*.tz 
76−*.deb 
77−*.rpm 
78−*.jar 
79−*.war 
80−*.ear 
81−*.sar 
82−*.rar 
83−*.alz 
84−*.ace 
85−*.zoo 
86−*.cpio 
87−*.7z 
88−*.rz 
89−*.cab 
90−*.wim 
91−*.swm 
92−*.dwm 
93−*.esd 
94−*.jpg 
95−*.jpeg 
96−*.mjpg 
97−*.mjpeg 
98−*.gif 
99−*.bmp 
100−*.pbm 
101−*.pgm 
102−*.ppm 
103−*.tga 
104−*.xbm 
105−*.xpm 
106−*.tif 
107−*.tiff 
108−*.png 
109−*.svg 
110−*.svgz 
111−*.mng 
112−*.pcx 
113−*.mov 
114−*.mpg 
115−*.mpeg 
116−*.m2v 
117−*.mkv 
118−*.webm 
119−*.ogm 
120−*.mp4 
121−*.m4v 
122−*.mp4v 
123−*.vob 
124−*.qt 
125−*.nuv 
126−*.wmv 
127−*.asf 
128−*.rm 
129−*.rmvb 
130−*.flc 
131−*.avi 
132−*.fli 
133−*.flv 
134−*.gl 
135−*.dl 
136−*.xcf 
137−*.xwd 
138−*.yuv 
139−*.cgm 
140−*.emf 
141−*.ogv 
142−*.ogx 
143−*.aac 
144−*.au 
145−*.flac 
146−*.m4a 
147−*.mid 
148−*.midi 
149−*.mka 
150−*.mp3 
151−*.mpc 
152−*.ogg 
153−*.ra 
154−*.wav 
155−*.oga 
156−*.opus 
157−*.spx 
158−*.xspf 
159−*.pdf 
160−*.nix 
5+ex
6+*kritadisplayrc 
7+*.gtkrc-2.0 
8+*bspwmrc 
9+*webpack 󰜫
10+*tsconfig.json 
11+*.vimrc 
12+*gemfile$ 
13+*xmobarrc 
14+*avif 
15+*fp-info-cache 
16+*.zshrc 
17+*robots.txt 󰚩
18+*dockerfile 󰡨
19+*.git-blame-ignore-revs 
20+*.nvmrc 
21+*hyprpaper.conf 
22+*.prettierignore 
23+*rakefile 
24+*code_of_conduct 
25+*cmakelists.txt 
26+*.env 
27+*copying.lesser 
28+*readme 󰂺
29+*settings.gradle 
30+*gruntfile.coffee 
31+*.eslintignore 
32+*kalgebrarc 
33+*kdenliverc 
34+*.prettierrc.cjs 
35+*cantorrc 
36+*rmd 
37+*vagrantfile$ 
38+*.Xauthority 
39+*prettier.config.ts 
40+*node_modules 
41+*.prettierrc.toml 
42+*build.zig.zon 
43+*.ds_store 
44+*PKGBUILD 
45+*.prettierrc 
46+*.bash_profile 
47+*.npmignore 
48+*.mailmap 󰊢
49+*.codespellrc 󰓆
50+*svelte.config.js 
51+*eslint.config.ts 
52+*config 
53+*.gitlab-ci.yml 
54+*.gitconfig 
55+*_gvimrc 
56+*.xinitrc 
57+*checkhealth 󰓙
58+*sxhkdrc 
59+*.bashrc 
60+*tailwind.config.mjs 󱏿
61+*ext_typoscript_setup.txt 
62+*commitlint.config.ts 󰜘
63+*py.typed 
64+*.nanorc 
65+*commit_editmsg 
66+*.luaurc 
67+*fp-lib-table 
68+*.editorconfig 
69+*justfile 
70+*kdeglobals 
71+*license.md 
72+*.clang-format 
73+*docker-compose.yaml 󰡨
74+*copying 
75+*go.mod 
76+*lxqt.conf 
77+*brewfile 
78+*gulpfile.coffee 
79+*.dockerignore 󰡨
80+*.settings.json 
81+*tailwind.config.js 󱏿
82+*.clang-tidy 
83+*.gvimrc 
84+*nuxt.config.cjs 󱄆
85+*xsettingsd.conf 
86+*nuxt.config.js 󱄆
87+*eslint.config.cjs 
88+*sym-lib-table 
89+*.condarc 
90+*xmonad.hs 
91+*tmux.conf 
92+*xmobarrc.hs 
93+*.prettierrc.yaml 
94+*.pre-commit-config.yaml 󰛢
95+*i3blocks.conf 
96+*xorg.conf 
97+*.zshenv 
98+*vlcrc 󰕼
99+*license 
100+*unlicense 
101+*tmux.conf.local 
102+*.SRCINFO 󰣇
103+*tailwind.config.ts 󱏿
104+*security.md 󰒃
105+*security 󰒃
106+*.eslintrc 
107+*gradle.properties 
108+*code_of_conduct.md 
109+*PrusaSlicerGcodeViewer.ini 
110+*PrusaSlicer.ini 
111+*procfile 
112+*mpv.conf 
113+*.prettierrc.json5 
114+*i3status.conf 
115+*prettier.config.mjs 
116+*.pylintrc 
117+*prettier.config.cjs 
118+*.luacheckrc 
119+*containerfile 󰡨
120+*eslint.config.mjs 
121+*gruntfile.js 
122+*bun.lockb 
123+*.gitattributes 
124+*gruntfile.ts 
125+*pom.xml 
126+*favicon.ico 
127+*package-lock.json 
128+*build 
129+*package.json 
130+*nuxt.config.ts 󱄆
131+*nuxt.config.mjs 󱄆
132+*mix.lock 
133+*makefile 
134+*gulpfile.js 
135+*lxde-rc.xml 
136+*kritarc 
137+*gtkrc 
138+*ionic.config.json 
139+*.prettierrc.mjs 
140+*.prettierrc.yml 
141+*.npmrc 
142+*weston.ini 
143+*gulpfile.babel.js 
144+*i18n.config.ts 󰗊
145+*commitlint.config.js 󰜘
146+*.gitmodules 
147+*gradle-wrapper.properties 
148+*hypridle.conf 
149+*vercel.json ▲
150+*hyprlock.conf 
151+*go.sum 
152+*kdenlive-layoutsrc 
153+*gruntfile.babel.js 
154+*compose.yml 󰡨
155+*i18n.config.js 󰗊
156+*readme.md 󰂺
157+*gradlew 
158+*go.work 
159+*gulpfile.ts 
160+*gnumakefile 
161+*FreeCAD.conf 
162+*compose.yaml 󰡨
163+*eslint.config.js 
164+*hyprland.conf 
165+*docker-compose.yml 󰡨
166+*groovy 
167+*QtProject.conf 
168+*platformio.ini 
169+*build.gradle 
170+*.nuxtrc 󱄆
171+*_vimrc 
172+*.zprofile 
173+*.xsession 
174+*prettier.config.js 
175+*.babelrc 
176+*workspace 
177+*.prettierrc.json 
178+*.prettierrc.js 
179+*.Xresources 
180+*.gitignore 
181+*.justfile 
182+*.otf 
183+*.import 
184+*.krz 
185+*.adb 
186+*.ttf 
187+*.webpack 󰜫
188+*.dart 
189+*.vsh 
190+*.doc 󰈬
191+*.zsh 
192+*.ex 
193+*.hx 
194+*.fodt 
195+*.mojo 
196+*.templ 
197+*.nix 
198+*.cshtml 󱦗
199+*.fish 
200+*.ply 󰆧
201+*.sldprt 󰻫
202+*.gemspec 
203+*.mjs 
204+*.csh 
205+*.cmake 
206+*.fodp 
207+*.vi 
208+*.msf 
209+*.blp 󰺾
210+*.less 
211+*.sh 
212+*.odg 
213+*.mint 󰌪
214+*.dll 
215+*.odf 
216+*.sqlite3 
217+*.Dockerfile 󰡨
218+*.ksh 
219+*.rmd 
220+*.wv 
221+*.xml 󰗀
222+*.markdown 
223+*.qml 
224+*.3gp 
225+*.pxi 
226+*.flac 
227+*.gpr 
228+*.huff 󰡘
229+*.json 
230+*.gv 󱁉
231+*.bmp 
232+*.lock 
233+*.sha384 󰕥
234+*.cobol ⚙
235+*.cob ⚙
236+*.java 
237+*.cjs 
238+*.qm 
239+*.ebuild 
240+*.mustache 
241+*.terminal 
242+*.ejs 
243+*.brep 󰻫
244+*.rar 
245+*.gradle 
246+*.gnumakefile 
247+*.applescript 
248+*.elm 
249+*.ebook 
250+*.kra 
251+*.tf 
252+*.xls 󰈛
253+*.fnl 
254+*.kdbx 
255+*.kicad_pcb 
256+*.cfg 
257+*.ape 
258+*.org 
259+*.yml 
260+*.swift 
261+*.eln 
262+*.sol 
263+*.awk 
264+*.7z 
265+*.apl ⍝
266+*.epp 
267+*.app 
268+*.dot 󱁉
269+*.kpp 
270+*.eot 
271+*.hpp 
272+*.spec.tsx 
273+*.hurl 
274+*.cxxm 
275+*.c 
276+*.fcmacro 
277+*.sass 
278+*.yaml 
279+*.xz 
280+*.material 󰔉
281+*.json5 
282+*.signature λ
283+*.3mf 󰆧
284+*.jpg 
285+*.xpi 
286+*.fcmat 
287+*.pot 
288+*.bin 
289+*.xlsx 󰈛
290+*.aac 
291+*.kicad_sym 
292+*.xcstrings 
293+*.lff 
294+*.xcf 
295+*.azcli 
296+*.license 
297+*.jsonc 
298+*.xaml 󰙳
299+*.md5 󰕥
300+*.xm 
301+*.sln 
302+*.jl 
303+*.ml 
304+*.http 
305+*.x 
306+*.wvc 
307+*.wrz 󰆧
308+*.csproj 󰪮
309+*.wrl 󰆧
310+*.wma 
311+*.woff2 
312+*.woff 
313+*.tscn 
314+*.webmanifest 
315+*.webm 
316+*.fcbak 
317+*.log 󰌱
318+*.wav 
319+*.wasm 
320+*.styl 
321+*.gif 
322+*.resi 
323+*.aiff 
324+*.sha256 󰕥
325+*.igs 󰻫
326+*.vsix 
327+*.vim 
328+*.diff 
329+*.drl 
330+*.erl 
331+*.vhdl 󰍛
332+*.🔥 
333+*.hrl 
334+*.fsi 
335+*.mm 
336+*.bz 
337+*.vh 󰍛
338+*.kdb 
339+*.gz 
340+*.cpp 
341+*.ui 
342+*.txt 󰈙
343+*.spec.ts 
344+*.ccm 
345+*.typoscript 
346+*.typ 
347+*.txz 
348+*.test.ts 
349+*.tsx 
350+*.mk 
351+*.webp 
352+*.opus 
353+*.bicep 
354+*.ts 
355+*.tres 
356+*.torrent 
357+*.cxx 
358+*.iso 
359+*.ixx 
360+*.hxx 
361+*.gql 
362+*.tmux 
363+*.ini 
364+*.m3u8 󰲹
365+*.image 
366+*.tfvars 
367+*.tex 
368+*.cbl ⚙
369+*.flc 
370+*.elc 
371+*.test.tsx 
372+*.twig 
373+*.sql 
374+*.test.jsx 
375+*.htm 
376+*.gcode 󰐫
377+*.test.js 
378+*.ino 
379+*.tcl 󰛓
380+*.cljs 
381+*.tsconfig 
382+*.img 
383+*.t 
384+*.fcstd1 
385+*.out 
386+*.jsx 
387+*.bash 
388+*.edn 
389+*.rss 
390+*.flf 
391+*.cache 
392+*.sbt 
393+*.cppm 
394+*.svelte 
395+*.mo ∞
396+*.sv 󰍛
397+*.ko 
398+*.suo 
399+*.sldasm 󰻫
400+*.icalendar 
401+*.go 
402+*.sublime 
403+*.stl 󰆧
404+*.mobi 
405+*.graphql 
406+*.m3u 󰲹
407+*.cpy ⚙
408+*.kdenlive 
409+*.pyo 
410+*.po 
411+*.scala 
412+*.exs 
413+*.odp 
414+*.dump 
415+*.stp 󰻫
416+*.step 󰻫
417+*.ste 󰻫
418+*.aif 
419+*.strings 
420+*.cp 
421+*.fsscript 
422+*.mli 
423+*.bak 󰁯
424+*.ssa 󰨖
425+*.toml 
426+*.makefile 
427+*.php 
428+*.zst 
429+*.spec.jsx 
430+*.kbx 󰯄
431+*.fbx 󰆧
432+*.blend 󰂫
433+*.ifc 󰻫
434+*.spec.js 
435+*.so 
436+*.desktop 
437+*.sml λ
438+*.slvs 󰻫
439+*.pp 
440+*.ps1 󰨊
441+*.dropbox 
442+*.kicad_mod 
443+*.bat 
444+*.slim 
445+*.skp 󰻫
446+*.css 
447+*.xul 
448+*.ige 󰻫
449+*.glb 
450+*.ppt 󰈧
451+*.sha512 󰕥
452+*.ics 
453+*.mdx 
454+*.sha1 󰕥
455+*.f3d 󰻫
456+*.ass 󰨖
457+*.godot 
458+*.ifb 
459+*.cson 
460+*.lib 
461+*.luac 
462+*.heex 
463+*.scm 󰘧
464+*.psd1 󰨊
465+*.sc 
466+*.scad 
467+*.kts 
468+*.svh 󰍛
469+*.mts 
470+*.nfo 
471+*.pck 
472+*.rproj 󰗆
473+*.rlib 
474+*.cljd 
475+*.ods 
476+*.res 
477+*.apk 
478+*.haml 
479+*.d.ts 
480+*.razor 󱦘
481+*.rake 
482+*.patch 
483+*.cuh 
484+*.d 
485+*.query 
486+*.psb 
487+*.nu >
488+*.mov 
489+*.lrc 󰨖
490+*.pyx 
491+*.pyw 
492+*.cu 
493+*.bazel 
494+*.obj 󰆧
495+*.pyi 
496+*.pyd 
497+*.exe 
498+*.pyc 
499+*.fctb 
500+*.part 
501+*.blade.php 
502+*.git 
503+*.psd 
504+*.qss 
505+*.csv 
506+*.psm1 󰨊
507+*.dconf 
508+*.config.ru 
509+*.prisma 
510+*.conf 
511+*.clj 
512+*.o 
513+*.mp4 
514+*.cc 
515+*.kicad_prl 
516+*.bz3 
517+*.asc 󰦝
518+*.png 
519+*.android 
520+*.pm 
521+*.h 
522+*.pls 󰲹
523+*.ipynb 
524+*.pl 
525+*.ads 
526+*.sqlite 
527+*.pdf 
528+*.pcm 
529+*.ico 
530+*.a 
531+*.R 󰟔
532+*.ogg 
533+*.pxd 
534+*.kdenlivetitle 
535+*.jxl 
536+*.nswag 
537+*.nim 
538+*.bqn ⎉
539+*.cts 
540+*.fcparam 
541+*.rs 
542+*.mpp 
543+*.fdmdownload 
544+*.pptx 󰈧
545+*.jpeg 
546+*.bib 󱉟
547+*.vhd 󰍛
548+*.m 
549+*.js 
550+*.eex 
551+*.tbc 󰛓
552+*.astro 
553+*.sha224 󰕥
554+*.xcplayground 
555+*.el 
556+*.m4v 
557+*.m4a 
558+*.cs 󰌛
559+*.hs 
560+*.tgz 
561+*.fs 
562+*.luau 
563+*.dxf 󰻫
564+*.download 
565+*.cast 
566+*.qrc 
567+*.lua 
568+*.lhs 
569+*.md 
570+*.leex 
571+*.ai 
572+*.lck 
573+*.kt 
574+*.bicepparam 
575+*.hex 
576+*.zig 
577+*.bzl 
578+*.cljc 
579+*.kicad_dru 
580+*.fctl 
581+*.f# 
582+*.odt 
583+*.conda 
584+*.vala 
585+*.erb 
586+*.mp3 
587+*.bz2 
588+*.coffee 
589+*.cr 
590+*.f90 󱈚
591+*.jwmrc 
592+*.c++ 
593+*.fcscript 
594+*.fods 
595+*.cue 󰲹
596+*.srt 󰨖
597+*.info 
598+*.hh 
599+*.sig λ
600+*.html 
601+*.iges 󰻫
602+*.kicad_wks 
603+*.hbs 
604+*.fcstd 
605+*.gresource 
606+*.sub 󰨖
607+*.ical 
608+*.crdownload 
609+*.pub 󰷖
610+*.vue 
611+*.gd 
612+*.fsx 
613+*.mkv 
614+*.py 
615+*.kicad_sch 
616+*.epub 
617+*.env 
618+*.magnet 
619+*.elf 
620+*.fodg 
621+*.svg 󰜡
622+*.dwg 󰻫
623+*.docx 󰈬
624+*.pro 
625+*.db 
626+*.rb 
627+*.r 󰟔
628+*.scss 
629+*.cow 󰆚
630+*.gleam 
631+*.v 󰍛
632+*.kicad_pro 
633+*.liquid 
634+*.zip 
M .config/lf/lfrc View
@@ -14,26 +14,31 @@ set autoquit true
1414 cmd open ${{
1515 case $(file --mime-type "$(readlink -f $f)" -b) in
1616 application/vnd.openxmlformats-officedocument.spreadsheetml.sheet) localc $fx ;;
17− image/vnd.djvu|application/pdf|application/octet-stream|application/postscript) setsid -f zathura $fx >/dev/null 2>&1 ;;
18− text/*|application/json|inode/x-empty) $EDITOR $fx;;
19− text/*|application/x-subrip) $EDITOR $fx;;
17+ image/vnd.djvu|application/pdf|application/postscript) setsid -f zathura $fx >/dev/null 2>&1 ;;
18+ text/*|application/json|inode/x-empty|application/x-subrip) $EDITOR $fx;;
2019 image/x-xcf) setsid -f gimp $f >/dev/null 2>&1 ;;
2120 image/svg+xml) display -- $f ;;
22− image/*) rotdir $f | grep -i "\.\(png\|jpg\|jxl\|jpeg\|gif\|webp\|avif\|tif\|ico\)\(_large\)*$" |
21+ image/*) rotdir $f | grep -i "\.\(png\|jpg\|jpeg\|gif\|webp\|avif\|tif\|ico\)\(_large\)*$" |
2322 setsid -f nsxiv -aio 2>/dev/null | while read -r file; do
2423 [ -z "$file" ] && continue
2524 lf -remote "send select \"$file\""
2625 lf -remote "send toggle"
2726 done &
2827 ;;
29− audio/*) mpv --audio-display=no $f ;;
28+ audio/*|video/x-ms-asf) mpv --audio-display=no $f ;;
3029 video/*) setsid -f mpv $f -quiet >/dev/null 2>&1 ;;
31− application/pdf|application/vnd*|application/epub*) setsid -f zathura $fx >/dev/null 2>&1 ;;
30+ application/pdf|application/vnd.djvu|application/epub*) setsid -f zathura $fx >/dev/null 2>&1 ;;
3231 application/pgp-encrypted) $EDITOR $fx ;;
33− *) for f in $fx; do setsid -f $OPENER $f >/dev/null 2>&1; done;;
32+ application/vnd.openxmlformats-officedocument.wordprocessingml.document|application/vnd.oasis.opendocument.text|application/vnd.openxmlformats-officedocument.spreadsheetml.sheet|application/vnd.oasis.opendocument.spreadsheet|application/vnd.oasis.opendocument.spreadsheet-template|application/vnd.openxmlformats-officedocument.presentationml.presentation|application/vnd.oasis.opendocument.presentation-template|application/vnd.oasis.opendocument.presentation|application/vnd.ms-powerpoint|application/vnd.oasis.opendocument.graphics|application/vnd.oasis.opendocument.graphics-template|application/vnd.oasis.opendocument.formula|application/vnd.oasis.opendocument.database) setsid -f libreoffice $fx >/dev/null 2>&1 ;;
33+ application/octet-stream) case ${f##*.} in
34+ doc|docx|xls|xlsx|odt|ppt|pptx) setsid -f libreoffice $fx >/dev/null 2>&1 ;;
35+ ghw) setsid -f gtkwave $f >/dev/null 2>&1 ;;
36+ ts) setsid -f mpv $f -quiet >/dev/null 2>&1 ;;
37+ *) setsid -f zathura $fx >/dev/null 2>&1 ;;
38+ esac ;;
39+ *) for f in $fx; do setsid -f $OPENER $f >/dev/null 2>&1; done;;
3440 esac
3541 }}
36−
3742 cmd mkdir $mkdir -p "$(echo $* | tr ' ' '\ ')"
3843
3944 cmd extract ${{