Home

Awesome

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

image

lfimg is a repository that contains scripts that are used for generating image preview in lf.
If you want image preview support for vifm, head on over to vifmimg.

Prerequisites

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

The following packages are optional but if installed will provide more functionality to lfimg.

Installation

The preferred way of installing lfimg is running make:

make install

If you prefer to do it manually you will need to do the following:

  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 or ~/.local/bin).
  3. Edit your lfrc file and add the following lines:
set previewer ~/.config/lf/preview
set cleaner ~/.config/lf/cleaner

Make sure to adjust the previewer and cleaner paths to where you put those scripts in step 2. 4. In order to use lfimg you will need to start lf using the lfrun script.

I recommend that you make an alias in your shell that points to lfrun.
If you are using bash, append the following to your ~/.bashrc:

alias lf=lfrun

Credits