Page 1386 of 2348 FirstFirst ... 386886128613361376138413851386138713881396143614861886 ... LastLast
Results 13,851 to 13,860 of 23480

Thread: Post your .conkyrc files w/ screenshots

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

    Re: Re Jigged Conky

    Quote Originally Posted by martinblunn View Post
    Any suggestions to improve it would be more than welcome though.
    how about some accent colors... hot pinks, fuchsias... maybe a dash of teal or puce?

    looks great btw

  2. #13852
    Join Date
    Nov 2008
    Location
    #!
    Beans
    1,749

    Re: Re Jigged Conky

    Quote Originally Posted by mrpeachy View Post
    how about some accent colors... hot pinks, fuchsias... maybe a dash of teal or puce?

    looks great btw
    You have to include Mauve,Fawn and Hooker's Green

  3. #13853
    Join Date
    Sep 2008
    Location
    Italy Varese..
    Beans
    8
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Post your .conkyrc files w/ screenshots

    Hi boys, someone of you knows the codes to have this conky posted from mrpeachy



    http://crunchbanglinux.org/forums/post/85280/#p85280

    Thanks

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

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by degan View Post
    Hi boys, someone of you knows the codes to have this conky posted from mrpeachy



    http://crunchbanglinux.org/forums/post/85280/#p85280

    Thanks
    Check this post. tryin to get my version of it up and running now
    I'm a super power user

  5. #13855
    Join Date
    Oct 2009
    Location
    Under a rock
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    The conkybar is still a work in progress...
    once I have a version I'm happy with and that works without bugs (and after doing some spring cleaning of the lua script)

    well, ive been working on my script offf and on and this is what it looks like currently


    i have a sun position figure i want to put in the weather section, and im not too happy with my system monitor section

    here is the lua that does everything, needs a lot of refining, but to give you a taste of whats involved:
    Code:
    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 conky_draw_test()
    local updates=conky_parse('${updates}')
    update_num=tonumber(updates)
    
    if conky_window==nil then return end
    local w=conky_window.width
    local h=conky_window.height
    local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, w, h)
    cr=cairo_create(cs)
    
    if update_num > 5 then
    
    
    tdread = io.open("/home/mcdowall/conkyset/tdset.txt", "r")
    tdset = tdread:read("*lines")
    
    pread = io.open("/home/mcdowall/conkyset/pset.txt", "r")
    pset = pread:read("*lines")
    
    smread = io.open("/home/mcdowall/conkyset/smset.txt", "r")
    smset = smread:read("*lines")
    
    wread = io.open("/home/mcdowall/conkyset/wset.txt", "r")
    wset = wread:read("*lines")
    
    --TIME AND DATE SECTION---------------------------------------------------------------------------------------
    --------------
    across=0
    font="Sans"
    fontsize=14
    --------------
    if tdset=="1" then
    hours=os.date("%I")
    minutes=os.date("%M")
    seconds=os.date("%S")
    ampm=os.date("%p")
    cairo_set_source_rgba (cr, 1, 1, 1, 1);
    cairo_rectangle (cr, 0, 0, 220, 20)
    cairo_fill (cr)
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
    cairo_set_font_size (cr, fontsize);
    cairo_set_source_rgba (cr, 0, 0, 0, 1);
    cairo_move_to(cr, across, 15);
    cairo_show_text (cr, "TIME & DATE")
    
    end
    --ACTIVE SECTION-------------------------------------------------------------------------------------------
    if tdset=="2" then
    
    --------------
    across=0
    font="Sans"
    fontsize=14
    --------------
    cairo_set_source_rgba (cr, 1, 1, 1, 1);
    cairo_rectangle (cr, 0, 0, 220, 20)
    cairo_fill (cr)
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
    cairo_set_font_size (cr, fontsize);
    cairo_set_source_rgba (cr, 0, 0, 0, 1);
    cairo_move_to (cr, across, 15);
    cairo_show_text (cr, "TIME & DATE")
    --------------
    across=0
    down=50
    font="Sans"
    fontsize=14
    ---------------
    hours=os.date("%I")
    minutes=os.date("%M")
    seconds=os.date("%S")
    ampm=os.date("%p")
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
    cairo_set_font_size (cr, fontsize);
    cairo_set_source_rgba (cr, 1, 1, 1, 1);
    cairo_move_to (cr, across, down)
    cairo_show_text (cr, hours .. ":" .. minutes .. ":" .. seconds .. " " .. ampm)
    --print month
    -------------------------
    across=0
    down=down+(fontsize*1.5)
    ------------------------
    font="Sans"
    fontsize=14
    thismonth=os.date("%B")
    day=os.date("%d")
    year= os.date("%Y")
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
    cairo_set_font_size (cr, fontsize);
    cairo_set_source_rgba (cr, 1, 1, 1, 1);
    cairo_move_to (cr, across, down)
    cairo_show_text (cr, thismonth .. "   " .. day .. "  " .. year)
    
    -----------------------
    --calendar previous month
    ---------------------------------------------
    across=0
    down=down+(fontsize*3)
    ------------------------
    local months = { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" }
    pmonth=(tonumber(os.date("%m")))-1
    if pmonth==0 then pmonth=12 end
    prmonth=months[pmonth]
    font="Sans"
    fontsize=14
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
    cairo_set_font_size (cr, fontsize);
    cairo_set_source_rgba (cr, 1, 1, 1, 1);
    cairo_move_to (cr, across, down)
    cairo_show_text (cr, "Previous (" .. prmonth .. ")")
    ----------------------
    across=0
    down=down+(fontsize*1.5)
    ------------------------
    --calendar calcs previous
    year=os.date("%G")
    t1 = os.time( {    year=year,month=03,day=01,hour=00,min=0,sec=0} );
    t2 = os.time( {    year=year,month=02,day=01,hour=00,min=0,sec=0} );
    feb=(os.difftime(t1,t2))/(24*60*60)
    local monthdays = { 31, feb, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }
    local day = tonumber(os.date("%w"))+1
    month=tonumber(os.date("%m"))-1
    if month==0 then month=12 end
    mdays=monthdays[tonumber(month)]
    local day_num = (tonumber(os.date("%d")))+(mdays-28)
    local remainder = day_num % 7
    start_day = day - (day_num % 7)
    if start_day < 0 then start_day = 7 + start_day end     
    x=mdays+start_day
    dnum={}
    for i=1,x+14 do
    if i<=start_day then dnum[i]="  " 
    else dn=i-start_day
    if dn=="nil" then dn=0 end
    if dn<=9 then dn=(" " .. dn) end
    if i>x then dn="" end
    dnum[i]=dn
    end
    end--for
    --------------
    font="mono"
    fontsize=12
    --------------
    today=day_num
    day=today+start_day
    drow=math.ceil(day/7)
    if day<7 then drownum=day
    else drownum=day-7
    end
    if drownum>7 then drownum=drownum-7 end
    if drownum>7 then drownum=drownum-7 end
    if drownum>7 then drownum=drownum-7 end
    --print calendar titles
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, fontsize);
    cairo_set_source_rgba (cr, 1, 1, 1, 1);
    cairo_move_to (cr, across, down)
    cairo_show_text (cr, "SU  MO  TU  WE  TH  FR  SA")
    --print calendar numbers
    cairo_move_to (cr, across, down+((fontsize+(fontsize/4))))
    cairo_show_text (cr, dnum[1] .. "  " .. dnum[2] .. "  " .. dnum[3] .. "  " .. dnum[4] .. "  " .. dnum[5] .. "  " .. dnum[6] .. "  " .. dnum[7])
    cairo_move_to (cr, across, down+((fontsize+(fontsize/4))*2))
    cairo_show_text (cr, dnum[8] .. "  " .. dnum[9] .. "  " .. dnum[10] .. "  " .. dnum[11] .. "  " .. dnum[12] .. "  " .. dnum[13] .. "  " .. dnum[14])
    cairo_move_to (cr, across, down+((fontsize+(fontsize/4))*3))
    cairo_show_text (cr, dnum[15] .. "  " .. dnum[16] .. "  " .. dnum[17] .. "  " .. dnum[18] .. "  " .. dnum[19] .. "  " .. dnum[20] .. "  " .. dnum[21])
    cairo_move_to (cr, across, down+((fontsize+(fontsize/4))*4))
    cairo_show_text (cr, dnum[22] .. "  " .. dnum[23] .. "  " .. dnum[24] .. "  " .. dnum[25] .. "  " .. dnum[26] .. "  " .. dnum[27] .. "  " .. dnum[28])
    cairo_move_to (cr, across, down+((fontsize+(fontsize/4))*5))
    cairo_show_text (cr, dnum[29] .. "  " .. dnum[30] .. "  " .. dnum[31] .. "  " .. dnum[32] .. "  " .. dnum[33] .. "  " .. dnum[34] .. "  " .. dnum[35])
    cairo_move_to (cr, across, down+((fontsize+(fontsize/4))*6))
    cairo_show_text (cr, dnum[36] .. "  " .. dnum[37] .. "  " .. dnum[38] .. "  " .. dnum[39] .. "  " .. dnum[40] .. "  " .. dnum[41] .. "  " .. dnum[42])
    --end calendar previous month -----
    --calendar current month
    --------------------------
    across=0
    down=down+((fontsize+(fontsize/4))*8)
    ------------------------
    font="Sans"
    fontsize=14
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
    cairo_set_font_size (cr, fontsize);
    cairo_set_source_rgba (cr, 1, 1, 1, 1);
    cairo_move_to (cr, across, down)
    cairo_show_text (cr, "Current (" .. thismonth .. ")")
    --calendar this month-------------
    ----------------------
    across=0
    down=down+(fontsize*1.5)
    ------------------------
    --calendar calcs
    year=os.date("%G")
    t1 = os.time( {    year=year,month=03,day=01,hour=00,min=0,sec=0} );
    t2 = os.time( {    year=year,month=02,day=01,hour=00,min=0,sec=0} );
    feb=(os.difftime(t1,t2))/(24*60*60)
    local monthdays = { 31, feb, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }
    local day = tonumber(os.date("%w"))+1
    local day_num = tonumber(os.date("%d"))
    local remainder = day_num % 7
    start_day = day - (day_num % 7)
    if start_day < 0 then start_day = 7 + start_day end     
    month=os.date("%m")
    mdays=monthdays[tonumber(month)]
    mdaystm=mdays
    x=mdays+start_day
    dnum={}
    for i=1,x+14 do
    if i<=start_day then dnum[i]="  " 
    else dn=i-start_day
    if dn=="nil" then dn=0 end
    if dn<=9 then dn=(" " .. dn) end
    if i>x then dn="" end
    dnum[i]=dn
    end
    end--for
    --------------
    font="mono"
    fontsize=12
    --------------
    today=day_num
    day=today+start_day
    drow=math.ceil(day/7)
    if day<7 then drownum=day
    else drownum=day-7
    end
    if drownum>7 then drownum=drownum-7 end
    if drownum>7 then drownum=drownum-7 end
    if drownum>7 then drownum=drownum-7 end
    r1=across+(fontsize*0.65)+((drownum-1)*(fontsize*2.325))
    r2=down+(fontsize*1.6)+((drow-1)*(fontsize*1.25))
    --print indicator
    cairo_set_source_rgba (cr, 1, 1, 1, 0.2);
    cairo_set_line_width (cr, fontsize*1.5)
    cairo_move_to (cr, r1 , r2)
    cairo_rel_line_to (cr, 0, fontsize*-1.5)
    cairo_stroke (cr)
    --print calendar titles
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, fontsize);
    cairo_set_source_rgba (cr, 1, 1, 1, 1);
    cairo_move_to (cr, across, down)
    cairo_show_text (cr, "SU  MO  TU  WE  TH  FR  SA")
    --print calendar numbers
    cairo_move_to (cr, across, down+((fontsize+(fontsize/4))))
    cairo_show_text (cr, dnum[1] .. "  " .. dnum[2] .. "  " .. dnum[3] .. "  " .. dnum[4] .. "  " .. dnum[5] .. "  " .. dnum[6] .. "  " .. dnum[7])
    cairo_move_to (cr, across, down+((fontsize+(fontsize/4))*2))
    cairo_show_text (cr, dnum[8] .. "  " .. dnum[9] .. "  " .. dnum[10] .. "  " .. dnum[11] .. "  " .. dnum[12] .. "  " .. dnum[13] .. "  " .. dnum[14])
    cairo_move_to (cr, across, down+((fontsize+(fontsize/4))*3))
    cairo_show_text (cr, dnum[15] .. "  " .. dnum[16] .. "  " .. dnum[17] .. "  " .. dnum[18] .. "  " .. dnum[19] .. "  " .. dnum[20] .. "  " .. dnum[21])
    cairo_move_to (cr, across, down+((fontsize+(fontsize/4))*4))
    cairo_show_text (cr, dnum[22] .. "  " .. dnum[23] .. "  " .. dnum[24] .. "  " .. dnum[25] .. "  " .. dnum[26] .. "  " .. dnum[27] .. "  " .. dnum[28])
    cairo_move_to (cr, across, down+((fontsize+(fontsize/4))*5))
    cairo_show_text (cr, dnum[29] .. "  " .. dnum[30] .. "  " .. dnum[31] .. "  " .. dnum[32] .. "  " .. dnum[33] .. "  " .. dnum[34] .. "  " .. dnum[35])
    cairo_move_to (cr, across, down+((fontsize+(fontsize/4))*6))
    cairo_show_text (cr, dnum[36] .. "  " .. dnum[37] .. "  " .. dnum[38] .. "  " .. dnum[39] .. "  " .. dnum[40] .. "  " .. dnum[41] .. "  " .. dnum[42])
    --end calendar this month -----
    ----------------------
    --calendar next month
    ----------------------
    ------------------------
    across=0
    down=down+((fontsize+(fontsize/4))*8)
    ------------------------
    font="Sans"
    fontsize=14
    local months = { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" }
    nmonth=(tonumber(os.date("%m")))+1
    if nmonth==13 then nmonth=1 end
    nxmonth=months[nmonth]
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
    cairo_set_font_size (cr, fontsize);
    cairo_set_source_rgba (cr, 1, 1, 1, 1);
    cairo_move_to (cr, across, down)
    cairo_show_text (cr, "Next (" .. nxmonth .. ")")
    across=0
    down=down+(fontsize*1.5)
    ------------------------
    year=os.date("%G")
    t1 = os.time( {    year=year,month=03,day=01,hour=00,min=0,sec=0} );
    t2 = os.time( {    year=year,month=02,day=01,hour=00,min=0,sec=0} );
    feb=(os.difftime(t1,t2))/(24*60*60)
    local monthdays = { 31, feb, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }
    local day = tonumber(os.date("%w"))+1
    month=tonumber(os.date("%m"))+1
    if month==13 then month=1 end
    mdays=monthdays[tonumber(month)]
    local day_num = (tonumber(os.date("%d")))+(28-mdaystm)
    local remainder = day_num % 7
    start_day = day - (day_num % 7)
    if start_day < 0 then start_day = 7 + start_day end     
    x=mdays+start_day
    dnum={}
    for i=1,x+14 do
    if i<=start_day then dnum[i]="  " 
    else dn=i-start_day
    if dn=="nil" then dn=0 end
    if dn<=9 then dn=(" " .. dn) end
    if i>x then dn="" end
    dnum[i]=dn
    end
    end--for
    --------------
    font="mono"
    fontsize=12
    --------------
    today=day_num
    day=today+start_day
    drow=math.ceil(day/7)
    if day<7 then drownum=day
    else drownum=day-7
    end
    if drownum>7 then drownum=drownum-7 end
    if drownum>7 then drownum=drownum-7 end
    if drownum>7 then drownum=drownum-7 end
    --print calendar titles
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, fontsize);
    cairo_set_source_rgba (cr, 1, 1, 1, 1);
    cairo_move_to (cr, across, down)
    cairo_show_text (cr, "SU  MO  TU  WE  TH  FR  SA")
    --print calendar numbers
    cairo_move_to (cr, across, down+((fontsize+(fontsize/4))))
    cairo_show_text (cr, dnum[1] .. "  " .. dnum[2] .. "  " .. dnum[3] .. "  " .. dnum[4] .. "  " .. dnum[5] .. "  " .. dnum[6] .. "  " .. dnum[7])
    cairo_move_to (cr, across, down+((fontsize+(fontsize/4))*2))
    cairo_show_text (cr, dnum[8] .. "  " .. dnum[9] .. "  " .. dnum[10] .. "  " .. dnum[11] .. "  " .. dnum[12] .. "  " .. dnum[13] .. "  " .. dnum[14])
    cairo_move_to (cr, across, down+((fontsize+(fontsize/4))*3))
    cairo_show_text (cr, dnum[15] .. "  " .. dnum[16] .. "  " .. dnum[17] .. "  " .. dnum[18] .. "  " .. dnum[19] .. "  " .. dnum[20] .. "  " .. dnum[21])
    cairo_move_to (cr, across, down+((fontsize+(fontsize/4))*4))
    cairo_show_text (cr, dnum[22] .. "  " .. dnum[23] .. "  " .. dnum[24] .. "  " .. dnum[25] .. "  " .. dnum[26] .. "  " .. dnum[27] .. "  " .. dnum[28])
    cairo_move_to (cr, across, down+((fontsize+(fontsize/4))*5))
    cairo_show_text (cr, dnum[29] .. "  " .. dnum[30] .. "  " .. dnum[31] .. "  " .. dnum[32] .. "  " .. dnum[33] .. "  " .. dnum[34] .. "  " .. dnum[35])
    cairo_move_to (cr, across, down+((fontsize+(fontsize/4))*6))
    cairo_show_text (cr, dnum[36] .. "  " .. dnum[37] .. "  " .. dnum[38] .. "  " .. dnum[39] .. "  " .. dnum[40] .. "  " .. dnum[41] .. "  " .. dnum[42])
    --end calendar next month -----
    end
    --TIME AND DATE SECTION END---------------------------------------------------------------------------------------
    
    --WEATHER SECTION--------------
    --------------
    across=230
    font="Sans"
    fontsize=14
    --------------
    weather_section=0
    if wset=="1" then
    cairo_set_source_rgba (cr, 1, 1, 1, 1);
    cairo_rectangle (cr, across, weather_section, 220, 20)
    cairo_fill (cr)
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
    cairo_set_font_size (cr, fontsize);
    cairo_set_source_rgba (cr, 0, 0, 0, 1);
    cairo_move_to(cr, across, weather_section+15);
    cairo_show_text (cr, "WEATHER")
    end
    
    --ACTIVE SECTION-----------------------
    wtimer=(updates % 1800)+1
    if update_num==6 or wtimer==1 then
    --weather icons for today and next 4
    dayt=conky_parse("${exec conkyForecast --datatype=DW --startday=0 --shortweekday}")
    day1=conky_parse("${exec conkyForecast --datatype=DW --startday=1 --shortweekday}")
    day2=conky_parse("${exec conkyForecast --datatype=DW --startday=2 --shortweekday}")
    day3=conky_parse("${exec conkyForecast --datatype=DW --startday=3 --shortweekday}")
    day4=conky_parse("${exec conkyForecast --datatype=DW --startday=4 --shortweekday}")
    wit=conky_parse("${exec conkyForecast --location=USMO0787 --datatype=WF}")
    wit1=conky_parse("${exec conkyForecast --location=USMO0787 --startday=1 --datatype=WF}")
    wit2=conky_parse("${exec conkyForecast --location=USMO0787 --startday=2 --datatype=WF}")
    wit3=conky_parse("${exec conkyForecast --location=USMO0787 --startday=3 --datatype=WF}")
    wit4=conky_parse("${exec conkyForecast --location=USMO0787 --startday=4 --datatype=WF}")
    hgh=conky_parse("${exec conkyForecast --location=USMO0787 --startday=0 --datatype=HT --imperial}")
    hgh1=(conky_parse("${exec conkyForecast --location=USMO0787 --startday=1 --datatype=HT --imperial}"))
    hgh2=(conky_parse("${exec conkyForecast --location=USMO0787 --startday=2 --datatype=HT --imperial}"))
    hgh3=(conky_parse("${exec conkyForecast --location=USMO0787 --startday=3 --datatype=HT --imperial}"))
    hgh4=(conky_parse("${exec conkyForecast --location=USMO0787 --startday=4 --datatype=HT --imperial}"))
    low=(conky_parse("${exec conkyForecast --location=USMO0787 --startday=0 --datatype=LT --imperial}"))
    low1=(conky_parse("${exec conkyForecast --location=USMO0787 --startday=1 --datatype=LT --imperial}"))
    low2=(conky_parse("${exec conkyForecast --location=USMO0787 --startday=2 --datatype=LT --imperial}"))
    low3=(conky_parse("${exec conkyForecast --location=USMO0787 --startday=3 --datatype=LT --imperial}"))
    low4=(conky_parse("${exec conkyForecast --location=USMO0787 --startday=4 --datatype=LT --imperial}"))
    ppt=(conky_parse("${exec conkyForecast --location=USMO0787 --startday=0 --datatype=PC}"))
    ppt1=(conky_parse("${exec conkyForecast --location=USMO0787 --startday=1 --datatype=PC}"))
    ppt2=(conky_parse("${exec conkyForecast --location=USMO0787 --startday=2 --datatype=PC}"))
    ppt3=(conky_parse("${exec conkyForecast --location=USMO0787 --startday=3 --datatype=PC}"))
    ppt4=(conky_parse("${exec conkyForecast --location=USMO0787 --startday=4 --datatype=PC}"))
    hum=(conky_parse("${exec conkyForecast --location=USMO0787 --startday=0 --datatype=HM}"))
    hum1=(conky_parse("${exec conkyForecast --location=USMO0787 --startday=1 --datatype=HM}"))
    hum2=(conky_parse("${exec conkyForecast --location=USMO0787 --startday=2 --datatype=HM}"))
    hum3=(conky_parse("${exec conkyForecast --location=USMO0787 --startday=3 --datatype=HM}"))
    hum4=(conky_parse("${exec conkyForecast --location=USMO0787 --startday=4 --datatype=HM}"))
    else
    end
    --------------
    across=230
    font="Sans"
    fontsize=14
    --------------
    if wset=="2" then
    
    cairo_set_source_rgba (cr, 1, 1, 1, 1);
    cairo_rectangle (cr, across, weather_section, 220, 20)
    cairo_fill (cr)
    
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
    cairo_set_font_size (cr, fontsize);
    cairo_set_source_rgba (cr, 0, 0, 0, 1);
    cairo_move_to(cr, across, weather_section+15);
    cairo_show_text (cr, "WEATHER")
    --------------
    across=230
    font="Sans"
    fontsize1=14
    --------------
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
    cairo_set_font_size (cr, fontsize1);
    cairo_set_source_rgba (cr, 1, 1, 1, 1);
    cairo_move_to (cr, across, weather_section+(fontsize*3))
    cairo_show_text (cr, dayt .. "    " .. day1 .. "   " .. day2 .. "  " .. day3 .. " " .. day4)
    --------------
    across=230
    font="ConkyWeather"
    fontsize2=26
    --------------
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, fontsize2);
    cairo_set_source_rgba (cr, 1, 1, 1, 1);
    cairo_move_to (cr, across, weather_section+(fontsize1*3.5)+(fontsize2))
    cairo_show_text (cr, wit .. "  " .. wit1 .. "  " .. wit2 .. "  " .. wit3 .. "  " .. wit4)
    
    --------------
    across=230
    font="Sans"
    fontsize3=14
    --------------
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
    cairo_set_font_size (cr, fontsize3);
    cairo_set_source_rgba (cr, 1, 1, 1, 1);
    cairo_move_to (cr, across, weather_section+((fontsize1*3.5)+(fontsize2)+(fontsize3*2)))
    cairo_show_text (cr, "Details")
    
    --------------
    across=230
    font="Mono"
    fontsize4=12
    --------------
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, fontsize4);
    cairo_set_source_rgba (cr, 1, 1, 1, 1);
    cairo_move_to (cr, across, weather_section+((fontsize1*3.5)+(fontsize2)+(fontsize3*3.5)))
    cairo_show_text (cr, "     HGH   LOW   PPT  HUM")
    add=fontsize4*1.5
    --------------
    across=230
    font="Mono"
    fontsize4=12
    --------------
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, fontsize4);
    cairo_set_source_rgba (cr, 1, 1, 1, 1);
    cairo_move_to (cr, across, weather_section+((fontsize1*3.5)+(fontsize2)+(fontsize3*3.5))+add)
    cairo_show_text (cr, dayt)
    add=fontsize4*1.5+add
    cairo_move_to (cr, across, weather_section+((fontsize1*3.5)+(fontsize2)+(fontsize3*3.5))+add)
    cairo_show_text (cr, day1)
    add=fontsize4*1.5+add
    cairo_move_to (cr, across, weather_section+((fontsize1*3.5)+(fontsize2)+(fontsize3*3.5))+add)
    cairo_show_text (cr, day2)
    add=fontsize4*1.5+add
    cairo_move_to (cr, across, weather_section+((fontsize1*3.5)+(fontsize2)+(fontsize3*3.5))+add)
    cairo_show_text (cr, day3)
    add=fontsize4*1.5+add
    cairo_move_to (cr, across, weather_section+((fontsize1*3.5)+(fontsize2)+(fontsize3*3.5))+add)
    cairo_show_text (cr, day4)
    --------------
    across=230+fontsize4*3
    font="Mono"
    fontsize4=12
    --------------
    add=fontsize4*1.5
    cairo_move_to (cr, across, weather_section+((fontsize1*3.5)+(fontsize2)+(fontsize3*3.5)+add))
    cairo_show_text (cr, hgh)
    add=fontsize4*1.5+add
    cairo_move_to (cr, across, weather_section+((fontsize1*3.5)+(fontsize2)+(fontsize3*3.5))+add)
    cairo_show_text (cr, hgh1)
    add=fontsize4*1.5+add
    cairo_move_to (cr, across, weather_section+((fontsize1*3.5)+(fontsize2)+(fontsize3*3.5))+add)
    cairo_show_text (cr, hgh2)
    add=fontsize4*1.5+add
    cairo_move_to (cr, across, weather_section+((fontsize1*3.5)+(fontsize2)+(fontsize3*3.5))+add)
    cairo_show_text (cr, hgh3)
    add=fontsize4*1.5+add
    cairo_move_to (cr, across, weather_section+((fontsize1*3.5)+(fontsize2)+(fontsize3*3.5))+add)
    cairo_show_text (cr, hgh4)
    
    --------------
    across=230+fontsize4*6.5
    font="Mono"
    fontsize4=12
    --------------
    add=fontsize4*1.5
    cairo_move_to (cr, across, weather_section+((fontsize1*3.5)+(fontsize2)+(fontsize3*3.5)+add))
    cairo_show_text (cr, low)
    add=fontsize4*1.5+add
    cairo_move_to (cr, across, weather_section+((fontsize1*3.5)+(fontsize2)+(fontsize3*3.5))+add)
    cairo_show_text (cr, low1)
    add=fontsize4*1.5+add
    cairo_move_to (cr, across, weather_section+((fontsize1*3.5)+(fontsize2)+(fontsize3*3.5))+add)
    cairo_show_text (cr, low2)
    add=fontsize4*1.5+add
    cairo_move_to (cr, across, weather_section+((fontsize1*3.5)+(fontsize2)+(fontsize3*3.5))+add)
    cairo_show_text (cr, low3)
    add=fontsize4*1.5+add
    cairo_move_to (cr, across, weather_section+((fontsize1*3.5)+(fontsize2)+(fontsize3*3.5))+add)
    cairo_show_text (cr, low4)
    
    --------------
    across=230+fontsize4*10
    font="Mono"
    fontsize4=12
    --------------
    add=fontsize4*1.5
    cairo_move_to (cr, across, weather_section+((fontsize1*3.5)+(fontsize2)+(fontsize3*3.5)+add))
    cairo_show_text (cr, ppt)
    add=fontsize4*1.5+add
    cairo_move_to (cr, across, weather_section+((fontsize1*3.5)+(fontsize2)+(fontsize3*3.5))+add)
    cairo_show_text (cr, ppt1)
    add=fontsize4*1.5+add
    cairo_move_to (cr, across, weather_section+((fontsize1*3.5)+(fontsize2)+(fontsize3*3.5))+add)
    cairo_show_text (cr, ppt2)
    add=fontsize4*1.5+add
    cairo_move_to (cr, across, weather_section+((fontsize1*3.5)+(fontsize2)+(fontsize3*3.5))+add)
    cairo_show_text (cr, ppt3)
    add=fontsize4*1.5+add
    cairo_move_to (cr, across, weather_section+((fontsize1*3.5)+(fontsize2)+(fontsize3*3.5))+add)
    cairo_show_text (cr, ppt4)
    
    --------------
    across=230+fontsize4*13
    font="Mono"
    fontsize4=12
    --------------
    add=fontsize4*1.5
    cairo_move_to (cr, across, weather_section+((fontsize1*3.5)+(fontsize2)+(fontsize3*3.5)+add))
    cairo_show_text (cr, hum)
    add=fontsize4*1.5+add
    cairo_move_to (cr, across, weather_section+((fontsize1*3.5)+(fontsize2)+(fontsize3*3.5))+add)
    cairo_show_text (cr, hum1)
    add=fontsize4*1.5+add
    cairo_move_to (cr, across, weather_section+((fontsize1*3.5)+(fontsize2)+(fontsize3*3.5))+add)
    cairo_show_text (cr, hum2)
    add=fontsize4*1.5+add
    cairo_move_to (cr, across, weather_section+((fontsize1*3.5)+(fontsize2)+(fontsize3*3.5))+add)
    cairo_show_text (cr, hum3)
    add=fontsize4*1.5+add
    cairo_move_to (cr, across, weather_section+((fontsize1*3.5)+(fontsize2)+(fontsize3*3.5))+add)
    cairo_show_text (cr, hum4)
    
    end
    
    
    --WEATHER SECTION END----------
    
    
    --SYSTEM MONITOR SECTION--------------------------------------------------------------------------------------
    --------------
    across=460
    font="Sans"
    fontsize=14
    --------------
    system_section=0
    if smset=="1" then
    cairo_set_source_rgba (cr, 1, 1, 1, 1);
    cairo_rectangle (cr, across, system_section, 220, 20)
    cairo_fill (cr)
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
    cairo_set_font_size (cr, fontsize);
    cairo_set_source_rgba (cr, 0, 0, 0, 1);
    cairo_move_to(cr, across, system_section+15);
    cairo_show_text (cr, "SYSTEM MONITOR")
    end
    
    ----------------ACTIVE SECTION-----------------------------------------------------------------------------------------------
    
    
    if smset=="2" then
    --------------
    across=460
    font="Sans"
    fontsize=14
    --------------
    cairo_set_source_rgba (cr, 1, 1, 1, 1);
    cairo_rectangle (cr, across, system_section, 220, 20)
    cairo_fill (cr)
    
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
    cairo_set_font_size (cr, fontsize);
    cairo_set_source_rgba (cr, 0, 0, 0, 1);
    cairo_move_to (cr, across, system_section+15)
    cairo_show_text (cr, "SYSTEM MONITOR")
    
    --------------
    across=460
    font="Sans"
    fontsize=12
    --------------
    uptime=conky_parse('${uptime}')
    kern=conky_parse('${kernel}')
    deskname=conky_parse('${desktop_name}')
    iowrite=conky_parse('${diskio_read sda1}')
    ioread=conky_parse('${diskio_write sda1}')
    load=conky_parse('${loadavg}')
    
    
    cpu=conky_parse('${cpu}')
    ram=conky_parse('${memperc}')
    hdd=conky_parse('${fs_used_perc /}')
    hdd2=conky_parse('${fs_used_perc /media/Windows XP}')
    iowrite2=conky_parse('${diskio_read sda2}')
    ioread2=conky_parse('${diskio_write sda2}')
    swp=conky_parse('${swapperc}')
    usp=conky_parse('${upspeed eth0}')
    dsp=conky_parse('${downspeed eth0}')
    uld=conky_parse('${totalup eth0}')
    dld=conky_parse('${totaldown eth0}')
    
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, fontsize);
    cairo_set_source_rgba (cr, 1, 1, 1, 1);
    down=fontsize*4
    add=down
    cairo_move_to (cr, across, system_section+add)
    cairo_show_text (cr, "Kernel: " .. kern)
    add=fontsize*1.5
    cairo_move_to (cr, across, system_section+(fontsize*4)+add)
    cairo_show_text (cr, "Uptime: " .. uptime)
    add=fontsize*1.5+add
    cairo_move_to (cr, across, system_section+(fontsize*4)+add)
    cairo_show_text (cr, "Deskname: " .. deskname)
    add=fontsize*1.5+add
    cairo_move_to (cr, across, system_section+(fontsize*4)+add)
    cairo_show_text (cr, "Load: " .. load)
    add=fontsize*1.5+add
    
    cairo_move_to (cr, across, system_section+(fontsize*4)+add)
    cairo_show_text (cr, "CPU: " .. cpu .. "%")
    ------------
    across=120-10+460
    ------------
    cairo_set_line_width (cr, 1)
    cairo_rectangle (cr, across, system_section+(fontsize*3)+add, 100, fontsize)
    cairo_stroke (cr)
    cairo_rectangle (cr, across, system_section+(fontsize*3)+add, cpu, fontsize)
    cairo_fill (cr)
    add=fontsize*1.5+add
    ------------
    across=460
    ------------
    cairo_move_to (cr, across, system_section+(fontsize*4)+add)
    cairo_show_text (cr, "RAM: " .. ram .. "%")
    ------------
    across=120-10+460
    ------------
    cairo_set_line_width (cr, 1)
    cairo_rectangle (cr, across, system_section+(fontsize*3)+add, 100, fontsize)
    cairo_stroke (cr)
    cairo_rectangle (cr, across, system_section+(fontsize*3)+add, ram, fontsize)
    cairo_fill (cr)
    add=fontsize*1.5+add
    ------------
    across=460
    ------------
    cairo_move_to (cr, across, system_section+(fontsize*4)+add)
    cairo_show_text (cr, "HDD1: " .. hdd .. "%")
    ------------
    across=120-10+460
    ------------
    cairo_set_line_width (cr, 1)
    cairo_rectangle (cr, across, system_section+(fontsize*3)+add, 100, fontsize)
    cairo_stroke (cr)
    cairo_rectangle (cr, across, system_section+(fontsize*3)+add, hdd, fontsize)
    cairo_fill (cr)
    add=fontsize*1.5+add
    ------------
    across=460
    ------------
    cairo_move_to (cr, across, system_section+(fontsize*4)+add)
    cairo_show_text (cr, "Read: " .. ioread)
    add=fontsize*1.5+add
    cairo_move_to (cr, across, system_section+(fontsize*4)+add)
    cairo_show_text (cr, "Write: " .. iowrite)
    add=fontsize*1.5+add
    
    ------------
    across=460
    ------------
    cairo_move_to (cr, across, system_section+(fontsize*4)+add)
    cairo_show_text (cr, "HDD2: " .. hdd2 .. "%")
    ------------
    across=120-10+460
    ------------
    cairo_set_line_width (cr, 1)
    cairo_rectangle (cr, across, system_section+(fontsize*3)+add, 100, fontsize)
    cairo_stroke (cr)
    cairo_rectangle (cr, across, system_section+(fontsize*3)+add, hdd2, fontsize)
    cairo_fill (cr)
    add=fontsize*1.5+add
    ------------
    across=460
    ------------
    cairo_move_to (cr, across, system_section+(fontsize*4)+add)
    cairo_show_text (cr, "Read: " .. ioread2)
    add=fontsize*1.5+add
    cairo_move_to (cr, across, system_section+(fontsize*4)+add)
    cairo_show_text (cr, "Write: " .. iowrite2)
    add=fontsize*1.5+add
    
    cairo_move_to (cr, across, system_section+(fontsize*4)+add)
    cairo_show_text (cr, "SWP: " .. swp .. "%")
    ------------
    across=120-10+460
    ------------
    cairo_set_line_width (cr, 1)
    cairo_rectangle (cr, across, system_section+(fontsize*3)+add, 100, fontsize)
    cairo_stroke (cr)
    cairo_rectangle (cr, across, system_section+(fontsize*3)+add, swp, fontsize)
    cairo_fill (cr)
    add=fontsize*1.5+add
    ------------
    across=460
    ------------
    cairo_move_to (cr, across, system_section+(fontsize*4)+add)
    cairo_show_text (cr, "USP: " .. usp)
    add=fontsize*1.5+add
    cairo_move_to (cr, across, system_section+(fontsize*4)+add)
    cairo_show_text (cr, "DSP: " .. dsp)
    add=fontsize*1.5+add
    ------------
    across=460
    ------------
    cairo_move_to (cr, across, system_section+(fontsize*4)+add)
    cairo_show_text (cr, "ULD: " .. uld)
    add=fontsize*1.5+add
    cairo_move_to (cr, across, system_section+(fontsize*4)+add)
    cairo_show_text (cr, "DLD: " .. dld)
    --------------
    
    end
    --PROCESS SECTION-------------------------------------------------------------------------
    --------------
    across=690
    font="Sans"
    fontsize=14
    --------------
    process_section=0
    if pset=="1" then
    
    cairo_set_source_rgba (cr, 1, 1, 1, 1);
    cairo_rectangle (cr, across, process_section, 220, 20)
    cairo_fill (cr)
    
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
    cairo_set_font_size (cr, fontsize);
    cairo_set_source_rgba (cr, 0, 0, 0, 1);
    cairo_move_to(cr, across, process_section+15);
    cairo_show_text (cr, "PROCESSES")
    
    end
    --ACTIVE SECTION-----------------
    --------------
    across=690
    font="Sans"
    fontsize=14
    --------------
    if pset=="2" then
    cairo_set_source_rgba (cr, 1, 1, 1, 1);
    cairo_rectangle (cr, across, process_section, 220, 20)
    cairo_fill (cr)
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
    cairo_set_font_size (cr, fontsize);
    cairo_set_source_rgba (cr, 0, 0, 0, 1);
    cairo_move_to(cr, across, process_section+15);
    cairo_show_text (cr, "PROCESSES")
    
    --this section formats top process
    
    --setup objects cpu section
    cn1=conky_parse("${top name 1}")
    cn2=conky_parse("${top name 2}")
    cn3=conky_parse("${top name 3}")
    cn4=conky_parse("${top name 4}")
    cn5=conky_parse("${top name 5}")
    cp1=conky_parse("${top pid 1}")
    cp2=conky_parse("${top pid 2}")
    cp3=conky_parse("${top pid 3}")
    cp4=conky_parse("${top pid 4}")
    cp5=conky_parse("${top pid 5}")
    cc1=conky_parse("${top cpu 1}")
    cc2=conky_parse("${top cpu 2}")
    cc3=conky_parse("${top cpu 3}")
    cc4=conky_parse("${top cpu 4}")
    cc5=conky_parse("${top cpu 5}")
    cm1=conky_parse("${top mem 1}")
    cm2=conky_parse("${top mem 2}")
    cm3=conky_parse("${top mem 3}")
    cm4=conky_parse("${top mem 4}")
    cm5=conky_parse("${top mem 5}")
    
    mn1=conky_parse("${top_mem name 1}")
    mn2=conky_parse("${top_mem name 2}")
    mn3=conky_parse("${top_mem name 3}")
    mn4=conky_parse("${top_mem name 4}")
    mn5=conky_parse("${top_mem name 5}")
    mp1=conky_parse("${top_mem pid 1}")
    mp2=conky_parse("${top_mem pid 2}")
    mp3=conky_parse("${top_mem pid 3}")
    mp4=conky_parse("${top_mem pid 4}")
    mp5=conky_parse("${top_mem pid 5}")
    mc1=conky_parse("${top_mem cpu 1}")
    mc2=conky_parse("${top_mem cpu 2}")
    mc3=conky_parse("${top_mem cpu 3}")
    mc4=conky_parse("${top_mem cpu 4}")
    mc5=conky_parse("${top_mem cpu 5}")
    mm1=conky_parse("${top_mem mem 1}")
    mm2=conky_parse("${top_mem mem 2}")
    mm3=conky_parse("${top_mem mem 3}")
    mm4=conky_parse("${top_mem mem 4}")
    mm5=conky_parse("${top_mem mem 5}")
    
    --top_time
    
    --------------
    --------------
    across=690
    font="Sans"
    fontsize=12
    down=fontsize*4
    --------------
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
    cairo_set_font_size (cr, fontsize);
    cairo_set_source_rgba (cr, 1, 1, 1, 1);
    cairo_move_to(cr, across, process_section+down);
    cairo_show_text (cr, "PROCESSES BY CPU")
    gap=down-(fontsize*3)
    --------------
    across=690
    font="Mono"
    fontsize=12
    downcpu=(fontsize*2)+gap
    downmem=(fontsize*3)
    downmem2=(fontsize*2)
    --------------
    add=downcpu
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, fontsize);
    cairo_set_source_rgba (cr, 1, 1, 1, 1);
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, "NAME")
    add=fontsize*1.5+add
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, cn1)
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, cn2)
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, cn3)
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, cn4)
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, cn5)
    add=add+downmem
    ---------------
    font="Sans"
    fontsize=12
    ----------------
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
    cairo_set_font_size (cr, fontsize);
    cairo_set_source_rgba (cr, 1, 1, 1, 1);
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, "PROCESSES BY MEMORY")
    add=add+downmem2
    ---------------
    font="Mono"
    fontsize=12
    ----------------
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, fontsize);
    cairo_set_source_rgba (cr, 1, 1, 1, 1);
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, "NAME")
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, mn1)
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, mn2)
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, mn3)
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, mn4)
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, mn5)
    add=add+fontsize*1.5
    --------------
    --------------
    across=across+(fontsize*6)
    font="Mono"
    fontsize=12
    --------------
    add=downcpu
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, fontsize);
    cairo_set_source_rgba (cr, 1, 1, 1, 1);
    acrosst=across+fontsize
    cairo_move_to(cr, acrosst, process_section+(fontsize*3)+add);
    cairo_show_text (cr, "PID")
    add=fontsize*1.5+add
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, cp1)
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, cp2)
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, cp3)
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, cp4)
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, cp5)
    add=add+downmem
    
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, "")
    add=add+downmem2
    acrosst=across+fontsize
    cairo_move_to(cr, acrosst, process_section+(fontsize*3)+add);
    cairo_show_text (cr, "PID")
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, mp1)
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, mp2)
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, mp3)
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, mp4)
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, mp5)
    add=add+fontsize*1.5
    --------------
    
    across=across+(fontsize*4)
    font="Mono"
    fontsize=12
    --------------
    add=downcpu
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, fontsize);
    cairo_set_source_rgba (cr, 1, 1, 1, 1);
    acrosst=across+(fontsize*1.5)
    cairo_move_to(cr, acrosst, process_section+(fontsize*3)+add);
    cairo_show_text (cr, "CPU")
    add=fontsize*1.5+add
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, cc1)
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, cc2)
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, cc3)
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, cc4)
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, cc5)
    add=add+downmem
    
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, "")
    add=add+downmem2
    acrosst=across+(fontsize*1.5)
    cairo_move_to(cr, acrosst, process_section+(fontsize*3)+add);
    cairo_show_text (cr, "CPU")
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, mc1)
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, mc2)
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, mc3)
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, mc4)
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, mc5)
    add=add+fontsize*1.5
    --------------
    across=across+(fontsize*4)
    font="Mono"
    fontsize=12
    --------------
    add=downcpu
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, fontsize);
    cairo_set_source_rgba (cr, 1, 1, 1, 1);
    acrosst=across+(fontsize*1.5)
    cairo_move_to(cr, acrosst, process_section+(fontsize*3)+add);
    cairo_show_text (cr, "MEM")
    add=fontsize*1.5+add
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, cm1)
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, cm2)
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, cm3)
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, cm4)
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, cm5)
    add=add+downmem
    
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, "")
    add=add+downmem2
    acrosst=across+(fontsize*1.5)
    cairo_move_to(cr, acrosst, process_section+(fontsize*3)+add);
    cairo_show_text (cr, "MEM")
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, mm1)
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, mm2)
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, mm3)
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, mm4)
    add=add+fontsize*1.5
    cairo_move_to(cr, across, process_section+(fontsize*3)+add);
    cairo_show_text (cr, mm5)
    add=add+fontsize*1.5
    --------------
    
    end
    tdread:close()
    pread:close()
    smread:close()
    wread:close()
    end 
    end
    I'm occasionally getting an error which disrupts the conky output:
    Code:
    Conky: setmntent /etc/mtab: Too many open files
    so that needs to be solved also - edit solved by closing files at end of script
    Last edited by mrpeachy; August 26th, 2011 at 07:43 PM.

  6. #13856
    Join Date
    Jan 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by mrpeachy View Post
    Code:
    tdread = io.open("/home/mcdowall/conkyset/tdset.txt", "r")
    tdset = tdread:read("*lines")
    
    pread = io.open("/home/mcdowall/conkyset/pset.txt", "r")
    pset = pread:read("*lines")
    
    smread = io.open("/home/mcdowall/conkyset/smset.txt", "r")
    smset = smread:read("*lines")
    
    wread = io.open("/home/mcdowall/conkyset/wset.txt", "r")
    wset = wread:read("*lines")
    I'm occasionally getting an error which disrupts the conky output:
    Code:
    Conky: setmntent /etc/mtab: Too many open files
    so that needs to be solved also
    You just need to close these files after nifty things doing because now they stays openned and in every new loop they are oppened again (new i/o thread).
    This biuld massive file opened threads stack in kernel - it is closed when reached the limit obviously.

    Put this at the end of your enormous large LUA function
    Code:
    tdread:close()
    pread:close()
    smread:close()
    wread:close()
    PS: LUA Ref Manual
    file:close ()

    Closes file. Note that files are automatically closed when their handles are garbage collected, but that takes an unpredictable amount of time to happen.
    Last edited by dk75; September 11th, 2010 at 09:23 AM.
    Linux Debian Sid (Minted) x86_64/3.12.10, Conky 2.0_pre, Xorg 7.7/1.15.0, KDE 4.11.5, Lenovo T61, Intel X3100, HITACHI HTS722010K9SA00 100GB, WDC_WD5000BEVT 500GB
    Linux user No.: 483055 | My Conky Pitstop corner | One4All project

  7. #13857
    Join Date
    Jul 2010
    Location
    Poole, Dorset, England
    Beans
    8
    Distro
    Kubuntu

    Re: Re Jigged Conky

    Quote Originally Posted by VastOne View Post
    You have to include Mauve,Fawn and Hooker's Green
    Lmao! Hookers green.......

    Get ready for brothel coloured conky!

  8. #13858
    Join Date
    Jul 2010
    Location
    Poole, Dorset, England
    Beans
    8
    Distro
    Kubuntu

    inbound connections

    Hi guys,

    I have noticed a few conkys that display inbound connections using these sort of lines:

    Code:
    Inbound: ${tcp_portmon 1 32767 count}
    ${color #246eb5}Inbound Connection ${alignr} Local Service/Port$color
     ${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0}
     ${tcp_portmon 1 32767 rhost 1} ${alignr} ${tcp_portmon 1 32767 lservice 1}
     ${tcp_portmon 1 32767 rhost 2} ${alignr} ${tcp_portmon 1 32767 lservice 2}
     ${tcp_portmon 1 32767 rhost 3} ${alignr} ${tcp_portmon 1 32767 lservice 3}
     ${tcp_portmon 1 32767 rhost 4} ${alignr} ${tcp_portmon 1 32767 lservice 4}
     ${tcp_portmon 1 32767 rhost 5} ${alignr} ${tcp_portmon 1 32767 lservice 5}
    But when I use it I get a count of 0 and no output from any of these lines:

    ${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0}

    Is there something i am missing? Maybe in my wireless setup.
    Thanks,

    I guess that this part monitors ports 1 through 32767 but it doesn't seem to be doing it.
    M
    Last edited by martinblunn; September 11th, 2010 at 01:19 PM. Reason: more thoughts

  9. #13859
    Join Date
    Aug 2009
    Location
    East of Atlantic
    Beans
    81
    Distro
    Ubuntu

    Re: Post your .conkyrc files w/ screenshots

    Hello,

    For displaying what Totem is playing in my conky, I wrote this minimalistic plugin (see capture) : it writes what totem is playing in /tmp/conky-totem.txt.

    The output file looks like this :
    Code:
    status=playing
    artist=Léo Ferré
    album=Léo Ferré
    title=Paname
    stream_length_s=274.337
    stream_length_MS=04:34
    stream_position_s=104
    stream_position_MS=01:44
    stream_percentage=37.9
    So whith a bash script or with simple commands, I can display what I need in my conky, for example :
    Code:
    ${exec  cat /tmp/conky-totem.txt | grep "artist=" | awk -F'=' '{print $2}'}
    ${exec cat /tmp/conky-totem.txt | grep "title" | awk -F'=' '{print $2}'}
    I know this is not a very "professional" method but it is more simple to write than D-Bus...
    Feedback are welcome, especially from python's gurus.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by wlourf; September 11th, 2010 at 10:22 AM.

  10. #13860
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by wlourf View Post
    I know this is not a very "professional" method but it is more simple to write than D-Bus...
    Feedback are welcome, especially from python's gurus.
    If you want a d-bus based script have a look at any of my music player scripts to see how to connect, and to find out what the exposed functions are install a tool called "d-feet"

    I had a quick look at the script you created and to be honest a simple d-bus script would be as easy, once you know about the d-bus service details.

    Not tested but this should give you an idea on how to connect and call a d-bus property in general, I used banshee as an example of how to retrieve track details and extract them into variables for further use (as Banshee has properties which are not as straight forward):
    PHP Code:
    import dbus

    remote_player 
    bus.get_object('org.bansheeproject.Banshee''/org/bansheeproject/Banshee/PlayerEngine')
    iface_player dbus.Interface(remote_player'org.bansheeproject.Banshee.PlayerEngine')

    props iface_player.GetCurrentTrack()

    if 
    "name" in props:
        
    title props["name"]
    else:
        
    title None
        
    if "album" in props:
        
    album props["album"]
    else:
        
    album None
        
    if "artist" in props:
        
    artist props["artist"]
    else:
        
    artist None
        
    if "year" in props:
        
    year str(props["year"])
    else:
        
    year None

    if "track-number" in props:
        
    tracknumber str(props["track-number"])
    else:
        
    tracknumber None

    if "bit-rate" in props:
        
    bitrate str(props["bit-rate"])+"k/s"
    else:
        
    bitrate None 
    Note that the currenttrack object in d-bus for this is a property, therefore needs a "Get" pre-pended onto the call...if it were a function it wouldn't. See below screenshot of d-feet showing banshee functions for example, you can even call a function from d-feet to see how it works before attempting to use python calls

    I would have shown totem based stuff but I don't have it installed...
    Attached Images Attached Images

Page 1386 of 2348 FirstFirst ... 386886128613361376138413851386138713881396143614861886 ... 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
  •