sindresorhus / Plash

💦 Make any website your Mac desktop wallpaper
https://sindresorhus.com/plash
MIT License
3.52k stars 130 forks source link

How can we interact with bash? #130

Open addlistener opened 1 year ago

addlistener commented 1 year ago

How can we interact with bash?

For use case example, how can we load cpu & mem usage like below?

image

This is achieved in https://tracesof.net/uebersicht/. I know plash is a pure website renderer but is it possible we support this by some kind of plugin mechanism?

sindresorhus commented 1 year ago

I may do this at some point, but probably not soon. It's complicated to implement and it's not a popular request.

The recommended solution for now is to run a local server to serve the required info.

addlistener commented 1 year ago

Is it possible that Plash implement some kinda command plugin/hooks to execute some commands?

It easier and we can manage the server you mentioned in Plash lifecycle.

sindresorhus commented 1 year ago

Is it possible that Plash implement some kinda command plugin/hooks to execute some commands?

That's what it would be and it's what's complicated to do. I will most likely have to create a helper app that has to be installed separately, since Plash is sandboxed and not allowed to execute external binaries.