Welcome to Vifm Q&A, where you can ask questions about Vifm usage. Registration is optional, anonymous posts are moderated. GitHub or Google logins are enabled.

Vifm + Ueberzug

0 votes
asked May 29 in vifm by anonymous

Hi all, i recently found that its possible to make vifm show preview of currently pointed file with Ueberzug

So i installed it, tried this approach and it didn't work in a way that vifm does now show any images. Firstly i created .scripts/ folder in home directory, added it to $PATH, then throwed vifmimg and vifmrun in it. No luck

Then i downloaded scripts from DistroTube repository (after watching this video) and again -- no success in making previews work.

P.S I tried moving vifmimg and vifmrun to .config/vifm/scripts/ both together and separately

commented May 29 by xaizek
edited May 30 by xaizek

Have you added corresponding fileviewer commands to your vifmrc, made scripts executable and start vifm by running vifmrun? Also, does Ueberzug work for you outside of vifm?

commented May 30 by anonymous

Yes, i did everything as manuals said.

  • ls on .scripts :

  • My scripts entrails

  • Ueberzug is also working

commented May 30 by xaizek

Does :fileviewer img.png run inside vifm lists vifmimg at the top of the list?

commented May 30 by anonymous

Vifm says No viewers match img.png

But i have this lines in ~/.config/vifm/vifmrc

P.S Also i have vifmrc file in ~/.vifm/ folder, and then i changed it to look like on the picture, vifm began to display string from vifmrc file. After i hit enter it returned to normal menu

commented May 30 by xaizek

Delete ~/.vifm/ if you don't use it or start using it. It has higher priority than ~/.config/vifm/. With modified ~/.vifm/vifmrc you probably can view images already (if using wrong configuration file was the only issue).

commented May 30 by anonymous

Thank you! That was mainly the issue. But previews does not change alongside pointer change (is this intended?). Also gif launch freezes vifm and after each e press i get

         File exploring 
      Nothing to explore 
    Press Return to continue
commented May 30 by xaizek

But previews does not change alongside pointer change

They should if you're using :view.

Nothing to explore

I think this is fixed in the development version. To work around it, you can try adding echo ' ' to vifmimg.

Also gif launch freezes vifm

I see sleep .07in the script, so I guess this is how it works. You can hit Ctrl-C to abort the preview.

commented May 30 by anonymous

Thank you very much! I'l try

Your answer

Preview

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
Please answer the question:
To avoid this verification in future, please log in or register.
If you would like to make a bug report or feature request consider using GitHub, SourceForge or e-mail. Posting such things here is acceptable, but this is not a perfect place for them.
...