Git Product home page Git Product logo

lfimg's Introduction

Image preview support for lf (list files) using Überzug

image

This set of scripts is used along lf to generate image previews and much like vifmimg it is able to handle image, video and ebook previews.

When a SSH-connection has been established, chafa will be used instead.

Prerequisites

Besides lf and Überzug you will need to install the following packages:

  • ffmpegthumbnailer
  • ImageMagick
  • poppler
  • epub-thumbnailer
  • wkhtmltopdf
  • bat (optional - color highlight for text files)
  • chafa (optional - for image preview over SSH or inside Wayland session)
  • unzip (optional - for .zip and .jar files)
  • 7z (optional - for .7z files)
  • unrar (optional - for .rar files)
  • catdoc (optional - for .doc files)
  • docx2txt (optional - for .docx files)
  • odt2txt (optional - for .odt and *.ods files)
  • gnumeric (optional - for .xls and .xlsx files)
  • exiftool (optional - for music files)
  • iso-info (optional - for .iso files)
  • transmission (optional - for .torrent files)
  • mcomix (optional - for .cbz and .cbr files)

Installation

In the project directory you can run the following command:

make install

To install this to your system, or you can do it manually by following the guide below:

  1. Extract the following files: cleaner, preview to ~/.config/lf/.
  2. Extract lfrun to a directory that is in your $PATH variable (such as /usr/bin).
  3. Edit your ~/.config/lf/lfrc file and add the following lines:
set previewer ~/.config/lf/preview
set cleaner ~/.config/lf/cleaner
  1. In order to launch lf with image preview support from now on, you will need to use the supplied lfrun script.

I recommend that you make an alias in your shell that points to lfrun.

Credits

  • lf
  • Seebye's Überzug
  • Brodie's initial preview script which I used as a template for handling the miscellaneous filetypes that this script also handles.

lfimg's People

Contributors

aeblyve avatar alannssantos avatar andonome avatar cbeauhilton avatar dotlambda avatar imgbotapp avatar mrishu avatar mvrozanti avatar rafcon-dev avatar roachsinai avatar role92 avatar simonlord avatar sinono3 avatar thimc avatar xevnar avatar xphyro avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.