thimc / vifmimg

Image previews for Vifm (vi file manager) using Überzug
GNU General Public License v3.0
242 stars 26 forks source link

For me don't work. #48

Open seriiserii825 opened 1 year ago

seriiserii825 commented 1 year ago

Xubuntu 22.04 Copied vifmimg and vifmrun in to ~/.local/bin map. Added rights to files.

sudo chmod -R ~/.local/bin

In vifm added fileviewer code from the documentation.

    fileviewer *.pdf
        \ vifmimg pdf %px %py %pw %ph %c
        \ %pc
        \ vifmimg clear

    fileviewer *.djvu
        \ vifmimg djvu %px %py %pw %ph %c
        \ %pc
        \ vifmimg clear

    fileviewer *.epub
        \ vifmimg epub %px %py %pw %ph %c
        \ %pc
        \ vifmimg clear

    fileviewer <video/*>
        \ vifmimg video %px %py %pw %ph %c
        \ %pc
        \ vifmimg clear

    fileviewer <image/*>
        \ vifmimg draw %px %py %pw %ph %c
        \ %pc
        \ vifmimg clear

    fileviewer <audio/*>
        \ vifmimg audio %px %py %pw %ph %c
        \ %pc
        \ vifmimg clear

    fileviewer <font/*>
        \ vifmimg font %px %py %pw %ph %c
        \ %pc
        \ vifmimg clear

Installed ueberzurg from here

https://software.opensuse.org/download.html?project=home%3Ajustkidding&package=ueberzugpp

Added scripts to PATH in zshrc

LOCAL_BIN_SCRIPTS="/home/serii/.local/bin/:${PATH}"
CARGO="/home/serii/.cargo/bin/:$PATH"
PATH=$LOCAL_BIN_SCRIPTS:$CARGO
export PATH;

But image preview don't work.