petterreinholdtsen / battery-stats

Log battery charge (battery-stats-collector), show gnuplot graphs (battery-graph)
GNU General Public License v2.0
27 stars 13 forks source link

Save graph as image from command #37

Open jagjordi opened 1 year ago

jagjordi commented 1 year ago

Is there any way to save the graph as an image? As a flag to the battery-graph command?

petterreinholdtsen commented 1 year ago

[Jordi Altayó]

Is there any way to save the graph as an image? As a flag to the battery-graph command?

I would use my desktop screen save option available via the PrtSc key and grab a picture of the graph window.

-- Happy hacking Petter Reinholdtsen

jagjordi commented 1 year ago

I am aware its possible to print screen, but I want to include the picture as part of a script to display it in a yad popup window, so it needs to be as part of the gnuplot call

jagjordi commented 1 year ago

I saw that in the script battery-stats-graph-gnuplot there is some way to save a PNG, is that also available in the battery-graph command?

petterreinholdtsen commented 1 year ago

[Jordi Altayó]

I saw that in the script battery-stats-graph-gnuplot there is some way to save a PNG, is that also available in the battery-graph command?

I do not plan to implement such feature, but would be happy to accept a well written patch to support making pictures of the graph non-interactively.

-- Happy hacking Petter Reinholdtsen