
Originally Posted by
Quarkrad
I've managed to create the following conky on my Desktop (attached) - but as you can see the bar graphs are too high. My guess is I've got to edit the /.conky/bargraph_small.lua file - I was hoping to find some settings for the vertical height (something like ${voffset 4})? Is there a setting in /.conky/bargraph_small.lua that will lower all the graphs? I have 4 cpus so I need to add cpu2 and cpu3 so not only do I need to lower all the graphs but to increase the gap between the processor bars and the HDD bars. Any advice appreciated.
In the /.conky/bargraph_small.lua you will see sections similar to this for each "bar" this one is for CPU1 (what you are showing as CPU0). The x and y functions work the same was as "gap_x" (left-right) and "gap_y" (up-down) in your conky file.
Code:
{ --[ Graph for CPU1 ]--
name="cpu",
arg="cpu1",
max=100,
alarm=50,
alarm_colour={0xFF0000,0.72},
bg_colour={0xFFFFFF,0.25},
fg_colour={0x00FF00,0.55},
mid_colour={{0.45,0xFFFF00,0.70}},
x=82,y=156,
blocks=55,
space=1,
height=2,width=5,
angle=90,
smooth=true
},
Make CPU3 & 4 bars:
Code:
{ --[ Graph for CPU3 ]--
name="cpu",
arg="cpu3",
max=100,
alarm=50,
alarm_colour={0xFF0000,0.72},
bg_colour={0xFFFFFF,0.25},
fg_colour={0x00FF00,0.55},
mid_colour={{0.45,0xFFFF00,0.70}},
x=82,y=156,
blocks=55,
space=1,
height=2,width=5,
angle=90,
smooth=true
},
{ --[ Graph for CPU4 ]--
name="cpu",
arg="cpu4",
max=100,
alarm=50,
alarm_colour={0xFF0000,0.72},
bg_colour={0xFFFFFF,0.25},
fg_colour={0x00FF00,0.55},
mid_colour={{0.45,0xFFFF00,0.70}},
x=82,y=156,
blocks=55,
space=1,
height=2,width=5,
angle=90,
smooth=true
},
Put them between CPU2 and Memory
Code:
{ --[ Graph for CPU2 ]--
x=82,y=170,
{ --[ Graph for CPU3 ]--
x=82,y=156,
{ --[ Graph for CPU4 ]--
x=82,y=156,
{ --[ Graph for Memory ]--
Notice that they have the same values as CPU1 (copy/paste does that - I'm not good at typing)
So for CPU1 what you need to do in increase the "y=156" (in this case) until it drops down beside "CPU0 8%" (as seen in your screenshot).
BTW, CPU 0 readings are for an average of your CPU cores.
The headings you need to look for and the x-y values of which you need to adjust the y values:
Code:
{ --[ Graph for CPU1 ]--
x=82,y=156,
{ --[ Graph for CPU2 ]--
x=82,y=170,
{ --[ Graph for CPU3 ]--
x=82,y=156,
{ --[ Graph for CPU4 ]--
x=82,y=156,
{ --[ Graph for Memory ]--
x=15,y=220,
{ --[ Graph for Root ]--
x=15,y=267,
{ --[ Graph for Home ]--
x=15,y=295,
{ --[ Graph for Swap ]--
x=15,y=323,
Be careful to keep that trailing , at the end of the line.
Bookmarks