{"id":26383285,"url":"https://github.com/koonix/lfutils","last_synced_at":"2025-09-23T20:29:38.490Z","repository":{"id":39636732,"uuid":"374791714","full_name":"koonix/lfutils","owner":"koonix","description":"scripts and utilities for the lf file manager.","archived":false,"fork":false,"pushed_at":"2025-02-26T15:52:10.000Z","size":54,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-26T16:44:44.599Z","etag":null,"topics":["filemanager","lf","terminal"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koonix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-07T20:25:47.000Z","updated_at":"2025-02-26T15:52:14.000Z","dependencies_parsed_at":"2025-02-26T16:32:38.812Z","dependency_job_id":"742da360-4861-4bf4-a668-5d82e6730712","html_url":"https://github.com/koonix/lfutils","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koonix%2Flfutils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koonix%2Flfutils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koonix%2Flfutils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koonix%2Flfutils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koonix","download_url":"https://codeload.github.com/koonix/lfutils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243987700,"owners_count":20379583,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["filemanager","lf","terminal"],"created_at":"2025-03-17T06:33:48.591Z","updated_at":"2025-09-23T20:29:33.455Z","avatar_url":"https://github.com/koonix.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lfutils [Unmaintained 💀]\n\nUseful scripts for the lf file manager.\n\n* [Installation](#installation)\n* [Utilities](#utilities)\n  * [lfrun](#lfrun)\n  * [lfpreviewer, lfcleaner](#lfpreviewer-lfcleaner)\n  * [lfmount](#lfmount)\n  * [lfselect](#lfselect)\n* [Environment Variables](#environment-variables)\n  * [LF_BAT_OPTS](#lf_bat_opts)\n* [Dependencies](#dependencies)\n\nPlease take a look at the [dependencies](#dependencies)\nsection before using lfutils.\n\n## Installation\n\nThere is an AUR package for Archlinux users:\n\n```\nparu -S lfutils-git\n```\n\nOtherwise:\n\n```\ngit clone https://github.com/soystemd/lfutils.git\ncd lfutils\nsudo make install\n```\n\nOr just copy the scripts to a directory that's in yout PATH.\n\n## Utilities\n\n## lfrun\n\n`lfrun` is a wrapper script for running lf, which\ninitializes ueberzug for image previews.\n\n## lfpreviewer, lfcleaner\n\nFile previewer and cleaner scripts, for previewing files/media.\n\nAdd these lines to your lfrc:\n\n```\nset previewer lfpreviewer\nset cleaner lfcleaner\nset preview\n```\n\nAlso see the [LF_BAT_OPTS](#lf_bat_opts) section for configuring\ntext file preview settings.\n\n## lfmount\n\nMount and open archives. Archives are mounted read-only because\narchivemount's read-write mounting sucks.\n\nIf the `pass` environment variable is set, lfmount asks for a password.\n\nPut this in your lfrc:\n\n```\nmap [key] \u0026lfmount $f\n```\n\n## lfselect\n\nReads file names from stdin and selects them in lf.\nIf only one file is given, it only puts the cursor over the file.\n\nExamples:\n\n```\nsxiv -ao | lfselect\nprintf '%s\\n' *.jpg | lfselect\n```\n\n## Environment Variables\n\n## LF_BAT_OPTS\n\nlfpreviewer uses [bat](https://github.com/sharkdp/bat)\nfor text file previews, called with the options `-pf --number`, which enables\ncolorization and line numbers.\n\nHowever, you can specify your own bat options by setting the `LF_BAT_OPTS`\nenvironment variable.\n\nExample for `~/.bash_profile` or `~/.zprofile`:\n\n```\nexport BAT_THEME='gruvbox-dark'\nexport LF_BAT_OPTS='-f'\n```\n\n## Dependencies\n\nThe only hard dependency of lfutils is lf.\nAll the dependencies listed here are technically optional,\nand installing each of them will add a certain feature\nto lfutils.\n\nHowever, I recommend installing all of them,\nas they're pretty small, and you'll probably need most of them,\nif not all.\n\nArchlinux users can install all of these dependencies\n(except for binutils and transmission-cli)\nby installing the AUR package `lfutils-meta`:\n\n```\nparu -S lfutils-meta\n```\n\n- **archivemount**: Mounting and opening archives via lfmount\n- **[ueberzug](https://github.com/seebye/ueberzug)**: Image previews\n- **[chafa](https://github.com/hpjansson/chafa)**: Previewing images outside of a graphical environment\n- **[ffmpegthumbnailer](https://github.com/dirkvdb/ffmpegthumbnailer)**: Previewing video thumbnails\n- **[bat](https://github.com/sharkdp/bat)**: Previewing plain text and code\n- **atool**: Previewing archive contents (install [atool-git](https://github.com/solsticedhiver/atool)([aur](https://aur.archlinux.org/packages/atool-git)) for zstd support)\n- **mediainfo**: Previewing info about music/media files\n- **odt2txt**: Previewing OpenDocument files\n- **poppler**: Previewing PDF files\n- **gnome-epub-thumbnailer**: Previewing epub ebook covers\n- **docx2txt**: Previewing docx files\n- **catdoc**: Previewing Microsoft document files\n- **imagemagick**: Previewing svg files\n- **libcdio**: Previewing ISO files\n- **binutils**: Previewing object files\n- **transmission-cli**: Previewing .torrent files\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoonix%2Flfutils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoonix%2Flfutils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoonix%2Flfutils/lists"}