Then I thought about how I could apply a gradient effect along the bar graph, like you can get in a regular conkyrc, and that wasn't too hard either. So now the script can output graphs like this:
![](http://1.bp.blogspot.com/_bEV68MpI_n4/THGPEmUvIrI/AAAAAAAAAKs/18vIaBdrHK4/s400/2010-08-22--1282495584_1440x900_scrot.png)
The code to do this has been posted on my original crunchbang linux forum post.
Alternate graphs.
![](http://3.bp.blogspot.com/_bEV68MpI_n4/S4QAVS7HXnI/AAAAAAAAAGs/tRKy-wZ3Fbo/s320/2010-02-21--1266772220_1440x900_scrot.png)
The standard graph outputs from conky are rather uninspiring, so thought I would try and put together some alternatives. The above screenshot is displaying cpu usage over time. Usage is displayed as both a negative and positive value at each point, so you get this kind of "waveform".
You can get the code on the crunchbanglinux forum here.
In the scrip there is a setting that can produce 3 types of graph, the up and down as above, only up or only down as below.
![](http://4.bp.blogspot.com/_bEV68MpI_n4/S4QBejlrlPI/AAAAAAAAAG0/7V9-xDkWayk/s320/2010-02-21--1266778449_1440x900_scrot.png)
Another improvement over the regular graphs is that you can change which direction the graph moves in.
Other configurables include:
- colors
- total height
- bar width
- spacing
- gridlines on or off
I am also working on a line graph, but have run into a few problems, and I havnt got it working how I want it yet. But it may not be possible to do what I want either :)
This is what it currently looks like:
![](http://1.bp.blogspot.com/_bEV68MpI_n4/S4QCegEoXSI/AAAAAAAAAG8/edFiQzw-ar4/s320/2010-02-21--1266810392_1440x900_scrot.png)
I think this graph has a lot of potential however!
See subsequent blog entries for developments.
No comments:
Post a Comment