slavistan / lf-gadgets

A collection of useful and nifty use cases and configurations for lf.
GNU General Public License v3.0
132 stars 16 forks source link

Not working! #11

Closed frnogueira closed 2 years ago

frnogueira commented 2 years ago

Hi! lf-ueberzug only work in the git directory. When I put the files in /usr/bin, create the alias in .zshrc, the lf-ueberzug not using the lfrc file, and the previews not working. What the solution for this? Thanks!

slavistan commented 2 years ago

Hi! I suppose you want to use ueberzug previewes in addition to your existing lf configuration (because this lf-ueberzug gadget really is good for nothing but to demonstrate ueberzug previews). To achieve that you simply

Does this answer your question?

Skrib commented 2 years ago

I'm having a similar issue to op. I followed your instructions and added to the .zshrc, but no image previews still. I get this after closing lf

$ lf
[2] 4970 4971
removed '/tmp/lf-ueberzug-HI3Rw0/fifo'
removed directory '/tmp/lf-ueberzug-HI3Rw0'
$
[2]  + terminated  tail -f "$LF_UEBERZUG_TEMPDIR/fifo" |
       done        ueberzug layer --silent

Does this only work with specific terminals? I'm using suckless' st.

slavistan commented 2 years ago

Does this only work with specific terminals? I'm using suckless' st.

Hi @Skrib. It's supposed to be terminal-agnostic and I'm also using st.

Let's check a few other things (some of the answers can be deduced from the fact that you use st, but let's make sure we're on the same page :wink:)

Skrib commented 2 years ago

Thanks for the response, but I've got it working now.

I had to reinstall Linux because of some driver issues. When I tried implementing your first post in this thread again, I wasn't getting any errors, it just wasn't working. But commenting this line I had in lfrc fixed it: # Vars that depend on environmental variables $lf -remote "send $id set previewer ${XDG_CONFIG_HOME:-$HOME/.config}/lf/scope" I'm assuming the original errors were from my poor implementing of some other lf code. Sorry for the hassle and thanks agian! This works great now and is very useful.