You are not logged in.

#21 2016-03-21 23:01:28

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: some conky help please

OK, I found a lua script that has clock hands and RINGS, lot's of rings.
I'm going to modify it to look line the "brush_rings.lua" discussed here.

chicknfangz, you better be willing to help here ...  What partitions do you have on your computer that can be used to replace /media/DATA01 and DATA02?

This is what the new script looks like now (says it's a LinuxMint mod ... but found it in the orange forum):
2016_03_21_19_57_41_Scrot11.jpg


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#22 2016-03-21 23:25:38

chicknfangz
Member
Registered: 2016-03-19
Posts: 24

Re: some conky help please

OK thank you very much sector11 indeed i will help. If it ends up not being able to work then thats OK i will go with another conky guys. I will post my gparted partitions here for you Thank you for taking the time out to help me. Very much appreciate it

Offline

#23 2016-03-21 23:37:58

chicknfangz
Member
Registered: 2016-03-19
Posts: 24

Re: some conky help please

here is the gparted layout

odc1roM.png

and this is the fdisk layout.

Disk /dev/sda: 1000.2 GB, 1000204884992 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525166 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x555e48ff

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        4094  1953523711   976759809    5  Extended
/dev/sda5            4096  1648011263   824003584   83  Linux
/dev/sda6      1920759808  1953523711    16381952   82  Linux swap / Solaris
/dev/sda7      1648013312  1920757452   136372070+  83  Linux

If you need to know more let me know

Offline

#24 2016-03-22 00:54:55

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: some conky help please

Yea, I figured as much.  You won't be able to use the DATA01 and DATA02 rings as shown, they need to be mount points of partitions and you only have two partitions and /dev/sda5 (PointLinux) doesn't look like it's mounted with LinuxLite.

Two more questions,
1.  How you connect to the internet?  With eth0, wlan0 or something else (to get the up/down speeds)
2.  How many CPU's do you have?  The script only uses the average (CPU0) if you have a dual core we can use the DATA01/02 rings for CPU1 and CPU2


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#25 2016-03-22 01:40:37

chicknfangz
Member
Registered: 2016-03-19
Posts: 24

Re: some conky help please

Linux lite is what I'm on now. SO could i mnt point Linux to the one bar. I can install bunsenlabs also then can i mnt it to the other bar. I could mount them  would that work or Does it work like that or entirely different way

I connect to the Internet through Ethernet yes. But its not eth0 on Linux lite its p1p1

my cpu is i7 2600k 4 cores

Offline

#26 2016-03-22 01:56:39

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: some conky help please

OK, plp1 it is ... I use eth0 ...so when I tweak this, I'll use that with a comment line to change it to plp1 when you get it, like this:

    {
            name='upspeedf',
            arg='eth0',   -- change to plp1
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0xffff33,
            fg_alpha=0.3,
            x=400, y=440,
            radius=200,
            thickness=20,
            start_angle=140,
            end_angle=220
    },
    {
            name='downspeedf',
            arg='eth0',   -- change to plp1
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0xccff33,
            fg_alpha=0.3,
            x=400, y=470,
            radius=210,
            thickness=20,
            start_angle=140,
            end_angle=220
    },

Option for you:

Script already has cpu0 - the average of your four cores - I can split DATA01 into two arcs and ise the top for cpu1 and the bottom for cpu2, and the same for DATA02 - top for cpu3 and bottom for cpu4.  That way there is no need to install/mount other 'distros' (not really a good idea, IMHO) just to get a LUA script working.  You already have what you need to get this working  Just need to modify it to fit your system - not modify your system to fit the LUA script.

EDIT:

Linux lite is what I'm on now. SO could i mnt point Linux to the one bar. I can install bunsenlabs also then can i mnt it to the other bar. I could mount them  would that work or Does it work like that or entirely different way

Yes, you 'could' do that and mount them and use the mountpoint in the LUA script, but like I said, IMHO, mounting other distros just to get a bar in a lua script is not a good idea.
my /media/5 and media/10 partitions are "personal" data partitions, not distros.  smile
/dev/sda1 & 2 are #! Waldorf and /dev/sda6 and 7 are another BL install - not mounted by my daily use BL on /dev/sda8 and 9.
2016_03_21_23_11_54_Scrot11.jpg

g'night - off to bed.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#27 2016-03-22 02:29:05

chicknfangz
Member
Registered: 2016-03-19
Posts: 24

Re: some conky help please

Ok Thank you your recommendation seems most easiest way i agree with that i like it  smile

also sorry did i put an L in plp1 i meant its p1p1 not L. doesn't really matter tho i get what your doing anyway big_smile

How did you get your data drive marked DATA01. Is this a special drive i need or any external HDD drive work


Thank you

Offline

#28 2016-03-22 10:37:38

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: some conky help please

chicknfangz wrote:

...

How did you get your data drive marked DATA01. Is this a special drive i need or any external HDD drive work

Thank you

That is what the original poster of the original script had on his personal system. You are getting hung up on someone's individual partition names. Ignore whatever they used and use what you use.


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#29 2016-03-22 11:53:28

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: some conky help please

@chicknfangz  -  Like damo said you are getting hung up on these DATA01 and DATA02 partitions that are created by <username> on their own system when they set up the LUA script.  I have no DATA01 or 02 here I changed the script to use what I have here - same as the eth0 to p1p1 idea. (thanks for the plp1 to p1p1 update ... now noted in the code)

    {
            name='fs_used_perc',
            arg='/media/5', --changed from /media/DATA01
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0x3399cc,
            fg_alpha=0.8,
            x=380, y=400,
            radius=300,
            thickness=50,
            start_angle=220,
            end_angle=320
    },
    {
            name='fs_used_perc',
            arg='/media/10', --changed from /media/DATA02
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0xff4444,
            fg_alpha=0.8,
            x=420, y=400,
            radius=300,
            thickness=50,
            start_angle=40,
            end_angle=140
    },

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#30 2016-03-22 12:05:45

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: some conky help please

Another tweak in progress - changing the two outer ring segments for DATA01 and DATA02 to four ring segments for cpu1, cpu2, cpu3 and cpu4 (cpu4 not done yet)

    {
--            name='fs_used_perc',
--            arg='/media/5', --changed from /media/DATA01
            name='cpu',
            arg='cpu2', --changed from /media/DATA01
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0x339900,     -- colour green
            fg_alpha=0.8,
            x=380, y=400,
            radius=300,
            thickness=50,
            start_angle=220,
            end_angle=270      --320
    },
    {
            name='cpu',
            arg='cpu1', --new --colour is red
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0xff4444,     --0x339900,
            fg_alpha=0.8,
            x=380, y=400,
            radius=300,
            thickness=50,
            start_angle=270,   --220,
            end_angle=320
    },
    {
--            name='fs_used_perc',
--            arg='/media/10', --changed from /media/DATA02
            name='cpu',
            arg='cpu3', --changed from /media/DATA02
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0xff4444,
            fg_alpha=0.8,
            x=420, y=400,
            radius=300,
            thickness=50,
            start_angle=40,
            end_angle=90     --140
    },

2016_03_22_08_57_33_Scrot11.jpg
This whole thing is in a state of "being tweaked" so forget the coloured rings in the centre for now.

Also note I am commenting the code with the old settings and also the new stuff so when you het it you can see what you will need to tweak for your system.

This is also a learning experience for me as LUA and I mix like oil and water.  I badgered poor mrpeachy with a million LUA questions before 'some' things finally stuck.  His patience with me; I'm paying back now.

... and real life kick is - off to the veggie store - back later.  smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#31 2016-03-22 16:20:19

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: some conky help please

OK, it's done ... kind of.  I would like to give the guy that wrote the actual conky a lobotomy! The placing of the text with the ${voffset ...} commands is a nightmare.
2016_03_22_12_21_41_Scrot11.jpg
The LUA script I found and tweaked for this sill has the original code commented and the new code added to make it look like the conky you want.

If I did this right, it should be plug and play IF you change the path to the LUA script to reflect where you put it, because this will not work for you:

# — Lua Load — #
lua_load /media/5/conky/chicknfangz/chicknfangz-rings.lua
lua_draw_hook_pre clock_rings

OH one more that will not work:  Temperature:

${platform f71882fg.2560 temp 1}°C

check out: Using Sensors

The new LUA script, I called it: chicknfangz-rings.lua

--[[
Clock Rings by Linux Mint (2011) reEdited by despot77

This script draws percentage meters as rings, and also draws clock hands if
you want! It is fully customisable; all options are described in the script.
This script is based off a combination of my clock.lua script and my rings.lua
script.

IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation
fault if it tries to draw a ring straight away.

Search for: -- check chicknfangz update
-- it is no longer line 154

The if statement on line 145 uses a delay to make sure that this doesn't
happen. It calculates the length of the delay by the number of updates since
Conky started. Generally, a value of 5s is long enough, so if you update Conky
every 1s, use update_num>5 in that if statement (the default). If you only
update Conky every 2s, you should change it to update_num>3; conversely if you
update Conky every 0.5s, you should use update_num>10. ALSO, if you change
your Conky, is it best to use "killall conky; conky" to update it, otherwise
the update_num will not be reset and you will get an error.


To call this script in Conky, use the following (assuming that you save this
script to ~/scripts/rings.lua):
    lua_load ~/scripts/clock_rings.lua
    lua_draw_hook_pre clock_rings

Changelog:
+ v1.0 -- Original release (30.09.2009)
   v1.1p -- Jpope edit londonali1010 (05.10.2009)
*v 2011mint -- reEdit despot77 (18.02.2011)
*v 2.0 BL  (2016.03.22)
]]


settings_table = {
    {
        -- Edit this table to customise your rings.
        -- You can create more rings simply by adding more elements to settings_table.
        -- "name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
        name='time',
        -- "arg" is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, 'cpu0' would be the argument. If you would not use an argument in the Conky variable, use ''.
        arg='%I.%M', -- THIS IS THE HOURS RING!!!!!!!!!!
        -- "max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
        max=12,
        -- "bg_colour" is the colour of the base ring.
        bg_colour=0xffffff,
        -- "bg_alpha" is the alpha value of the base ring.
        bg_alpha=0.1,
        -- "fg_colour" is the colour of the indicator part of the ring.
        fg_colour=0x3399cc,
        -- "fg_alpha" is the alpha value of the indicator part of the ring.
        fg_alpha=0.2,
        -- "x" and "y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.
--        x=100, y=150,
        x=400, y=400,
        -- "radius" is the radius of the ring.
        radius=50,
        -- "thickness" is the thickness of the ring, centred around the radius.
        thickness=5,
        -- "start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
        start_angle=0,
        -- "end_angle" is the ending angle of the ring, in degrees, clockwise from top. Value can be either positive or negative, but must be larger than start_angle.
        end_angle=360
    },
--[[    {
        name='time',
        arg='%M.%S',
        max=60,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0xFF6600,
        fg_alpha=0.4,
        x=100, y=150,
        radius=56,
        thickness=5,
        start_angle=0,
        end_angle=360
    },  --]]
    {
            name='time',
            arg='%M.%S',
            max=60,
            bg_colour=0xffffff,
            bg_alpha=0.1,
            fg_colour=0x3399cc, --Minutes RING
            fg_alpha=0.4,
            x=400, y=400,
            radius=56,
            thickness=5,
            start_angle=0,
            end_angle=360
        },
--[[    {
        name='time',
        arg='%S',
        max=60,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0xFF6600,
        fg_alpha=0.6,
        x=100, y=150,
        radius=62,
        thickness=5,
        start_angle=0,
        end_angle=360
    },  --]]
        {
            name='time',
            arg='%S',
            max=60,
            bg_colour=0xffffff,
            bg_alpha=0.1,
            fg_colour=0x3399cc, -- Seconds ring
            fg_alpha=0.6,
            x=400, y=400,
            radius=62,
            thickness=5,
            start_angle=0,
            end_angle=360
        },
--[[    {
        name='time',
        arg='%d',
        max=31,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0xFF6600,
        fg_alpha=0.8,
        x=100, y=150,
        radius=70,
        thickness=5,
        start_angle=-90,
        end_angle=90
    },  --]]
        {
            name='time',
            arg='%d',
            max=31,
            bg_colour=0xffffff,
            bg_alpha=0.1,
            fg_colour=0x3399cc, -- Days RING
            fg_alpha=0.8,
            x=400, y=400,
            radius=70,
            thickness=5,
            start_angle=-90,
            end_angle=90
    },
--[[    {
        name='time',
        arg='%m',
        max=12,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0xFF6600,
        fg_alpha=1,
        x=100, y=150,
        radius=76,
        thickness=5,
        start_angle=-90,
        end_angle=90
    }, --]]
        {
            name='time',
            arg='%m',
            max=12,
            bg_colour=0xffffff,
            bg_alpha=0.1,
            fg_colour=0x3399cc, -- Months RING
            fg_alpha=1,
            x=400, y=400,
            radius=76,
            thickness=5,
            start_angle=-90,
            end_angle=90
        },
--[[    {
        name='cpu',
        arg='cpu0',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xFF6600,
        fg_alpha=0.8,
        x=50, y=300,
        radius=25,
        thickness=5,
        start_angle=-90,
        end_angle=180
    },   --]]
	    {
            name='cpu',
            arg='cpu0',
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0xffff00,
            fg_alpha=0.4,
            x=350, y=400,
            radius=200,
            thickness=50,
            start_angle=220,
            end_angle=320
    },
--[[    {
        name='memperc',
        arg='',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xFF6600,
        fg_alpha=0.8,
        x=75, y=350,
        radius=25,
        thickness=5,
        start_angle=-90,
        end_angle=180
    },   --]]
    {
            name='memperc',
            arg='',
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0x33ccff,
            fg_alpha=0.8,
            x=450, y=400,
            radius=200,
            thickness=50,
            start_angle=40,
            end_angle=140
    },
--[[    {
        name='swapperc',
        arg='',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xFF6600,
        fg_alpha=0.8,
        x=100, y=400,
        radius=25,
        thickness=5,
        start_angle=-90,
        end_angle=180
    },   --]]
    {
            name='swapperc',
            arg='',
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0x33ccff,
            fg_alpha=0.8,
            x=400, y=305,
            radius=200,
            thickness=20,
            start_angle=-40,
            end_angle=40
    },
--[[    {
        name='fs_used_perc',
        arg='/',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xFF6600,
        fg_alpha=0.8,
        x=125, y=450,
        radius=25,
        thickness=5,
        start_angle=-90,
        end_angle=180
    },  --]]
    {
            name='fs_used_perc',
            arg='/',
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0x3399cc,
            fg_alpha=0.3,
            x=400, y=350,
            radius=200,
            thickness=30,
            start_angle=-40,
            end_angle=40
    },
--[[        {
        name='downspeedf',
        arg='eth0',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x339900,
        fg_alpha=0.8,
        x=150, y=500,
        radius=25,
        thickness=4,
        start_angle=-90,
        end_angle=180
    },  --]]
    {
            name='upspeedf',
            arg='p1p1',
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0xffff33,
            fg_alpha=0.3,
            x=400, y=440,
            radius=200,
            thickness=20,
            start_angle=140,
            end_angle=220
    },
--[[        {
        name='upspeedf',
        arg='eth0',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xff6600,
        fg_alpha=0.8,
        x=150, y=500,
        radius=20,
        thickness=4,
        start_angle=-90,
        end_angle=180
    },   --]]
    {
            name='downspeedf',
            arg='p1p1',
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0xccff33,
            fg_alpha=0.3,
            x=400, y=470,
            radius=210,
            thickness=20,
            start_angle=140,
            end_angle=220
    },
    {
            name='cpu',
            arg='cpu1',
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0x339900,     -- colour green
            fg_alpha=0.8,
            x=380, y=400,
            radius=300,
            thickness=50,
            start_angle=220,
            end_angle=270      --320
    },
    {
            name='cpu',
            arg='cpu2',
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0xff4444,     --0x339900,
            fg_alpha=0.8,
            x=380, y=400,
            radius=300,
            thickness=50,
            start_angle=270,   --220,
            end_angle=320
    },
    {
            name='cpu',
            arg='cpu3', --changed from /media/DATA02
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0xff4444,
            fg_alpha=0.8,
            x=420, y=400,
            radius=300,
            thickness=50,
            start_angle=40,
            end_angle=90     --140
    },
    {
            name='cpu',
            arg='cpu0', --changed from /media/DATA02
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0x339900,     -- colour green --0xff4444,
            fg_alpha=0.8,
            x=420, y=400,
            radius=300,
            thickness=50,
            start_angle=90,     --40,
            end_angle=140
    },
}


-- Use these settings to define the origin and extent of your clock.
clock_r=65

-- "clock_x" and "clock_y" are the coordinates of the centre of the clock, in pixels, from the top left of the Conky window.
clock_x=400    --100
clock_y=400    --150

show_seconds=true

require 'cairo'

function rgb_to_r_g_b(colour,alpha)
    return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

function draw_ring(cr,t,pt)
    local w,h=conky_window.width,conky_window.height

    local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
    local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']

    local angle_0=sa*(2*math.pi/360)-math.pi/2
    local angle_f=ea*(2*math.pi/360)-math.pi/2
    local t_arc=t*(angle_f-angle_0)

    -- Draw background ring
    cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
    cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
    cairo_set_line_width(cr,ring_w)
    cairo_stroke(cr)

    -- Draw indicator ring
    cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
    cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
    cairo_stroke(cr)
end

function draw_clock_hands(cr,xc,yc)
    local secs,mins,hours,secs_arc,mins_arc,hours_arc
    local xh,yh,xm,ym,xs,ys

    secs=os.date("%S")
    mins=os.date("%M")
    hours=os.date("%I")

    secs_arc=(2*math.pi/60)*secs
    mins_arc=(2*math.pi/60)*mins+secs_arc/60
    hours_arc=(2*math.pi/12)*hours+mins_arc/12

    -- Draw hour hand
    xh=xc+0.7*clock_r*math.sin(hours_arc)
    yh=yc-0.7*clock_r*math.cos(hours_arc)
    cairo_move_to(cr,xc,yc)
    cairo_line_to(cr,xh,yh)

    cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
    cairo_set_line_width(cr,5)
    cairo_set_source_rgba(cr,0.0,0.3,0.5,1.0)
    cairo_stroke(cr)

    -- Draw minute hand

    xm=xc+clock_r*math.sin(mins_arc)
    ym=yc-clock_r*math.cos(mins_arc)
    cairo_move_to(cr,xc,yc)
    cairo_line_to(cr,xm,ym)

    cairo_set_line_width(cr,3)
    cairo_stroke(cr)

    -- Draw seconds hand

    if show_seconds then
        xs=xc+clock_r*math.sin(secs_arc)
        ys=yc-clock_r*math.cos(secs_arc)
        cairo_move_to(cr,xc,yc)
        cairo_line_to(cr,xs,ys)

        cairo_set_line_width(cr,1)
        cairo_stroke(cr)
    end
end


function conky_clock_rings()
    local function setup_rings(cr,pt)
        local str=''
        local value=0

        str=string.format('${%s %s}',pt['name'],pt['arg'])
        str=conky_parse(str)

        value=tonumber(str)
        pct=value/pt['max']

        draw_ring(cr,pct,pt)
    end

    -- Check that Conky has been running for at least 5s

    if conky_window==nil then return end
    local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)

    local cr=cairo_create(cs)

    local updates=conky_parse('${updates}')
    update_num=tonumber(updates)

-- check chicknfangz update
    if update_num>5 then
        for i in pairs(settings_table) do
            setup_rings(cr,settings_table[i])
        end
    end

    draw_clock_hands(cr,clock_x,clock_y)
end

and the conky: chicknfangz.conky

## pkill -xf "conky -q -c /media/5/conky/chicknfangz/chicknfangz.conky" &
## http://crunchbang.org/forums/viewtopic.php?pid=86752#p86752

# — Conky settings — #
#background yes
update_interval 1

cpu_avg_samples 2
net_avg_samples 2

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 1024
imlib_cache_size 0

# — Window specifications — #

own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorate,skip_taskbar,skip_pager,below,sticky

border_inner_margin 0
border_outer_margin 0

minimum_size 800 800
maximum_width 800

alignment mm
gap_x 0
gap_y 0

# — Graphics settings — #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# — Text settings — #
use_xft yes
xftfont Droid Sans:size=10
xftalpha 0.5

uppercase no

default_color 3E3E3E
color1 D23000

# — Lua Load — #
lua_load /media/5/conky/chicknfangz/chicknfangz-rings.lua
lua_draw_hook_pre clock_rings

TEXT
${color 3399FF}${font Droid Sans:size=16}${time %A}${font}\
${voffset -8}${goto 110}${color FFFFFF}${font Droid Sans:size=36}${time %e}${font} ${color 3399FF}${hr}
${color FFFFFF}${voffset -30}${color 3399FF}${font Droid Sans:size=18}${time %b}${font}\
${voffset -3} ${color FFFFFF}${font Droid Sans:size=20}${time %Y}${font}${color 3399FF}
${voffset 5}${font Droid Sans:size=16}${time %T}${font Droid Sans:size=10}${alignr}Chicknfangz${font}
${font Droid Sans:size=12}${color FFFFFF}${alignr}${platform f71882fg.2560 temp 1}°C${font}
${color 3399FF}${voffset 6}${alignr}${sysname} ${kernel} ${machine}
${alignr}Uptime: ${color FFFFFF}${uptime_short}
${goto 650}${cpu cpu3}%
${goto 650}${color 3399FF}CPU3
${color FFFFFF}${goto 235}${voffset 105}${cpu cpu0}%
${color 3399FF}${goto 232}CPU AVG
${color FFFFFF}${goto 540}${voffset -20}${memperc}%
${color 3399FF}${goto 540}RAM
${color FFFFFF}${goto 255}${voffset -220}${swapperc}%
${color 3399FF}${goto 245}SWAP
${color FFFFFF}${goto 390}${voffset 70}${fs_used_perc /}%
${color 3399FF}${goto 388}Root
${color FFFFFF}${goto 305}${voffset 335}${upspeed eth0}
${color 3399FF}${goto 305}Up
${color FFFFFF}${voffset 75}${goto 180}${cpu cpu1}%${goto 510}${downspeed eth0}
${color 3399FF}${goto 180}CPU1${color 3399FF}${goto 503}Down
${voffset -290}${color FFFFFF}    ${cpu cpu2}%
${color 3399FF}    CPU2${goto 750}${color FFFFFF}${cpu cpu0}%
${goto 750}${color 3399FF}CPU4

and for my own personal satisfaction I am going to 'rebuild' the conky - as I said, the code is a disaster.  And that of course is: MHO!

My thanks to mrpeachy for being a great teacher.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#32 2016-03-22 16:27:12

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: some conky help please

I should have made it:

# — Lua Load — #
lua_load /media/5/conky/chicknfangz/chickn_feathrs.lua
lua_draw_hook_pre chickn_wings

]:D  ]:D


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#33 2016-03-22 16:28:39

nobody
The Great
Registered: 2015-08-10
Posts: 3,655

Re: some conky help please

Sector11 wrote:

I should have made it:

# — Lua Load — #
lua_load /media/5/conky/chicknfangz/chickn_feathrs.lua
lua_draw_hook_pre chickn_wings

]:D  ]:D

The quality of your post warrants some cross-linking in the main conky thread, doesn't it smile

Offline

#34 2016-03-22 16:47:16

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: some conky help please

There isn't a main conky thread.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#35 2016-03-22 17:19:42

nore
>2⁹
From: squirrels' nest
Registered: 2015-09-29
Posts: 537

Re: some conky help please

Sector11 wrote:

There isn't a main conky thread.

Index » Artwork & Screenshots » Show us your conky?

Offline

#36 2016-03-22 21:09:40

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: some conky help please

This is right where it is suppose to be:  Help & Support (Other)


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#37 2016-03-23 04:25:17

nore
>2⁹
From: squirrels' nest
Registered: 2015-09-29
Posts: 537

Re: some conky help please

Yes it is, but as nobody suggested, the final piece with all its  effort deserves to be presented in the main gallery.

Offline

#38 2016-03-23 12:20:40

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: some conky help please

We are going to have to agree to disagree here.

What's here is a mess that I wouldn't post anywhere - as my work.  It was done at a request for help, I got it working but didn't clean up the code at all.  The conky config sucks, but it works - there is still tweaking needed to get the spacing as that is way off balance.  That's chicknfangz responsibility though.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#39 2016-03-23 13:50:36

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: some conky help please

And the arcs aren't concentric!


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#40 2016-03-23 14:17:47

nore
>2⁹
From: squirrels' nest
Registered: 2015-09-29
Posts: 537

Re: some conky help please

Sector11 wrote:

We are going to have to agree to disagree here.

I agree, it's your decision, but anyway, it has value as learning process, if not as a finished, polished product. There's a lesson to be learned: sometimes it is easier to write your own instead of tuning recycled material.

damo wrote:

And the arcs aren't concentric!

It's by design!

Offline

Board footer

Powered by FluxBB