Code Monkey home page Code Monkey logo

Comments (15)

JustSimplyKyle avatar JustSimplyKyle commented on May 28, 2024 1

Wait... I just forgot to restart swww after my upgrade. Sorry for the confusion!

from swww.

JustSimplyKyle avatar JustSimplyKyle commented on May 28, 2024 1

Thanks for the immediate fix!

from swww.

JustSimplyKyle avatar JustSimplyKyle commented on May 28, 2024

The current workaround is to first save it to a temp file, load swww img, and then removes the temp file

from swww.

LGFae avatar LGFae commented on May 28, 2024

This should be pretty doable, actually. Though it will create a problem where swww query won't know the name of the image (since it uses the file's name for that). So it would answer something like: currently displaying "stdin". Would that be fine?

from swww.

JustSimplyKyle avatar JustSimplyKyle commented on May 28, 2024

Perfectly fine!

from swww.

LGFae avatar LGFae commented on May 28, 2024

My apologies, I realized that this is actually harder than I initially thought. This is because what we send to the daemon is not the image file, but the image's filename. This means that, currently, in order to read a image, it needs to exist somewhere in the file system. I might be able to do something using temporary files, but, again, this is more complicated than what I had fist envisioned.

from swww.

LGFae avatar LGFae commented on May 28, 2024

Alright. The only limitation is that #62 will not animate any gifs you send in. I think I am going to keep it that way, since I don't really like the idea of piping giant gifs through stdin into the program.

from swww.

LGFae avatar LGFae commented on May 28, 2024

I decided to close like this for now, if anyone reading this would like to read animated gifs from stdin, please open another issue and I will get to it.

from swww.

JustSimplyKyle avatar JustSimplyKyle commented on May 28, 2024

org-cat test.png | swww img -o HDMI-A-1 -(error msg Error: "Failed to serialize request: io error: Broken pipe (os error 32)")
Why would this fail?
org-cat test.png | imv -
This however works.

from swww.

LGFae avatar LGFae commented on May 28, 2024

it shouldn't, specially not with that error.
Thanks for testing this!

Re-openning.

from swww.

LGFae avatar LGFae commented on May 28, 2024

Now, we have a problem: I can't seem to be able to reproduce this...

Can you maybe give some more details? Do you literally just swww init and then try doing that?

from swww.

JustSimplyKyle avatar JustSimplyKyle commented on May 28, 2024

this seem to be broken on the latest git.
org-cat /tmp/out.png | swww img - this doesn't work

from swww.

JustSimplyKyle avatar JustSimplyKyle commented on May 28, 2024

image
This is the faulty commit. I wonder if it's possible to make these kind of stuff in tests.

from swww.

LGFae avatar LGFae commented on May 28, 2024

Ah yes, this is because we are trying to canonicalize all paths, but '-' is not a valid path, is it?

from swww.

LGFae avatar LGFae commented on May 28, 2024

I am fixing it; added a new test too to make sure it doesn't happen again

from swww.

Related Issues (20)

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.