battery-stats icon indicating copy to clipboard operation
battery-stats copied to clipboard

Save graph as image from command

Open jagjordi opened this issue 2 years ago • 4 comments

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

jagjordi avatar Jan 07 '23 00:01 jagjordi

[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

petterreinholdtsen avatar Jan 07 '23 08:01 petterreinholdtsen

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 avatar Jan 07 '23 10:01 jagjordi

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?

jagjordi avatar Jan 07 '23 10:01 jagjordi

[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

petterreinholdtsen avatar Jan 07 '23 12:01 petterreinholdtsen