Page 1579 of 2348 FirstFirst ... 5791079147915291569157715781579158015811589162916792079 ... LastLast
Results 15,781 to 15,790 of 23480

Thread: Post your .conkyrc files w/ screenshots

  1. #15781
    Join Date
    Oct 2009
    Location
    Under a rock
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by lemmy999 View Post
    @mrpeachy

    that is a very nicely thought out Conky!!
    thank you very much

    i think im gonna change it so that i get minimal info when the sections are deactivated,
    then if i want to see the extended info i can click the button

  2. #15782
    Join Date
    Dec 2008
    Location
    The Desert
    Beans
    281
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Post your .conkyrc files w/ screenshots

    Ok mrpeachy i found an interesting little bug in your mayan clock code. When the clock hits the seventeen second mark on the clock it starts counting. So for instance when it went around the first time at the 17 second mark it actually said one second. when it went around the second time it said two seconds at the seventeen second point and so on. Here is the code I am using. Its the newest that you posted and I have the system monitor commented out.(maybe Ill want it later)
    Code:
    --yearclock by mrpeachy 2010 version2
    require 'cairo'
    
    function string:split(delimiter)
    local result = { }
    local from  = 1
    local delim_from, delim_to = string.find( self, delimiter, from  )
    while delim_from do
    table.insert( result, string.sub( self, from , delim_from-1 ) )
    from  = delim_to + 1
    delim_from, delim_to = string.find( self, delimiter, from  )
    end
    table.insert( result, string.sub( self, from  ) )
    return result
    end
    
    function circlewriting(cr, text, font, fsize, radi, horiz, verti, tred, tgreen, tblue, talpha, start, finish, var1)
    local inum=string.len(text)
    range=finish
    deg=(finish-start)/(inum-1)
    degrads=1*(math.pi/180)
    local textcut=string.gsub(text, ".", "%1@@@")
    texttable=string.split(textcut, "@@@")
    for i = 1,inum do
    ival=i
    interval=(degrads*(start+(deg*(i-1))))+var1
    interval2=degrads*(start+(deg*(i-1)))
    txs=0+radi*(math.sin(interval))
    tys=0-radi*(math.cos(interval))
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, fsize);
    cairo_set_source_rgba (cr, tred, tgreen, tblue, talpha);
    cairo_move_to (cr, txs+horiz, tys+verti);
    cairo_rotate (cr, interval2)
    cairo_show_text (cr, (texttable[i]))
    cairo_rotate (cr, -interval2)
    cairo_move_to (cr,0,0)
    cairo_set_source_rgba (cr, 0, 0, 0, 0)
    cairo_line_to (cr,hx0,hy0)
    cairo_stroke (cr)
    end
    end
    
    function date_to_words()------------------------------------------------------------------------------------------
    date=os.date("%d")
    datecut=string.gsub(date, ".", "%1|")
    datetable=string.split(datecut, "|")
            
            if datetable[1]=="1" then
                datetens=""
                datespacer=""
                if datetable[2]=="0" then
                dateunit="tenth"
                elseif datetable[2]=="1" then
                dateunit="eleventh"
                elseif datetable[2]=="2" then
                dateunit="twelfth"
                elseif datetable[2]=="3" then
                dateunit="thirteenth"
                elseif datetable[2]=="4" then
                dateunit="fourteenth"
                elseif datetable[2]=="5" then
                dateunit="fifteenth"
                elseif datetable[2]=="6" then
                dateunit="sixteenth"
                elseif datetable[2]=="7" then
                fisrtdigit="seventeenth"
                elseif datetable[2]=="8" then
                dateunit="eighteenth"
                elseif datetable[2]=="9" then
                dateunit="nineteenth"
                end
            end 
              
            if datetable[1]=="0" or datetable[1]>"1" then
                datespacer=" "
                if datetable[1]=="2" then
                datetens="twenty"
                elseif datetable[1]=="3" then
                datetens="thirty"
                elseif datetable[1]=="0" then
                datetens=""
                end 
                if datetable[2]=="1" then
                dateunit="first"
                elseif datetable[2]=="2" then
                dateunit="second"
                elseif datetable[2]=="3" then
                dateunit="third"
                elseif datetable[2]=="4" then
                dateunit="fourth"
                elseif datetable[2]=="5" then
                dateunit="fifth"
                elseif datetable[2]=="6" then
                dateunit="sixth"
                elseif datetable[2]=="7" then
                dateunit="seventh"
                elseif datetable[2]=="8" then
                dateunit="eighth"
                elseif datetable[2]=="9" then
                dateunit="nineth"
                elseif datetable[2]=="0" then
                dateunit=""
                datespacer=""
                end
            end
            if datetable[2]=="0" then
                datetens=""
                datespacer=""
                if datetable[1]=="2" then
                dateunit="twentieth"
                elseif datetable[1]=="3" then
                dateunit="thirtieth"
                end
            end    
        return ((datetens) .. (datespacer) .. (dateunit))
    end--end of function--------------------------------------------------------------------------------------
    
    function number_to_words(text)
    textlength=string.len(text)
    textcut=string.gsub(text, ".", "%1|")
    texttable=string.split(textcut, "|")
    --for NUMBERS from 1 to 999
    --for numbers 1 digit number----------
    if textlength==1 then
        if texttable[1]=="1" then
        firstdigit="one"
        elseif texttable[1]=="2" then
        firstdigit="two"
        elseif texttable[1]=="3" then
        firstdigit="three"
        elseif texttable[1]=="4" then
        firstdigit="four"
        elseif texttable[1]=="5" then
        firstdigit="five"
        elseif texttable[1]=="6" then
        firstdigit="six"
        elseif texttable[1]=="7" then
        firstdigit="seven"
        elseif texttable[1]=="8" then
        firstdigit="eight"
        elseif texttable[1]=="9" then
        firstdigit="nine"
        elseif texttable[1]=="0" then
        firstdigit="zero"
        end
    return firstdigit
    end
    --for 2 digit number------------------
    if textlength==2 then
        if texttable[1]=="1" then
            seconddigit=""
            spacer=""
            if texttable[2]=="0" then
            firstdigit="ten"
            elseif texttable[2]=="1" then
            firstdigit="eleven"
            elseif texttable[2]=="2" then
            firstdigit="twelve"
            elseif texttable[2]=="3" then
            firstdigit="thirteen"
            elseif texttable[2]=="4" then
            firstdigit="fourteen"
            elseif texttable[2]=="5" then
            firstdigit="fifteen"
            elseif texttable[2]=="6" then
            firstdigit="sixteen"
            elseif texttable[2]=="7" then
            fisrtdigit="seventeen"
            elseif texttable[2]=="8" then
            firstdigit="eighteen"
            elseif texttable[2]=="9" then
            firstdigit="nineteen"
            end
        end   
        if texttable[1]>"1" then
            spacer=" "
            if texttable[1]=="2" then
            seconddigit="twenty"
            elseif texttable[1]=="3" then
            seconddigit="thirty"
            elseif texttable[1]=="4" then
            seconddigit="fourty"
            elseif texttable[1]=="5" then
            seconddigit="fifty"
            elseif texttable[1]=="6" then
            seconddigit="sixty"
            elseif texttable[1]=="7" then
            seconddigit="seventy"
            elseif texttable[1]=="8" then
            seconddigit="eighty"
            elseif texttable[1]=="9" then
            seconddigit="ninety"
            end    
            if texttable[2]=="1" then
            firstdigit="one"
            elseif texttable[2]=="2" then
            firstdigit="two"
            elseif texttable[2]=="3" then
            firstdigit="three"
            elseif texttable[2]=="4" then
            firstdigit="four"
            elseif texttable[2]=="5" then
            firstdigit="five"
            elseif texttable[2]=="6" then
            firstdigit="six"
            elseif texttable[2]=="7" then
            firstdigit="seven"
            elseif texttable[2]=="8" then
            firstdigit="eight"
            elseif texttable[2]=="9" then
            firstdigit="nine"
            elseif texttable[2]=="0" then
            firstdigit=""
            spacer=""
            end
         end
    return ((seconddigit) .. (spacer) .. (firstdigit))
    end
    --for 3 digit numbers-----------------------------
    if textlength==3 then
        if texttable[2]=="0" and texttable[3]=="0" then space="" end
        if texttable[2]>"0" or texttable[3]>"0" then space=" and " end
        if texttable[2]=="0" and texttable[3]>"0" then spacer="" end
        
        if texttable[1]=="1" then
        thirddigit="one hundred"
        elseif texttable[1]=="2" then
        thirddigit="two hundred"
        elseif texttable[1]=="3" then
        thirddigit="three hundred"
        elseif texttable[1]=="4" then
        thirddigit="four hundred"
        elseif texttable[1]=="5" then
        thirddigit="five hundred"
        elseif texttable[1]=="6" then
        thirddigit="six hundred"
        elseif texttable[1]=="7" then
        thirddigit="seven hundred"
        elseif texttable[1]=="8" then
        thirddigit="eight hundred"
        elseif texttable[1]=="9" then
        thirddigit="nine hundred"
        end
        if texttable[2]=="0" or texttable[2]>"1" then
            if texttable[3]=="1" then
            firstdigit="one"
            elseif texttable[3]=="2" then
            firstdigit="two"
            elseif texttable[3]=="3" then
            firstdigit="three"
            elseif texttable[3]=="4" then
            firstdigit="four"
            elseif texttable[3]=="5" then
            firstdigit="five"
            elseif texttable[3]=="6" then
            firstdigit="six"
            elseif texttable[3]=="7" then
            firstdigit="seven"
            elseif texttable[3]=="8" then
            firstdigit="eight"
            elseif texttable[3]=="9" then
            firstdigit="nine"
            elseif texttable[3]=="0" then
            firstdigit=""
            spacer=""
            end 
        end
        if texttable[2]=="1" then
            seconddigit=""
            spacer=""  
            if texttable[3]=="0" then
            firstdigit="ten"
            elseif texttable[3]=="1" then
            firstdigit="eleven"
            elseif texttable[3]=="2" then
            firstdigit="twelve"
            elseif texttable[3]=="3" then
            firstdigit="thirteen"
            elseif texttable[3]=="4" then
            firstdigit="fourteen"
            elseif texttable[3]=="5" then
            firstdigit="fifteen"
            elseif texttable[3]=="6" then
            firstdigit="sixteen"
            elseif texttable[3]=="7" then
            firstdigit="seventeen"
            elseif texttable[3]=="8" then
            firstdigit="eighteen"
            elseif texttable[3]=="9" then
            firstdigit="nineteen"
            end
        end
        if texttable[2] >"1" then
            spacer=" "    
            if texttable[2]=="2" then
            seconddigit="twenty"
            elseif texttable[2]=="3" then
            seconddigit="thirty"
            elseif texttable[2]=="4" then
            seconddigit="fourty"
            elseif texttable[2]=="5" then
            seconddigit="fifty"
            elseif texttable[2]=="6" then
            seconddigit="sixty"
            elseif texttable[2]=="7" then
            seconddigit="seventy"
            elseif texttable[2]=="8" then
            seconddigit="eighty"
            elseif texttable[2]=="9" then
            seconddigit="ninety"
            elseif texttable[2]=="0" then
            seconddigit=""
            end
        end
    return ((thirddigit) .. (space) .. (seconddigit) .. (spacer) .. (firstdigit))
    end
    end--of function
    
    function conky_draw_fig()
    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)
    cr = cairo_create(cs)
    local updates=tonumber(conky_parse('${updates}'))
    if updates > 5 then
    
    cairo_set_line_width (cr,1)
    hx0=200
    hy0=200
    radius=40
    
    --months of the year---------------------------------------------------------------------------------------------------
    mnrad1=radius
    mnrad2=mnrad1+10
    br1,bg1,bb1,ba1=1,1,1,1
    cairo_set_source_rgba (cr,br1,bg1,bb1,ba1)
    --draw circles
    cairo_arc (cr,hx0,hy0,mnrad1,0,2*math.pi)
    cairo_stroke (cr)
    cairo_arc (cr,hx0,hy0,mnrad2,0,2*math.pi)
    cairo_stroke (cr)
    --calculations
    year4num=os.date("%Y")
    t1 = os.time( {    year=year4num,month=03,day=01,hour=00,min=0,sec=0} );
    t2 = os.time( {    year=year4num,month=02,day=01,hour=00,min=0,sec=0} );
    febdaynum=tonumber((os.difftime(t1,t2))/(24*60*60))
    yeardays=31+febdaynum+31+30+31+30+31+31+30+31+30+31
    yearsec=(yeardays*24*60*60)
    jan=31*24*60*60
    feb=jan+(febdaynum*24*60*60)
    mar=feb+(31*24*60*60)
    apr=mar+(30*24*60*60)
    may=apr+(31*24*60*60)
    jun=may+(30*24*60*60)
    jul=jun+(31*24*60*60)
    aug=jul+(31*24*60*60)
    sep=aug+(30*24*60*60)
    oct=sep+(31*24*60*60)
    nov=oct+(30*24*60*60)
    dec=nov+(31*24*60*60)
    secdays = { jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec }
    --circle indicator lines
    for i=1,12 do
    arc=((2*math.pi/360)*((360/yearsec)*(secdays[i])))
    mnx1=0+mnrad1*(math.sin(arc))
    mny1=0-mnrad1*(math.cos(arc))
    arc=((2*math.pi/360)*((360/yearsec)*(secdays[i])))
    mnx2=0+mnrad2*(math.sin(arc))
    mny2=0-mnrad2*(math.cos(arc))
    cairo_move_to (cr,hx0+mnx1,hy0+mny1)
    cairo_line_to (cr,hx0+mnx2,hy0+mny2)
    cairo_stroke (cr)
    end
    --indicator
    doy=tonumber(os.date("%j"))
    yrsecs=((doy-1)*24*60*60)+(tonumber(os.date('%H'))*60*60)+(tonumber(os.date('%M'))*60)+(tonumber(os.date('%S')))
    mnrad3=mnrad2+10
    arc=(2*math.pi/360)*((360/yearsec)*(yrsecs))
    mnx1=0+mnrad2*(math.sin(arc))
    mny1=0-mnrad2*(math.cos(arc))
    arc=(2*math.pi/360)*((360/yearsec)*((yrsecs))+4)
    mnx2=0+mnrad3*(math.sin(arc))
    mny2=0-mnrad3*(math.cos(arc))
    arc=(2*math.pi/360)*((360/yearsec)*((yrsecs))-4)
    mnx3=0+mnrad3*(math.sin(arc))
    mny3=0-mnrad3*(math.cos(arc))
    cairo_move_to (cr,hx0+mnx1,hy0+mny1)
    cairo_line_to (cr,hx0+mnx2,hy0+mny2)
    cairo_stroke (cr)
    cairo_move_to (cr,hx0+mnx1,hy0+mny1)
    cairo_line_to (cr,hx0+mnx3,hy0+mny3)
    cairo_stroke (cr)
    --circlewriting
    --circlewriting variable
    text1=((string.upper(os.date('%B'))) .. " TWO THOUSAND AND " .. string.upper(number_to_words(os.date('%y'))))
    --text must be in quotes
    text=text1
    --font name must be in quotes
    font="mono"
    fontsize=10
    radius=mnrad2+1
    positionx=hx0
    positiony=hy0
    colorred=1
    colorgreen=1
    colorblue=1
    coloralpha=1
    --to set start and finish values for circlewriting, if the text will cross 0 degrees then you must calculate for 360+finish degrees
    --eg if you want to go from 270 to 90, then you will input 270 to 450.  Finish has to be greater than start.
    start=((360/yearsec)*((yrsecs))+4)
    slen2=string.len(text)
    finish=start+270
    letterposition=0
    circlewriting(cr, text, font, fontsize, radius, positionx, positiony, colorred, colorgreen, colorblue, coloralpha, start, finish, letterposition)
    --end of months around year-------------------------------------------------------------------------------------------------------------------------------
    
    --days around month----------------------------------------------------------------------
    drad1=mnrad3
    drad2=drad1+10
    br1,bg1,bb1,ba1=1,1,1,1
    cairo_set_source_rgba (cr,br1,bg1,bb1,ba1)
    --draw circles
    cairo_arc (cr,hx0,hy0,drad1,0,2*math.pi)
    cairo_stroke (cr)
    cairo_arc (cr,hx0,hy0,drad2,0,2*math.pi)
    cairo_stroke (cr)
    --calculations
    monthnum=(tonumber(os.date('%m')))
    monthdays = { 31, febdaynum, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }
    --drawin circle indicator lines
    for i=1,monthdays[monthnum] do
    arc=((2*math.pi/360)*((360/monthdays[monthnum])*(i)))
    dx1=0+drad1*(math.sin(arc))
    dy1=0-drad1*(math.cos(arc))
    arc=((2*math.pi/360)*((360/monthdays[monthnum])*(i)))
    dx2=0+drad2*(math.sin(arc))
    dy2=0-drad2*(math.cos(arc))
    cairo_move_to (cr,hx0+dx1,hy0+dy1)
    cairo_line_to (cr,hx0+dx2,hy0+dy2)
    cairo_stroke (cr)
    end
    --indicator
    daynumsec=(tonumber(os.date('%d'))*24*60*60)+(tonumber(os.date('%H'))*60*60)+(tonumber(os.date('%M'))*60)+(tonumber(os.date('%S')))
    monthnumsec=(monthdays[monthnum])*24*60*60
    drad3=drad2+10
    arc=(2*math.pi/360)*((360/monthnumsec)*(daynumsec))
    dx1=0+drad2*(math.sin(arc))
    dy1=0-drad2*(math.cos(arc))
    arc=(2*math.pi/360)*((360/monthnumsec)*((daynumsec))+4)
    dx2=0+drad3*(math.sin(arc))
    dy2=0-drad3*(math.cos(arc))
    arc=(2*math.pi/360)*((360/monthnumsec)*((daynumsec))-4)
    dx3=0+drad3*(math.sin(arc))
    dy3=0-drad3*(math.cos(arc))
    cairo_move_to (cr,hx0+dx1,hy0+dy1)
    cairo_line_to (cr,hx0+dx2,hy0+dy2)
    cairo_stroke (cr)
    cairo_move_to (cr,hx0+dx1,hy0+dy1)
    cairo_line_to (cr,hx0+dx3,hy0+dy3)
    cairo_stroke (cr)
    --circlewriting
    --circlewriting variable
    text1=((string.upper(os.date('%A'))) .. " THE " .. string.upper(date_to_words()))
    --text must be in quotes
    text=text1
    --font name must be in quotes
    font="mono"
    fontsize=10
    radius=drad2+1
    positionx=hx0
    positiony=hy0
    colorred=1
    colorgreen=1
    colorblue=1
    coloralpha=1
    --to set start and finish values for circlewriting, if the text will cross 0 degrees then you must calculate for 360+finish degrees
    --eg if you want to go from 270 to 90, then you will input 270 to 450.  Finish has to be greater than start.
    start=((360/monthnumsec)*(daynumsec)+4)
    slen1=string.len(text)
    finish=start+(7.5*slen1)
    letterposition=0
    circlewriting(cr, text, font, fontsize, radius, positionx, positiony, colorred, colorgreen, colorblue, coloralpha, start, finish, letterposition)
    --end of days around month-------------------------------------------------------------------------------------------------------
    
    --hours around day ---------------------------------------------------------------------------------------------------------------------
    hrad1=drad3
    hrad2=hrad1+10
    br1,bg1,bb1,ba1=1,1,1,1
    cairo_set_source_rgba (cr,br1,bg1,bb1,ba1)
    --draw eings
    cairo_arc (cr,hx0,hy0,hrad1,0,2*math.pi)
    cairo_stroke (cr)
    cairo_arc (cr,hx0,hy0,hrad2,0,2*math.pi)
    cairo_stroke (cr)
    --draw ring indicator lines
    for i=1,24 do
    arc=((2*math.pi/360)*((360/24)*i))
    hx1=0+hrad1*(math.sin(arc))
    hy1=0-hrad1*(math.cos(arc))
    arc=((2*math.pi/360)*((360/24)*i))
    hx2=0+hrad2*(math.sin(arc))
    hy2=0-hrad2*(math.cos(arc))
    cairo_move_to (cr,hx0+hx1,hy0+hy1)
    cairo_line_to (cr,hx0+hx2,hy0+hy2)
    cairo_stroke (cr)
    end
    --indicator
    hrsec=(tonumber(os.date('%H'))*60*60)+(tonumber(os.date('%M'))*60)+(tonumber(os.date('%S')))
    --mns=mn+sc
    hrad3=hrad2+10
    arc=((2*math.pi/360)*((360/(24*60*60)*hrsec)))
    hx1=0+hrad2*(math.sin(arc))
    hy1=0-hrad2*(math.cos(arc))
    arc=(2*math.pi/360)*((360/(24*60*60))*(hrsec)-4)
    hx2=0+hrad3*(math.sin(arc))
    hy2=0-hrad3*(math.cos(arc))
    arc=(2*math.pi/360)*((360/(24*60*60))*(hrsec)+4)
    hx3=0+hrad3*(math.sin(arc))
    hy3=0-hrad3*(math.cos(arc))
    cairo_move_to (cr,hx0+hx1,hy0+hy1)
    cairo_line_to (cr,hx0+hx2,hy0+hy2)
    cairo_stroke (cr)
    cairo_move_to (cr,hx0+hx1,hy0+hy1)
    cairo_line_to (cr,hx0+hx3,hy0+hy3)
    cairo_stroke (cr)
    --circlewriting
    hrnum=tonumber(os.date('%H'))
    if hrnum==1 then hour="HOUR"
    else hour="HOURS" end
    text4=((string.upper(number_to_words(hrnum))) .. " " .. hour)
    --text must be in quotes
    text=text4
    --font name must be in quotes
    font="mono"
    fontsize=10
    radius=hrad2+1
    positionx=hx0
    positiony=hy0
    colorred=1
    colorgreen=1
    colorblue=1
    coloralpha=1
    --to set start and finish values for circlewriting, if the text will cross 0 degrees then you must calculate for 360+finish degrees
    --eg if you want to go from 270 to 90, then you will input 270 to 450.  Finish has to be greater than start.
    start=((360/(24*60*60))*(hrsec)+4)
    slen4=string.len(text)
    finish=start+(slen4*5)
    letterposition=0
    circlewriting(cr, text, font, fontsize, radius, positionx, positiony, colorred, colorgreen, colorblue, coloralpha, start, finish, letterposition)
    --end of hours around day----------------------------------------------------------------------------------------------------
    
    --minutes around hour--------------------------------------------------------------------------------------------------------------
    mrad1=hrad3
    mrad2=mrad1+10
    br1,bg1,bb1,ba1=1,1,1,1
    cairo_set_source_rgba (cr,br1,bg1,bb1,ba1)
    --draw circles
    cairo_arc (cr,hx0,hy0,mrad1,0,2*math.pi)
    cairo_stroke (cr)
    cairo_arc (cr,hx0,hy0,mrad2,0,2*math.pi)
    cairo_stroke (cr)
    --draw circle indicator lines
    for i=1,60 do
    arc=((2*math.pi/360)*((360/60)*i))
    mx1=0+mrad1*(math.sin(arc))
    my1=0-mrad1*(math.cos(arc))
    arc=((2*math.pi/360)*((360/60)*i))
    mx2=0+mrad2*(math.sin(arc))
    my2=0-mrad2*(math.cos(arc))
    cairo_move_to (cr,hx0+mx1,hy0+my1)
    cairo_line_to (cr,hx0+mx2,hy0+my2)
    cairo_stroke (cr)
    end
    --indicator
    minsec=(tonumber(os.date('%M'))*60)+(tonumber(os.date('%S')))
    mrad3=mrad2+10
    arc=((2*math.pi/360)*((360/(60*60)*minsec)))
    mx1=0+mrad2*(math.sin(arc))
    my1=0-mrad2*(math.cos(arc))
    arc=(2*math.pi/360)*((360/(60*60))*(minsec)-4)
    mx2=0+mrad3*(math.sin(arc))
    my2=0-mrad3*(math.cos(arc))
    arc=(2*math.pi/360)*((360/(60*60))*(minsec)+4)
    mx3=0+mrad3*(math.sin(arc))
    my3=0-mrad3*(math.cos(arc))
    cairo_move_to (cr,hx0+mx1,hy0+my1)
    cairo_line_to (cr,hx0+mx2,hy0+my2)
    cairo_stroke (cr)
    cairo_move_to (cr,hx0+mx1,hy0+my1)
    cairo_line_to (cr,hx0+mx3,hy0+my3)
    cairo_stroke (cr)
    --circlewriting
    min=tonumber(os.date('%M'))
    if min==1 then minute="MINUTE"
    else minute="MINUTES" end
    text4=((string.upper(number_to_words(min))) .. " " .. minute)
    --text must be in quotes
    text=text4
    --font name must be in quotes
    font="mono"
    fontsize=10
    radius=mrad2+1
    positionx=hx0
    positiony=hy0
    colorred=1
    colorgreen=1
    colorblue=1
    coloralpha=1
    --to set start and finish values for circlewriting, if the text will cross 0 degrees then you must calculate for 360+finish degrees
    --eg if you want to go from 270 to 90, then you will input 270 to 450.  Finish has to be greater than start.
    start=((360/(60*60))*(minsec)+4)
    slen4=string.len(text)
    finish=start+(slen4*5)
    letterposition=0
    circlewriting(cr, text, font, fontsize, radius, positionx, positiony, colorred, colorgreen, colorblue, coloralpha, start, finish, letterposition)
    --end minutes around hour--------------------------------------------------------------------------------------
    
    --seconds of minute-------------------------------------------------------------------------------------------
    srad1=mrad3
    srad2=srad1+10
    br1,bg1,bb1,ba1=1,1,1,1
    cairo_set_source_rgba (cr,br1,bg1,bb1,ba1)
    --draw circles
    cairo_arc (cr,hx0,hy0,srad1,0,2*math.pi)
    cairo_stroke (cr)
    cairo_arc (cr,hx0,hy0,srad2,0,2*math.pi)
    cairo_stroke (cr)
    --draw circle indicator lines
    for i=1,60 do
    arc=((2*math.pi/360)*((360/60)*i))
    sx1=0+srad1*(math.sin(arc))
    sy1=0-srad1*(math.cos(arc))
    arc=((2*math.pi/360)*((360/60)*i))
    sx2=0+srad2*(math.sin(arc))
    sy2=0-srad2*(math.cos(arc))
    cairo_move_to (cr,hx0+sx1,hy0+sy1)
    cairo_line_to (cr,hx0+sx2,hy0+sy2)
    cairo_stroke (cr)
    end
    --indicator
    sec=(tonumber(os.date('%S')))
    srad3=srad2+10
    arc=((2*math.pi/360)*((360/(60)*sec)))
    sx1=0+srad2*(math.sin(arc))
    sy1=0-srad2*(math.cos(arc))
    arc=(2*math.pi/360)*((360/60)*((sec))-4)
    sx2=0+srad3*(math.sin(arc))
    sy2=0-srad3*(math.cos(arc))
    arc=(2*math.pi/360)*((360/60)*((sec))+4)
    sx3=0+srad3*(math.sin(arc))
    sy3=0-srad3*(math.cos(arc))
    cairo_move_to (cr,hx0+sx1,hy0+sy1)
    cairo_line_to (cr,hx0+sx2,hy0+sy2)
    cairo_stroke (cr)
    cairo_move_to (cr,hx0+sx1,hy0+sy1)
    cairo_line_to (cr,hx0+sx3,hy0+sy3)
    cairo_stroke (cr)
    cairo_arc (cr,hx0,hy0,srad3,0,2*math.pi)
    cairo_stroke (cr)
    --circlewriting
    --circlewriting variable
    sec=tonumber(os.date('%S'))
    if sec==1 then second="SECOND"
    else second="SECONDS" end
    text3=((string.upper(number_to_words(sec))) .. " " .. second)
    --text must be in quotes
    text=text3
    --font name must be in quotes
    font="mono"
    fontsize=10
    radius=srad2+1
    positionx=hx0
    positiony=hy0
    colorred=1
    colorgreen=1
    colorblue=1
    coloralpha=1
    --to set start and finish values for circlewriting, if the text will cross 0 degrees then you must calculate for 360+finish degrees
    --eg if you want to go from 270 to 90, then you will input 270 to 450.  Finish has to be greater than start.
    start=((360/60)*((sec))+4)
    slen3=string.len(text)
    finish=start+(slen3*5)
    letterposition=0
    circlewriting(cr, text, font, fontsize, radius, positionx, positiony, colorred, colorgreen, colorblue, coloralpha, start, finish, letterposition)
    --end seconds of minute-----------------------------------------------------------------------------------------------------------------------------
    --end of calendar---------------------------------------------------------------------------------------------------
    end--of if updates>5
    end--of main function
    
    --system monitor
    --cpu
    --cairo_set_line_width (cr,1)
    --hx0=385
    --hy0=383
    --hrad1=40
    --hrad2=hrad1+10
    --br1,bg1,bb1,ba1=1,1,1,1
    
    --cairo_set_source_rgba (cr,br1,bg1,bb1,ba1)
    --cairo_arc (cr,hx0,hy0,hrad1,0,2*math.pi)
    --cairo_stroke (cr)
    --cairo_arc (cr,hx0,hy0,hrad2,0,2*math.pi)
    --cairo_stroke (cr)
    --for i=1,100 do
    --arc=(2*math.pi/100)*i
    --hx1=0+hrad1*(math.sin(arc))
    --hy1=0-hrad1*(math.cos(arc))
    --arc=(2*math.pi/100)*i
    --hx2=0+hrad2*(math.sin(arc))
    --hy2=0-hrad2*(math.cos(arc))
    --cairo_move_to (cr,hx0+hx1,hy0+hy1)
    --cairo_line_to (cr,hx0+hx2,hy0+hy2)
    --cairo_stroke (cr)
    --end
    --cpu=conky_parse('${cpu}')
    --hrad3=hrad2+10
    --arc=(2*math.pi/360)*((360/100)*((cpu)))
    --hx1=0+hrad2*(math.sin(arc))
    --hy1=0-hrad2*(math.cos(arc))
    --arc=(2*math.pi/360)*((360/100)*((cpu))+4)
    --hx2=0+hrad3*(math.sin(arc))
    --hy2=0-hrad3*(math.cos(arc))
    --arc=(2*math.pi/360)*((360/100)*((cpu))-4)
    --hx3=0+hrad3*(math.sin(arc))
    --hy3=0-hrad3*(math.cos(arc))
    --cairo_move_to (cr,hx0+hx1,hy0+hy1)
    --cairo_line_to (cr,hx0+hx2,hy0+hy2)
    --cairo_stroke (cr)
    --cairo_move_to (cr,hx0+hx1,hy0+hy1)
    --cairo_line_to (cr,hx0+hx3,hy0+hy3)
    --cairo_stroke (cr)
    --memory
    --mrad1=hrad3
    --mrad2=mrad1+10
    --br1,bg1,bb1,ba1=1,1,1,1
    --cairo_set_source_rgba (cr,br1,bg1,bb1,ba1)
    --cairo_arc (cr,hx0,hy0,mrad1,0,2*math.pi)
    --cairo_stroke (cr)
    --cairo_arc (cr,hx0,hy0,mrad2,0,2*math.pi)
    --cairo_stroke (cr)
    --for i=1,100 do
    --arc=(2*math.pi/100)*i
    --mx1=0+mrad1*(math.sin(arc))
    --my1=0-mrad1*(math.cos(arc))
    --arc=(2*math.pi/100)*i
    --mx2=0+mrad2*(math.sin(arc))
    --my2=0-mrad2*(math.cos(arc))
    --cairo_move_to (cr,hx0+mx1,hy0+my1)
    --cairo_line_to (cr,hx0+mx2,hy0+my2)
    --cairo_stroke (cr)
    --end
    --mem=tonumber(conky_parse('${memperc}'))
    --mrad3=mrad2+10
    --arc=(2*math.pi/360)*((360/100)*((mem)))
    --mx1=0+mrad2*(math.sin(arc))
    --my1=0-mrad2*(math.cos(arc))
    --arc=(2*math.pi/360)*((360/100)*((mem))+4)
    --mx2=0+mrad3*(math.sin(arc))
    --my2=0-mrad3*(math.cos(arc))
    --arc=(2*math.pi/360)*((360/100)*((mem))-4)
    --mx3=0+mrad3*(math.sin(arc))
    --my3=0-mrad3*(math.cos(arc))
    --cairo_move_to (cr,hx0+mx1,hy0+my1)
    --cairo_line_to (cr,hx0+mx2,hy0+my2)
    --cairo_stroke (cr)
    --cairo_move_to (cr,hx0+mx1,hy0+my1)
    --cairo_line_to (cr,hx0+mx3,hy0+my3)
    --cairo_stroke (cr)
    --fs_used root
    --srad1=mrad3
    --srad2=srad1+10
    --br1,bg1,bb1,ba1=1,1,1,1
    --cairo_set_source_rgba (cr,br1,bg1,bb1,ba1)
    --cairo_arc (cr,hx0,hy0,srad1,0,2*math.pi)
    --cairo_stroke (cr)
    --cairo_arc (cr,hx0,hy0,srad2,0,2*math.pi)
    --cairo_stroke (cr)
    --for i=1,100 do
    --arc=((2*math.pi/360)*((360/100)*i))
    --sx1=0+srad1*(math.sin(arc))
    --sy1=0-srad1*(math.cos(arc))
    --arc=((2*math.pi/360)*((360/100)*i))
    --sx2=0+srad2*(math.sin(arc))
    --sy2=0-srad2*(math.cos(arc))
    --cairo_move_to (cr,hx0+sx1,hy0+sy1)
    --cairo_line_to (cr,hx0+sx2,hy0+sy2)
    --cairo_stroke (cr)
    --end
    --fsr=conky_parse('${fs_used_perc /}')
    --srad3=srad2+10
    --arc=((2*math.pi/360)*((360/(100)*fsr)))
    --sx1=0+srad2*(math.sin(arc))
    --sy1=0-srad2*(math.cos(arc))
    --arc=(2*math.pi/360)*((360/100)*((fsr))-4)
    --sx2=0+srad3*(math.sin(arc))
    --sy2=0-srad3*(math.cos(arc))
    --arc=(2*math.pi/360)*((360/100)*((fsr))+4)
    --sx3=0+srad3*(math.sin(arc))
    --sy3=0-srad3*(math.cos(arc))
    --cairo_move_to (cr,hx0+sx1,hy0+sy1)
    --cairo_line_to (cr,hx0+sx2,hy0+sy2)
    --cairo_stroke (cr)
    --cairo_move_to (cr,hx0+sx1,hy0+sy1)
    --cairo_line_to (cr,hx0+sx3,hy0+sy3)
    --cairo_stroke (cr)
    --fs used home
    --mnrad1=srad3
    --mnrad2=mnrad1+10
    --br1,bg1,bb1,ba1=1,1,1,1
    --cairo_set_source_rgba (cr,br1,bg1,bb1,ba1)
    --cairo_arc (cr,hx0,hy0,mnrad1,0,2*math.pi)
    --cairo_stroke (cr)
    --cairo_arc (cr,hx0,hy0,mnrad2,0,2*math.pi)
    --cairo_stroke (cr)
    --for i=1,100 do
    --arc=((2*math.pi/360)*((360/100)*i))
    --mnx1=0+mnrad1*(math.sin(arc))
    --mny1=0-mnrad1*(math.cos(arc))
    --arc=((2*math.pi/360)*((360/100)*i))
    --mnx2=0+mnrad2*(math.sin(arc))
    --mny2=0-mnrad2*(math.cos(arc))
    --cairo_move_to (cr,hx0+mnx1,hy0+mny1)
    --cairo_line_to (cr,hx0+mnx2,hy0+mny2)
    --cairo_stroke (cr)
    --end
    --fsh=conky_parse('${fs_used_perc /home}')
    --mnrad3=mnrad2+10
    --arc=((2*math.pi/360)*((360/(100)*fsh)))
    --mnx1=0+mnrad2*(math.sin(arc))
    --mny1=0-mnrad2*(math.cos(arc))
    --arc=(2*math.pi/360)*((360/100)*((fsh))-4)
    --mnx2=0+mnrad3*(math.sin(arc))
    --mny2=0-mnrad3*(math.cos(arc))
    --arc=(2*math.pi/360)*((360/100)*((fsh))+4)
    --mnx3=0+mnrad3*(math.sin(arc))
    --mny3=0-mnrad3*(math.cos(arc))
    --cairo_move_to (cr,hx0+mnx1,hy0+mny1)
    --cairo_line_to (cr,hx0+mnx2,hy0+mny2)
    --cairo_stroke (cr)
    --cairo_move_to (cr,hx0+mnx1,hy0+mny1)
    --cairo_line_to (cr,hx0+mnx3,hy0+mny3)
    --cairo_stroke (cr)
    --cairo_arc (cr,hx0,hy0,mnrad3,0,2*math.pi)
    --cairo_stroke (cr)
    --end
    --end
    I like how the minute gradually moves through the minute too. Am I right to assume that everything else does that?
    O and from my screenshots it looks like it goes from five to seven to six but I was just too lazy to fix it once I realized I had put them outta order
    Attached Images Attached Images
    Last edited by djyoung4; January 9th, 2011 at 10:54 AM.
    I'm a super power user

  3. #15783
    Join Date
    Aug 2010
    Location
    Arizona USA
    Beans
    3,001
    Distro
    Ubuntu Development Release

    Re: Post your .conkyrc files w/ screenshots

    More changes...


    (Click to expand)


    ~/home/username/.conkyrc
    Code:
    ##################################
    ## VinDSL | rev. 11-01-09 03:08 ##
    ##################################
    
    ####
    ## Use XFT? Required to Force UTF8 (see below).
    #
    use_xft yes
    xftfont LiberationSans:size=8.85
    xftalpha 0.7
    text_buffer_size 2048
    
    ####
    ## Force UTF8? Requires XFT (see above).
    ## Displays degree symbol, instead of °, etc.
    #
    override_utf8_locale yes
    
    ####
    ## Daemonize Conky, aka 'fork to background'.
    #
    background yes
    
    ####
    ## Update interval in seconds.
    #
    update_interval 1.5
    
    ####
    ## This is the number of times Conky will update before quitting.
    ## Set to zero to run forever.
    #
    total_run_times 0
    
    ####
    ## Create own window instead of using desktop (required in nautilus)?
    #
    own_window yes
    own_window_colour eeeeee
    own_window_type override
    own_window_transparent yes
    
    ####
    ## Use double buffering? Reduces flicker.
    #
    double_buffer yes
    
    ####
    ## Draw shades?
    #
    draw_shades no
    
    ####
    ## Draw outlines?
    #
    draw_outline no
    
    ####
    ## Draw borders around text?
    #
    draw_borders no
    
    ####
    ## Draw borders around graphs?
    #
    draw_graph_borders no
    
    ####
    ## Print text to stdout?
    ## Print text in console?
    #
    out_to_ncurses no
    out_to_console no
    
    ####
    ## Text alignment.
    #
    alignment top_right
    
    ####
    ## Minimum size of text area.
    #
    minimum_size 238 0
    
    ####
    ## Gap between text and screen borders.
    #
    gap_x 8
    gap_y 33
    
    ####
    ## Shorten MiB/GiB to M/G in stats.
    #
    short_units yes
    
    ####
    ## Pad % symbol spacing after numbers.
    #
    pad_percents 0
    
    ####
    ## Pad spacing between text and borders.
    #
    border_inner_margin 4
    
    ####
    ## Limit the length of names in "Top Processes".
    #
    top_name_width 10
    
    ####
    ## Subtract file system -/+buffers/cache from used memory?
    ## Set to yes, to produce meaningful physical memory stats.
    #
    no_buffers yes
    
    ####
    ## Set to yes, if you want all text to be in UPPERCASE.
    #
    uppercase no
    
    ####
    ## Number of cpu samples to average.
    ## Set to 1 to disable averaging.
    #
    cpu_avg_samples 2
    
    ####
    ## Number of net samples to average.
    ## Set to 1 to disable averaging.
    #
    net_avg_samples 2
    
    ####
    ## Add spaces to keep things from moving around?
    ## Only affects certain objects.
    #
    use_spacer right
    
    ####
    ## My colors (suit yourself).
    #
    color0 White
    color1 Ivory
    color2 Ivory2
    color3 Ivory3
    color4 Tan1
    color5 Tan2
    color6 Gray
    color7 AntiqueWhite4
    color8 DarkSlateGray
    color9 Black
    
    ####
    ## Load Lua for shading (optional).
    ## Set the path to your script here.
    #
    lua_load ~/.conky/draw_bg.lua
    lua_draw_hook_pre draw_bg
    
    ####
    ## Installed fonts (required).
    #
    # ConkyWeather (Stanko Metodiev)
    # ConkyWindNESW (Stanko Metodiev)
    # Cut Outs for 3D FX (Fonts & Things)
    # Liberation Mono (Ascender Corp)
    # Liberation Sans (Ascender Corp)
    # Moon Phases (Curtis Clark)
    # OpenLogos (Icoma)
    # PizzaDude Bullets (Jakob Fischer)
    # Radio Space (Iconian Fonts)
    # StyleBats (Vinterstille)
    # Ubuntu (Canonical Ltd)
    # Ubuntu Title Bold (Paulo Silva)
    # Weather (Jonathan Macagba)
    # WenQuanYi Micro Hei (Google Corp)
    
    TEXT
    ##################
    ##     LOGO     ##
    ##################
    ${voffset -33}${font OpenLogos:size=103}${color2}v${font}${voffset -76}${goto 178}${font UbuntuTitleBold:size=20}${color4}10.10${font}
    ##################
    ##    SYSTEM    ##
    ##################
    ${voffset 20}${font WenQuanYiMicroHei:bold:size=8.75}${color4}SYSTEM${offset 8}${color8}${voffset -2}${hr 2}${font}
    ${voffset 4}${font OpenLogos:size=10}${color2}u${voffset -4}${font}${color6}${offset 5}${sysname}${offset 5}${kernel}${alignr}${machine}
    ${voffset 2}${font StyleBats:size=10}${color2}A${voffset -1}${font}${color6}${offset 5}Intel${offset 3}P4${offset 3}Extreme${offset 3}Edition${alignr}${freq_g cpu0}${offset 1}GHz
    ${voffset 2}${font StyleBats:size=10}${color2}q${voffset -1}${font}${color6}${offset 5}System${offset 3}Uptime${alignr}${uptime_short}
    ${voffset 2}${font StyleBats:size=10}${color2}o${voffset -1}${font}${color6}${offset 5}File${offset 3}System${alignr}${fs_type}
    ##################
    ##  PROCESSORS  ##
    ##################
    ${voffset 6}${font WenQuanYiMicroHei:bold:size=8.75}${color4}PROCESSORS${offset 8}${color8}${voffset -2}${hr 2}${font}
    ${voffset 4}${font StyleBats:size=10}${color2}k${voffset -2}${font}${color6}${offset 2}CPU1${offset 5}${cpu cpu1}%${color7}${alignr 2}${cpubar 4,153 cpu1}
    ${voffset 2}${font StyleBats:size=10}${color2}k${voffset -2}${font}${color6}${offset 2}CPU2${offset 5}${cpu cpu2}%${color7}${alignr 2}${cpubar 4,153 cpu2}
    ##################
    ##    MEMORY    ##
    ##################
    ${voffset 6}${font WenQuanYiMicroHei:bold:size=8.75}${color4}MEMORY${offset 8}${color8}${voffset -2}${hr 2}${font}
    ${voffset 4}${font StyleBats:size=10}${color2}l${voffset -2}${font}${color6}${offset 3}RAM${goto 97}${mem}${goto 133}/${offset 5}${memmax}${alignr}${memperc}%
    ${color7}${alignr 2}${membar 4,230}
    ##################
    ##     HDD      ##
    ##################
    ${voffset 2}${font WenQuanYiMicroHei:bold:size=8.75}${color4}HDD${offset 8}${color8}${voffset -2}${hr 2}${font}
    ${voffset 4}${font StyleBats:size=10}${color2}x${voffset -2}${font}${color6}${offset 4}ROOT${goto 95}${fs_used /}${goto 133}/${offset 5}${fs_size /}${alignr}${fs_free_perc /}%
    ${color7}${alignr 2}${fs_bar 4,230 /}
    ${voffset 1}${font StyleBats:size=10}${color2}x${voffset -2}${font}${color6}${offset 4}HOME${goto 95}${fs_used /home}${goto 133}/${offset 5}${fs_size /home}${alignr}${fs_free_perc /home}%
    ${color7}${alignr 2}${fs_bar 4,230 /home}
    ${voffset 1}${font StyleBats:size=10}${color2}4${voffset -2}${font}${color6}${offset 4}SWAP${goto 95}${swap}${goto 133}/${offset 5}${swapmax}${alignr}${swapperc}%
    ${color7}${alignr 2}${swapbar 4,230}
    ##################
    # TOP PROCESSES ##
    ##################
    ${voffset 3}${font WenQuanYiMicroHei:bold:size=8.75}${color4}TOP PROCESSES${offset 8}${color8}${voffset -2}${hr 2}${font}
    ${voffset 4}${font StyleBats:size=10}${color1}h${voffset -3}${font}${color6}${offset 5}${top_mem name 1}${goto 115}${top_mem mem_res 1}${alignr}${top_mem mem 1}%
    ${voffset 2}${font StyleBats:size=10}${color1}h${voffset -3}${font}${color6}${offset 5}${top_mem name 2}${goto 115}${top_mem mem_res 2}${alignr}${top_mem mem 2}%
    ${voffset 2}${font StyleBats:size=10}${color1}h${voffset -3}${font}${color6}${offset 5}${top_mem name 3}${goto 115}${top_mem mem_res 3}${alignr}${top_mem mem 3}%
    ${if_running rhythmbox}${voffset -14}${else}${voffset 2}${font StyleBats:size=10}${color1}h${voffset -3}${font}${color6}${offset 5}${top_mem name 4}${goto 115}${top_mem mem_res 4}${alignr}${top_mem mem 4}%
    ${voffset 2}${font StyleBats:size=10}${color1}h${voffset -3}${font}${color6}${offset 5}${top_mem name 5}${goto 115}${top_mem mem_res 5}${alignr}${top_mem mem 5}%
    ${voffset 2}${font StyleBats:size=10}${color1}h${voffset -3}${font}${color6}${offset 5}${top_mem name 6}${goto 115}${top_mem mem_res 6}${alignr}${top_mem mem 6}%${endif}
    ##################
    ##   NETWORK    ##
    ##################
    ${voffset 6}${font WenQuanYiMicroHei:bold:size=8.75}${color4}NETWORK${offset 8}${color8}${voffset -2}${hr 2}${font}
    ${voffset 4}${font PizzaDudeBullets:size=10}${color6}a${font}${color6}${offset 5}Private${offset 3}IP${alignr}${addr eth0}
    ${font PizzaDudeBullets:size=10}${color6}a${font}${color6}${offset 5}Public${offset 7}IP${alignr}${execi 1800 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'}
    ${voffset 4}${font PizzaDudeBullets:size=10}${color6}T${font}${color6}${offset 5}Down${alignr}${downspeed eth0}
    ${font PizzaDudeBullets:size=10}${color6}N${font}${color6}${offset 5}Up${alignr}${upspeed eth0}
    ${voffset 4}${font PizzaDudeBullets:size=10}${color6}T${font}${color6}${offset 5}Downloaded${alignr}${totaldown eth0}
    ${font PizzaDudeBullets:size=10}${color6}N${font}${color6}${offset 5}Uploaded${alignr}${totalup eth0}
    ##################
    ##   WEATHER    ##
    ##################
    ${voffset 6}${font WenQuanYiMicroHei:bold:size=8.75}${color4}WEATHER${offset 8}${color8}${voffset -2}${hr 2}${font}
    ${voffset 0}${goto 59}${font Weather:size=38}${color2}y${font}${voffset -33}${offset 14}${font RadioSpace:size=32}${color3}${execpi 1800 conkyForecast --imperial --location=USAZ0082}${font}
    ${voffset 0}${font Ubuntu:size=24}${color4}${alignc}${execi 1800 conkyForecast --location=USAZ0082 --datatype=CT}${font}
    ${voffset 15}${goto 20}${font ConkyWindNESW:style=Bold:size=38}${color2}${execi 1800 conkyForecast --location=USAZ0082 --datatype=BS}${font}${voffset -40}${goto 95}${font ConkyWeather:style=Bold:size=45}${execi 1800 conkyForecast --location=USAZ0082 --datatype=WF}${font}${voffset -36}${goto 185}${font MoonPhases:size=30}${execi 1800 conkyForecast --location=USAZ0082 --datatype=MF}${font}
    ${voffset 6}${goto 28}${font}${color6}${execpi 1800 conkyForecast --location=USAZ0082 --imperial --datatype=WS | sed -e 's/calm'/'\$\{offset 2}Calm/g' -e 's/mph'/'\$\{offset 2}mph/g'}${goto 89}Feels like ${execi 1800 conkyForecast --location=USAZ0082 --imperial --datatype=LT --centeredwidth=4 -iu}${execpi 1800 conkyForecast --location=USAZ0082 --datatype=MP | sed -e 's/First.*'/'\$\{goto 185}First Qtr/g' -e 's/Last.*'/'\$\{goto 185}Last Qtr/g' -e 's/New.*'/'\$\{goto 190}New/g' -e 's/Full.*'/'\$\{goto 194}Full/g' -e 's/Waning.*'/'\$\{goto 185}Waning/g' -e 's/Waxing.*'/'\$\{goto 185}Waxing/g'}
    ${voffset 10}${goto 35}${font}${color6}${execi 1800 conkyForecast --location=USAZ0082 --datatype=DW --startday=1 --shortweekday}${goto 89}${execi 1800 conkyForecast --location=USAZ0082 --datatype=DW --startday=2 --shortweekday}${goto 142}${execi 1800 conkyForecast --location=USAZ0082 --datatype=DW --startday=3 --shortweekday}${goto 196}${execi 1800 conkyForecast --location=USAZ0082 --datatype=DW --startday=4 --shortweekday}
    ${voffset 0}${goto 25}${font ConkyWeather:size=32}${color2}${execi 1800 conkyForecast --location=USAZ0082 --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
    ${voffset 0}${goto 25}${font}${color6}${execi 1800 conkyForecast --location=USAZ0082 --imperial --datatype=HT --startday=1 --hideunits --centeredwidth=4 -iu}/${offset 4}${execi 1800 conkyForecast --location=USAZ0082 --imperial --datatype=LT --startday=1 --hideunits --centeredwidth=4 -iu}${goto 79}${execi 1800 conkyForecast --location=USAZ0082 --imperial --datatype=HT --startday=2 --hideunits --centeredwidth=4 -iu}/${offset 4}${execi 1800 conkyForecast --location=USAZ0082 --imperial --datatype=LT --startday=2 --hideunits --centeredwidth=4 -iu}${goto 133}${execi 1800 conkyForecast --location=USAZ0082 --imperial --datatype=HT --startday=3 --hideunits --centeredwidth=4 -iu}/${offset 4}${execi 1800 conkyForecast --location=USAZ0082 --imperial --datatype=LT --startday=3 --hideunits --centeredwidth=4 -iu}${goto 187}${execi 1800 conkyForecast --location=USAZ0082 --imperial --datatype=HT --startday=4 --hideunits --centeredwidth=4 -iu}/${offset 4}${execi 1800 conkyForecast --location=USAZ0082 --imperial --datatype=LT --startday=4 --hideunits --centeredwidth=4 -iu}
    ##################
    ##     TIME     ##
    ##################
    ${voffset 6}${font WenQuanYiMicroHei:bold:size=8.75}${color4}TIME${offset 8}${color8}${voffset -2}${hr 2}${font}
    ${voffset 3}${if_match ${time %l}<=9}${voffset -4}${font RadioSpace:size=32}${color3}${alignc 7}${time %l:%M%p}${font}${else}${if_match ${time %l}>=10}${voffset -4}${font RadioSpace:size=32}${color3}${alignc -1}${time %l:%M%p}${font}${endif}${endif}
    ${voffset 0}${font LiberationSans:size=8}${color4}${alignc 2}Sunrise${offset 1}${execi 1800 conkyForecast --location=USAZ0082 --datatype=SR --startday=1}${color3}${offset 2}|${offset 2}${color4}Sunset${offset 1}${execi 1800 conkyForecast --location=USAZ0082 --datatype=SS --startday=1}${font}
    ##################
    ##   CALENDAR   ##
    ##################
    ${voffset 6}${font WenQuanYiMicroHei:bold:size=8.75}${color4}DATE${offset 8}${color8}${voffset -2}${hr 2}${font}
    ${voffset 18}${font LiberationMono:size=8}${color3}${alignc 60}${time %A}${font}
    ${voffset -3}${if_match ${time %e}<=9}${font LiberationMono:size=22}${color4}${alignc 70}${time %e}${font}${else}${if_match ${time %e}>=10}${font LiberationMono:size=22}${color4}${alignc 60}${time %e}${font}${endif}${endif}
    ${voffset -1}${font LiberationMono:size=8}${color3}${alignc 60}${time %B}${font}
    ${voffset -3}${font LiberationMono:size=8}${color3}${alignc 60}${time %Y}${font}
    ${voffset -82}${font LiberationMono:size=8}${color3}${execpi 60 VinDSL_Cal_5=`date +%-d`; cal | sed '1d' | sed s/^/"\$\{offset 97"\}/ | sed '/^ *$/d' | sed 's/\<'"$VinDSL_Cal_5"'\>/${color4}&${color3}/'}${font}
    ${voffset -91}${font CutOutsFor3DFX:size=64}${color8}${alignc 97}2${font}
    ##################
    ##  RHYTHMBOX   ##
    ##################
    ${if_running rhythmbox}${voffset 24}${font WenQuanYiMicroHei:bold:size=8.70}${color4}Now${offset 3}Playing${offset 8}${color8}${voffset -2}${hr 2}${font}
    ${voffset 10}${font LiberationSans:size=8}${color3}${alignc}${if_match "${execpi 1 expr length "`/usr/bin/rhythmbox-client --print-playing-format %tt | head -n 1`"}" >= "45"}${scroll 40 5 ${exec rhythmbox-client --print-playing-format %tt --no-start}}${else}${exec rhythmbox-client --print-playing-format %tt --no-start}${font}${endif}${endif}

    ~/home/username/.conky/draw_bg.lua
    Code:
    --[[
    Background by londonali1010 (2009)
    VinDSL Background Hack (2010)
    
    This script draws a background to the Conky window. It covers the whole of the Conky window, but you can specify rounded corners, if you wish.
    
    To call this script in Conky, use (assuming you have saved this script to ~/scripts/):
    	lua_load ~/scripts/draw_bg.lua
    	lua_draw_hook_pre draw_bg
    
    Changelog:
    + v2.4	VinDSL Hack (12.31.2010) Added shading example(s).
    + v2.3	VinDSL Hack (12.30.2010) Cleaned up the code a bit.
    + v2.2	VinDSL Hack (12.24.2010) Added cairo destroy function(s).
    + v2.1	VinDSL Hack (12.21.2010) Added height adjustment variable.
    + v1.0	Original release (07.10.2009)
    --]]
    
    -- Change these settings to affect your background:
    
    -- "corner_r" is the radius, in pixels, of the rounded corners. If you don't want rounded corners, use 0.
    	corner_r = 50
    
    -- Set the colour and transparency (alpha) of your background (0.00 - 0.99).
    
    --	(Light Shading Example)
    --	bg_colour = 0x4d4d4d
    --	bg_alpha = 0.50
    
    --	(Dark Shading Example)
    --	bg_colour = 0x000000
    --	bg_alpha = 0.50
    
    	bg_colour = 0x000000
    	bg_alpha = 0.35
    
    -- Tweaks the height of your background, in pixels. If you don't need to adjust the height, use 0.
    
    --	(Default Setting)
    --	vindsl_hack_height = 0
    
    	vindsl_hack_height = -235
    
    require 'cairo'
    cs, cr = nil
    function rgb_to_r_g_b(colour,alpha)
    	return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
    end
    
    function conky_draw_bg()
    	if conky_window == nil then return end
    	if cs == nil then cairo_destroy(cs) end
    	if cr == nil then cairo_destroy(cr) end
    	local w = conky_window.width
    	local h = conky_window.height
    	local v = vindsl_hack_height
    	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)
    	
    	cairo_move_to(cr,corner_r,0)
    	cairo_line_to(cr,w-corner_r,0)
    	cairo_curve_to(cr,w,0,w,0,w,corner_r)
    	cairo_line_to(cr,w,h+v-corner_r)
    	cairo_curve_to(cr,w,h+v,w,h+v,w-corner_r,h+v)
    	cairo_line_to(cr,corner_r,h+v)
    	cairo_curve_to(cr,0,h+v,0,h+v,0,h+v-corner_r)
    	cairo_line_to(cr,0,corner_r)
    	cairo_curve_to(cr,0,0,0,0,corner_r,0)
    	cairo_close_path(cr)
    
    	cairo_set_source_rgba(cr,rgb_to_r_g_b(bg_colour,bg_alpha))
    	cairo_fill(cr)
    
    	cairo_destroy(cr)
    end

    ~/home/username/.conkyForecast.config
    Code:
    # config settings for conkyForecast.py
    CACHE_FOLDERPATH = /tmp/
    CONNECTION_TIMEOUT = 5
    EXPIRY_MINUTES = 30
    TIME_FORMAT = %l:%M%p
    DATE_FORMAT = %d %b %Y
    LOCALE = en
    XOAP_PARTNER_ID = blah
    XOAP_LICENCE_KEY = blah
    MAXIMUM_DAYS_FORECAST = 4
    BASE_XOAP_URL = blah blah blah

    ~/home/username/.config/autostart/conky-start-delayed.sh
    Code:
    #!/bin/bash
    sleep 30 && DISPLAY=:0.0 conky;
    Intel ® P4 Extreme Edition 3.4 (Gallatin) || DFI ® LanParty PRO875B rev B1
    Crucial ® Ballistix Tracer PC4000 1GB || Mountain Mods U2-UFO Opti-1203
    XFX 7600GT 560M AGP (PV-T73A-UDF3) || Corsair HX520W Modular PSU

  4. #15784
    Join Date
    Feb 2009
    Beans
    122

    Question Re: Post your .conkyrc files w/ screenshots

    I have a problem running a script in conky, the script runs & displays but I get this error 'sh: Syntax error: Unterminated quoted string'. I can't see the cause of the error, can anyone help? Here is the script.

    #!/bin/sh
    # conkynetwork.sh
    # by Crinos512
    # Usage:
    # ${execp ~/.conky/conkyparts/conkynetwork.sh}
    #
    Month=`date +"%b '%y"`
    ExternalIP=`wget -q -O - checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'`

    echo "\${color1}\${stippled_hr 1}\${color}"
    echo "\${voffset -6} Network: (Internal: \${color2}\${addrs eth1}\${color}, External: \${color2}$ExternalIP\${color} )"
    echo "\${voffset -6}\${color1}\${stippled_hr 1}\${color}"
    echo "\${voffset -5}\$alignc\${downspeedgraph eth1 60,175 110000 550000 -t} \${upspeedgraph eth1 60,175 001100 005500 -t}"
    echo "\${voffset -68} \`Down\${goto 110}\${color2}\${downspeedf eth1} k/s \${color}\${goto 200}\`Up:\${goto 310}\${color2}\${upspeedf eth1} k/s\${color}"
    echo " \`Total Down:\${goto 110}\${color2}\${totaldown eth1}\${color}\${goto 200}\`Total Up:\${goto 310}\${color2}\${totalup eth1}\${color}"
    echo " \`Weekly Down:\${goto 110}\${color2}\${exec vnstat -w -i eth1 | grep \"current week\" | awk '{print \$3 \$4}'}\${color}\${goto 200}\`Weekly Up:\${goto 310}\${color2}\${exec vnstat -w -i eth1 | grep \"current week\" | awk '{print \$6 \$7}'}\${color}"
    echo " \`Monthly Down:\${goto 110}\${color2}\${exec vnstat -m -i eth1 | grep $Month | awk '{print \$3 \$4}'}\${color}\${goto 200}\`Monthly Up:\${goto 310}\${color2}\${exec vnstat -m -i eth1 | grep $Month | awk '{print \$6 \$7}'}\${color}"
    echo ""

    exit 0

  5. #15785
    Join Date
    Aug 2007
    Location
    Belgium
    Beans
    176
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Post your .conkyrc files w/ screenshots

    Hi all,

    My conky's: mpd (obvious), mini (topleft corner), mini2 (topright corner), system (bottom), weather (obvious) and in the top middle: episodes checks available links for series/programs I watch.

    All available upon request.

    Showing off special features? Naah, only pretty basic stuff...

    I'm working on filling the bottom a bit more (with a bit more fancy stuff this time) but I'm having problems (LINK) any python master willing to take a look? thanks in advance.
    Attached Images Attached Images
    El Belgicano
    -----------------
    Laptop: 5 years old Asus M6N (ATI9600/9700 graphics, 512Mb RAM, Intel Mobile 1.66GHz, 60Gb HDD) running 10.04-Lucid Lynx pretty nicely.

  6. #15786
    Join Date
    Feb 2009
    Beans
    122

    Re: Post your .conkyrc files w/ screenshots

    echo " \`Monthly Down:\${goto 110}\${color2}\${exec vnstat -m -i eth1 | grep $Month | awk '{print \$3 \$4}'}\${color}\${goto 200}\`Monthly Up:\${goto 310}\${color2}\${exec vnstat -m -i eth1 | grep $Month | awk '{print \$6 \$7}'}\${color}"
    Ok, I narrowed it down to the last line of the script. How can I fix this line?

  7. #15787
    Join Date
    Oct 2009
    Location
    Under a rock
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by djyoung4 View Post
    Ok mrpeachy i found an interesting little bug in your mayan clock code. When the clock hits the seventeen second mark on the clock it starts counting. So for instance when it went around the first time at the 17 second mark it actually said one second. when it went around the second time it said two seconds at the seventeen second point and so on. Here is the code I am using. Its the newest that you posted and I have the system monitor commented out.(maybe Ill want it later)

    I like how the minute gradually moves through the minute too. Am I right to assume that everything else does that?
    O and from my screenshots it looks like it goes from five to seven to six but I was just too lazy to fix it once I realized I had put them outta order
    to your second point, yes, everything moves in intervals of seconds...
    the script converts everything to seconds to calculate positions

    re the 17 second bug, yes I am aware of the glitch but I have absolutely no idea why its happening why is 17 seconds different from 16 or 18 or any other. I believe that at 17 seconds the seconds indicator is displaying the minutes number

    it has something to do with the text to words converter
    one solution would be to write a couple of extra lines so that when seconds reach 17 an if statements circumvents the number to words function and just sets the displayed text to say "seventeen seconds"

  8. #15788
    Join Date
    Feb 2009
    Beans
    122

    Re: Post your .conkyrc files w/ screenshots

    I found the problem, it was in this line..

    Month=`date +"%b '%y"`
    I changed it too read..

    Month=`date +"%b%y"`
    The error did not appear when I ran the script.

    ****The above post was not a good fix
    Last edited by akernan; January 9th, 2011 at 07:07 PM. Reason: Remove post

  9. #15789
    Join Date
    Dec 2008
    Location
    Indiana, United States
    Beans
    764

    Re: Post your .conkyrc files w/ screenshots

    can someone help me get one of these? i can't find the file in the home folder. i heard there was a sample somewhere in the filesystem from the first page of post but can't find it
    Whoever came up with the phrase "There is no such thing as a stupid question" obviously never had the internet.

  10. #15790
    Join Date
    Dec 2008
    Location
    Indiana, United States
    Beans
    764

    Re: Post your .conkyrc files w/ screenshots

    never mind figured it out you have to relaunch conky for changes to take effect. i can tell i'm gonna have some fun with this
    Whoever came up with the phrase "There is no such thing as a stupid question" obviously never had the internet.

Page 1579 of 2348 FirstFirst ... 5791079147915291569157715781579158015811589162916792079 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •