Page 1789 of 2294 FirstFirst ... 7891289168917391779178717881789179017911799183918892289 ... LastLast
Results 17,881 to 17,890 of 22939

Thread: Post your .conkyrc files w/ screenshots

  1. #17881
    Join Date
    Feb 2010
    Location
    SR11 Cockpit
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by mrpeachy View Post
    dials
    WoW!!!!!!!!!!!!!!!!!
    You "never" cease to amaze me!

  2. #17882
    Join Date
    Jun 2005
    Location
    Buenavista, ADN, Phils
    Beans
    283

    Re: Post your .conkyrc files w/ screenshots

    Came up with slideshow script off the arch forums from like 2009. Worked with it a bit and with a little IF statement I have got conky to show Banshee when its active, but when its off to show a slide show of the pics I have in my Pictures folder.

    IF Statement to be put in your conkyrc.
    Code:
    ### MUSIC / SLIDESHOW #################################################################################
    ${if_running banshee}${goto 65}${font GpuTeks:style=Bold}${color gold}MUSIC${font} ${hr 2}${color white}
    ${execp conkyBanshee --template=/home/exodist/.Conky/MusicTemplate} 
    $else${goto 65}${font GpuTeks:style=Bold}${color gold}PHOTOS${font} ${hr 2}${color white}
    ${execi 10 ~/.Conky/ConkySlideshow.sh}${image /home/exodist/.ckpict -p 24,760 -s 210x288 -f 14}
    $endif
    Music template file.
    Code:
    ${GOTO 72}${font Ubuntu:size=24}[--datatype=AR]${font}
    ${GOTO 72}[--datatype=AL]
    ${GOTO 72}[--datatype=TI]
    ${GOTO 72}[--datatype=YR]
    ${GOTO 72}[--datatype=PT] / [--datatype=LE] - [--datatype=PP]% ([--datatype=ST])
    ${GOTO 72}${image /tmp/cover -p 26,865 -s 205x180 -f 4}
    ConkySlideshow.sh, place this in your .conky folder and make it executable. $ chmod a+x ConkySlideshow.sh

    Code:
    #! /bin/bash
    
    line=$(($RANDOM%`ls /home/exodist/Pictures | wc -l`))
    line=$((line + 1)) 
    
    ls /home/exodist/Pictures | nl | while read a b
    do
      [ "$a" = "$line" ] && { cp /home/exodist/Pictures/"$b" /home/exodist/.ckpict; }
    done
    
    exit 0

    Enjoy!
    Attached Images Attached Images
    Mac Mini: OSX 10.9 Mavericks, i7-3720QM 2.6Ghz, 8GB RAM, 256GB Samsung 830 Series SSD, Intel HD4000 iGPU, 2x Samsung Series3 LED Monitors.
    Photography Homepage: exodistphotography.blogspot.com
    Linux User: 380654

  3. #17883
    Join Date
    Feb 2010
    Location
    SR11 Cockpit
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Bandit View Post
    Came up with slideshow script off the arch forums from like 2009. Worked with it a bit and with a little IF statement I have got conky to show Banshee when its active, but when its off to show a slide show of the pics I have in my Pictures folder.
    Now that's neat. Acts as a place holder as well. Really nice idea.

  4. #17884
    Join Date
    Apr 2007
    Beans
    195

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by mrpeachy View Post
    dials



    the indicator lines and numbers move according to what you feed it so that the current value is always in the middle
    there is also a fadeout effect towards the top and bottom of each dial

    here is some code if you want to try it out
    Code:
    --[[dials mrpeachy may 2011
    call in conky like this
    
    lua_load /path to file/filename.lua   -- modify for whatever and wherever you saved the file
    lua_draw_hook_pre draw_fig            -- needs to be this unchanged
    
    ]]
    require 'cairo'
    
    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
    --#########################################################################################################
    --#########################################################################################################
    rx=140.5--x position
    ry=50.5--y position, ending in .5 makes lines sharper
    rw=60-- rectangle width
    rh=200--rectangle height
    value=conky_parse("${cpu cpu0}")--value to be represented
    label="CPU AVG"--label above dial
    scale=40--how many divisions can be seen in the dial
    nfont,nfontsize="Mono",12--number font and font size
    tfont,tfontsize="Mono",12--title font and font size
    dialgraph(rx,ry,rw,rh,value,label,scale,nfont,nfontsize,tfont,tfontsize)--call function
    rx=rx
    ry=ry+220
    rw=50
    rh=100
    value=conky_parse("${cpu cpu1}")
    label="CORE 1"
    scale=20
    nfont,nfontsize="White Rabbit",12
    tfont,tfontsize="Mono",12
    dialgraph(rx,ry,rw,rh,value,label,scale,nfont,nfontsize,tfont,tfontsize)--call function
    rx=rx
    ry=ry+120
    rw=50
    rh=100
    value=conky_parse("${cpu cpu2}")
    label="CORE 2"
    scale=20
    nfont,nfontsize="Mono",12
    tfont,tfontsize="Mono",12
    dialgraph(rx,ry,rw,rh,value,label,scale,nfont,nfontsize,tfont,tfontsize)--call function
    rx=rx
    ry=ry+120
    rw=50
    rh=100
    value=conky_parse("${cpu cpu3}")
    label="CORE 3"
    scale=20
    nfont,nfontsize="Mono",12
    tfont,tfontsize="Mono",12
    dialgraph(rx,ry,rw,rh,value,label,scale,nfont,nfontsize,tfont,tfontsize)--call function
    
    --#########################################################################################################
    --#########################################################################################################
    end-- if updates>5
    cairo_destroy(cr)
    cairo_surface_destroy(cs)
    cr=nil
    end-- end main function
    
    function dialgraph(rx,ry,rw,rh,value,label,scale)
    --black background
    cairo_set_source_rgba (cr,0,0,0,1)
    cairo_rectangle (cr,rx,ry,rw,rh)
    cairo_fill (cr)
    --valuegraph
    adj=(value % 5)
    lines=tonumber(scale)
    gap=rh/lines
    cairo_set_line_width (cr,1)
    cairo_set_source_rgba (cr,1,1,1,1)
    font=nfont
    fsize=nfontsize
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, fsize)
    --calculate line and number positions
    for i=2,lines do
    n=i
    for i=1,lines,5 do
    --print (i)
    if n==(lines/2)+(5-adj)+i or n==(lines/2)+(5-adj)+(-i-3) then
    len=-2*(rw/5)
    else
    len=-1*(rw/5)
    end
    if n==(lines/2)+(5-adj)+i then
    num=value-adj+(i+4)
    elseif n==(lines/2)+(5-adj)+(-i-3) then
    num=value-adj-(i-1)
    else
    num=""
    end
    --print lines
    cairo_move_to (cr,rx+(rw/2),ry+(gap*(n-1)))
    cairo_rel_line_to (cr,len,0)
    cairo_stroke (cr)
    --print numbers
    cairo_move_to (cr,rx+(rw/2)+2,ry+(gap*(n-1))+(fsize/3))
    cairo_show_text (cr, num)
    cairo_stroke (cr)
    end--for
    end--for
    --middle lines
    cairo_set_source_rgba (cr,1,1,1,0.3)
    cairo_move_to (cr,rx+rw,ry+(rh/2)+2)
    cairo_rel_line_to (cr,-rw,0)
    cairo_stroke (cr)
    cairo_move_to (cr,rx+rw,ry+(rh/2)-2)
    cairo_rel_line_to (cr,-rw,0)
    cairo_stroke (cr)
    --label
    font=nfont
    fsize=nfontsize
    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,1,1,1,1)
    cairo_move_to (cr,rx,ry-5)
    cairo_show_text (cr,label)
    cairo_stroke (cr)
    --gradient overlay
    pat = cairo_pattern_create_linear (0,ry,0,ry+rh);
    cairo_pattern_add_color_stop_rgba (pat, 1, 0, 0, 0, 1);
    cairo_pattern_add_color_stop_rgba (pat, 0.5, 0, 0, 0, 0);
    cairo_pattern_add_color_stop_rgba (pat, 0, 0, 0, 0, 1);
    cairo_rectangle (cr,rx,ry,rw, rh);
    cairo_set_source (cr, pat);
    cairo_fill (cr);
    cairo_pattern_destroy (pat);
    --white outlines
    cairo_set_source_rgba (cr,1,1,1,1)
    cairo_rectangle (cr,rx,ry,rw,rh)
    cairo_stroke (cr)
    end
    *Snicker* What about using this to make a dial-based CLOCK? Interesting challenge for you?

    Said in fun of course.

  5. #17885
    Join Date
    Nov 2008
    Location
    #!
    Beans
    1,749

    Re: Post your .conkyrc files w/ screenshots

    @ mrpeachy

    I admire your work and the class you go about in helping people and the amount you share in the Conky Kingdom

    It is sad to see some who cannot relate to the joys of sharing and helping just for the sake of sharing

    It is like a poker game full of DONKS, by definition one who does not know the game but plays anyway.. and out of that ignorance anything and everything happens

    Keep it up... you have my respect

  6. #17886
    Join Date
    Oct 2009
    Location
    Under a rock
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by 42dorian View Post
    *Snicker* What about using this to make a dial-based CLOCK? Interesting challenge for you?

    Said in fun of course.
    actually that should be pretty easy
    you can feed the dial any output you like, as long as it is a number, and it will always display in the middle

    just need 3 dials, one for hours, minutes, seconds

    the hour dial wouldnt progress with time currently, it would show 1, then 2... not transition between

    but it could quite easily

    @ VastOne Thanks!

    @ sector11 thanks also

  7. #17887
    Join Date
    Nov 2010
    Beans
    16

    Re: Post your .conkyrc files w/ screenshots

    Brilliant mrpeachy, just brilliant.

    Your bringing conky to the next level. Can't wait to see what else you can think of.

  8. #17888
    Join Date
    Apr 2007
    Beans
    195

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by mrpeachy View Post
    actually that should be pretty easy
    you can feed the dial any output you like, as long as it is a number, and it will always display in the middle

    just need 3 dials, one for hours, minutes, seconds

    the hour dial wouldnt progress with time currently, it would show 1, then 2... not transition between

    but it could quite easily

    @ VastOne Thanks!

    @ sector11 thanks also
    I figured it would be something like that. I was just joking about it. It just reminds me of an old cylinder-type clock, that's all. They just flipped to the number as it passed anyways. It's really cool no matter how you state it.

    Keep it up! Probably a handy thing to have for adding a bit of class and no small amount of style to a setup.

    *EDIT* P.S. Good for a laugh. I'm attaching a screenshot of the current weather conditions where I am. It's apparently so hot compared to normal that the weather station can't figure out what the high and low temperatures are supposed to be.

    I laughed heartily when I saw it. Thought I'd share the humour. (Yes, I checked and the code works fine. Nothing to fix, it's just funny.)
    Attached Images Attached Images
    Last edited by 42dorian; May 31st, 2011 at 10:47 PM.

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

    Re: Post your .conkyrc files w/ screenshots

    @ mrpeachy

    As I modify the file sun.lua to adapt him/it all my city?
    Varese Italy Thanks.
    http://www.travelmath.com/city/Varese,+Italy
    Code:
    --INPUT DATA
    I=5 -- interval, if changed then kill/restart, set 1, 5 or 10.  shorter interval increases cpu load
    LEW="-1"  --  -1 for west, 1 for east
    LOD="58" --longitude degrees
    LOM="28" --longitude minutes
    LNS="-1" -- 1 for north, -1 for south
    LAD="34" --latitude degrees
    LAM="37" --latitude minutes
    TZ="3" --timezone
    GEW="-1"  --  -1 for west of Greenwich, 1 for east of Greenwich
    scale=1
    center_y=200
    left_x=0
    --------------------------------------------------------------
    delay=1800 -- time between info gathering, much like execi interval
    --------------------------------------------------------------
    Code:
    --[[ sun and moon position chart by mrpeachy may 2011 version x3 N and S hemispheres plot correctly
    call in conkyrc like so
    lua_load /path to file/fiename.lua
    lua_draw_hook_pre draw_fig
    
    mrpeachy
    I=5 -- interval, if changed then kill/restart, set 1, 5 or 10.  shorter interval increases cpu load
    LEW="-1"  --  -1 for west, 1 for east
    LOD="90" --longitude degrees
    LOM="11" --longitude minutes
    LNS="1" -- 1 for north, -1 for south
    LAD="38" --latitude degrees
    LAM="37" --latitude minutes
    TZ="6" --timezone
    GEW="-1"  --  -1 for west of Greenwich, 1 for east of Greenwich
    ]]
    
    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_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
    --#########################################################################################################
    --#########################################################################################################
    Y=tostring(os.date("%Y"))
    M=tostring(os.date("%m"))
    D=tostring(os.date("%d"))
    --INPUT DATA
    I=5 -- interval, if changed then kill/restart, set 1, 5 or 10.  shorter interval increases cpu load
    LEW="-1"  --  -1 for west, 1 for east
    LOD="58" --longitude degrees
    LOM="28" --longitude minutes
    LNS="-1" -- 1 for north, -1 for south
    LAD="34" --latitude degrees
    LAM="37" --latitude minutes
    TZ="3" --timezone
    GEW="-1"  --  -1 for west of Greenwich, 1 for east of Greenwich
    scale=1
    center_y=200
    left_x=0
    --------------------------------------------------------------
    delay=1800 -- time between info gathering, much like execi interval
    --------------------------------------------------------------
    timer=(updates % delay)+1
    --fetch sun and moon info
    if timer==1 or updates==10 or tostring(os.date("%H:%M:%S"))=="00:00:00" then
    os.execute ('curl -f --data "FFX=2&obj=11&xxy=' .. Y .. '&xxm=' .. M .. '&xxd=' .. D .. '&xxi=' .. I .. '&place=%28no+name+given%29&xx0=' .. LEW .. '&xx1=' .. LOD .. '&xx2=' .. LOM .. '&yy0=' .. LNS .. '&yy1=' .. LAD .. '&yy2=' .. LAM .. '&zz1=' .. TZ .. '&zz0=' .. GEW .. '&ZZZ=END" http://aa.usno.navy.mil/cgi-bin/aa_altazw.pl > /tmp/moon.txt')
    os.execute ('curl -f --data "FFX=2&obj=10&xxy=' .. Y .. '&xxm=' .. M .. '&xxd=' .. D .. '&xxi=' .. I .. '&place=%28no+name+given%29&xx0=' .. LEW .. '&xx1=' .. LOD .. '&xx2=' .. LOM .. '&yy0=' .. LNS .. '&yy1=' .. LAD .. '&yy2=' .. LAM .. '&zz1=' .. TZ .. '&zz0=' .. GEW .. '&ZZZ=END" http://aa.usno.navy.mil/cgi-bin/aa_altazw.pl > /tmp/sun.txt')
    local f = io.popen("cat /tmp/moon.txt | head -20 | tail -6")
    topper= f:read("*a")
    f:close()
    local f = io.popen("cat /tmp/moon.txt | grep ':' | awk '{print $3}'")
    azimuth= f:read("*a")
    f:close()
    local f = io.popen("cat /tmp/moon.txt | grep ':' | awk '{print $2}'")
    altitude= f:read("*a")
    f:close()
    local f = io.popen("cat /tmp/moon.txt | grep ':' | awk '{print $1}'")
    mtime= f:read("*a")
    f:close()
    local f = io.popen("cat /tmp/sun.txt | grep ':' | awk '{print $3}'")
    sazimuth= f:read("*a")
    f:close()
    local f = io.popen("cat /tmp/sun.txt | grep ':' | awk '{print $2}'")
    saltitude= f:read("*a")
    f:close()
    local f = io.popen("cat /tmp/sun.txt | grep ':' | awk '{print $1}'")
    stime= f:read("*a")
    f:close()
    --format moon tables
    aztab=string.split(azimuth,"\n")
    alttab=string.split(altitude,"\n")
    timetab=string.split(mtime,"\n")
    table.remove(alttab)
    table.remove(alttab)
    table.remove(alttab,1)
    table.remove(alttab,1)
    table.remove(aztab)
    table.remove(aztab)
    table.remove(aztab,1)
    table.remove(aztab,1)
    table.remove(timetab)
    table.remove(timetab)
    table.remove(timetab,1)
    table.remove(timetab,1)
    length=#aztab
    --format suntables
    saztab=string.split(sazimuth,"\n")
    salttab=string.split(saltitude,"\n")
    stimetab=string.split(stime,"\n")
    table.remove(salttab)
    table.remove(salttab)
    table.remove(salttab,1)
    table.remove(salttab,1)
    table.remove(saztab)
    table.remove(saztab)
    table.remove(saztab,1)
    table.remove(saztab,1)
    table.remove(stimetab)
    table.remove(stimetab)
    table.remove(stimetab,1)
    table.remove(stimetab,1)
    slength=#saztab
    moonsort={}
    az2tab={}
    saz2tab={}
    --correct moon data for N or S
    for i=1,length do
    moonsort[i]=tonumber(aztab[i])    
    if tonumber(aztab[2])<tonumber(aztab[1]) then
        direction="N"
        msetn=1
            if tonumber(aztab[i])<180 then
            az2tab[i]=tonumber(aztab[i])+180
            moonsort[i]=tonumber(aztab[i])+180
            elseif tonumber(aztab[i])>180 then
            az2tab[i]=tonumber(aztab[i])-180
            moonsort[i]=tonumber(aztab[i])-180
            else
            az2tab[i]=tonumber(aztab[i])
            moonsort[i]=tonumber(aztab[i])
            end
        else
        az2tab[i]=tonumber(aztab[i])
        moonsort[i]=tonumber(aztab[i])
        direction="S"
        msetn=length
        end
    end--for
    --correct sun data for N or S
    for i=1,slength do
    if tonumber(saztab[2])<tonumber(saztab[1]) then
            if tonumber(saztab[i])<180 then
            saz2tab[i]=tonumber(saztab[i])+180
            elseif tonumber(saztab[i])>180 then
            saz2tab[i]=tonumber(saztab[i])-180
            else
            saz2tab[i]=tonumber(saztab[i])
            end
        else
        saz2tab[i]=tonumber(saztab[i])
        end
    end--for
    
    table.sort(moonsort)
    --get sunrise and sunset
    sunrise=conky_parse("${exec conkyForecast -d SR -s 1}")
    sunset=stimetab[slength]
    end--timed data gathering section
    
    --remove terminal errors when script starts
    if topper==nil then topper="starting up..." end
    if azimuth==nil then azimuth=0 end
    if altitude==nil then altitude=0 end
    if mtime==nil then mtime=0 end
    if sazimuth==nil then sazimuth=0 end
    if saltitude==nil then saltitude=0 end
    if stime==nil then stime=0 end
    if sunrise==nil then sunrise=" " end
    if sunset==nil then sunset=" " end
    if length==nil then length=0 end
    if slength==nil then slength=0 end
    --top info - mostly to confirm curl function and location data
    font="Mono"
    fsize=12
    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,1,1,1,1)
    toppertab=string.split(topper,"\n")
    cairo_move_to (cr,left_x,center_y-150)
    cairo_show_text (cr, toppertab[1])
    cairo_stroke (cr)
    cairo_move_to (cr,left_x,center_y-138)
    cairo_show_text (cr, toppertab[4])
    cairo_stroke (cr)
    cairo_move_to (cr,left_x,center_y-126)
    cairo_show_text (cr, toppertab[5])
    cairo_stroke (cr)
    --horizon and north/south-------------------------------------------------------------
    cairo_set_line_width (cr,1)
    cairo_set_source_rgba (cr,0.5,0.5,0.5,1)
    cairo_move_to (cr,left_x,center_y)
    cairo_rel_line_to (cr,left_x+360,0)
    cairo_stroke (cr)
    cairo_move_to (cr,left_x+180,center_y)
    cairo_rel_line_to (cr,0,-100)
    cairo_stroke (cr)
    font="Mono"
    fsize=12
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, fsize)
    cairo_move_to (cr,left_x+180-4,center_y-102)
    cairo_show_text (cr,direction)
    cairo_stroke (cr)
    --get time in appropriate intervals to set current positions--------------------------
    int=I*60
    count=tonumber((os.date("%M")*60)+os.date("%S"))
    now_timer=(count % int)+1
    if now_timer==1 then 
    setmin=os.date("%M") 
    sethour=tostring(os.date("%H"))
    timenow=sethour .. ":" .. setmin
    end
    --compensate for timenow being nil when script starts
    if timenow==nil then
    min=tostring(os.date("%M"))
    if I==10 then
    --time minutes
    mins=string.gsub(min, ".", "%1|")
    mins=string.split(mins, "|")
    hour=tostring(os.date("%H"))
    timenow=(hour .. ":" .. mins[1] .. "0")
    elseif I==5 then
    mins=string.gsub(min, ".", "%1|")
    mins=string.split(mins, "|")
    hour=tostring(os.date("%H"))
    if mins[2]=="0" or mins[2]=="1" or mins[2]=="2" or mins[2]=="3" or mins[2]=="4" then 
    timenow=(hour .. ":" .. mins[1] .. "0")
    elseif mins[2]=="5" or mins[2]=="6" or mins[2]=="7" or mins[2]=="8" or mins[2]=="9" then 
    timenow=(hour .. ":" .. mins[1] .. "5")
    end
    elseif I==1 then
    hour=tostring(os.date("%H"))
    timenow=hour .. ":" .. min
    end
    end--if time now
    
    --timenow="22:10"
    
    --plot moon data----------------------------------------------------------------------
    cairo_set_line_width (cr,1)
    cairo_set_source_rgba (cr,1,1,1,1)
    for i=1,length do
    --print (aztab[i])
    if az2tab[i+1]==nil then az2tab[i+1]=az2tab[i] end 
    if alttab[i+1]==nil then alttab[i+1]=alttab[i] end
    cairo_move_to (cr,left_x+tonumber(az2tab[i]),center_y-tonumber(alttab[i]))
    cairo_line_to (cr,left_x+tonumber(az2tab[i+1]),center_y-tonumber(alttab[i+1]))
    cairo_stroke (cr)
    if tostring(timetab[i])==tostring(timenow) then 
    moontime=i 
    end
    if tostring(timetab[moontime])~=tostring(timenow) then
    moontime=nil
    end
    if tonumber(moonsort[msetn])==tonumber(az2tab[i]) then
    mset=i
    end
    end
    --moon text and moon current position
    moony=center_y+20+24
    font="Mono"
    fsize=12
    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,1,1,1,1)
    if moontime==nil then
    cairo_move_to (cr,left_x,moony)
    cairo_show_text (cr,"Moon : Has set.")
    cairo_stroke (cr)
    else
    cairo_move_to (cr,left_x,moony)
    cairo_show_text (cr,"Moon : Azimuth=" .. az2tab[moontime] .. ", Altitude=" .. alttab[moontime] .. ", Set=" .. timetab[mset])
    cairo_stroke (cr)
    cairo_arc (cr,left_x+tonumber(az2tab[moontime]),center_y-tonumber(alttab[moontime]),6,0,2*math.pi)
    cairo_fill (cr)
    end
    --print sun data---------------------------------------------------------------------
    cairo_set_line_width (cr,1)
    cairo_set_source_rgba (cr,1,1,0,1)
    for i=1,slength do
    if saz2tab[i+1]==nil then saz2tab[i+1]=saz2tab[i]end 
    if salttab[i+1]==nil then salttab[i+1]=salttab[i] end
    cairo_move_to (cr,left_x+tonumber(saz2tab[i]),center_y-tonumber(salttab[i]))
    cairo_line_to (cr,left_x+tonumber(saz2tab[i+1]),center_y-tonumber(salttab[i+1]))
    cairo_stroke (cr)
    if tostring(stimetab[i])==tostring(timenow) then 
    suntime=i 
    end
    if tostring(stimetab[suntime])~=tostring(timenow) then
    suntime=nil
    end
    end --for i= slength
    --print sun info
    suny=center_y+20+36
    font="Mono"
    fsize=12
    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,1,1,0,1)
    if suntime==nil then
    cairo_move_to (cr,left_x,suny)
    cairo_show_text (cr,"Sun : Has set.  Sunrise tomorrow at " .. sunrise)
    cairo_stroke (cr)
    else
    cairo_move_to (cr,left_x,suny)
    cairo_show_text (cr,"Sun : Azimuth=" .. saz2tab[suntime] .. ", Altitude=" .. salttab[suntime] .. ", Set=" .. sunset)
    cairo_stroke (cr)
    cairo_arc (cr,left_x+tonumber(saz2tab[suntime]),center_y-tonumber(salttab[suntime]),6,0,2*math.pi)
    cairo_fill (cr)
    end
    --#########################################################################################################
    --#########################################################################################################
    end-- if updates>5
    cairo_destroy(cr)
    cairo_surface_destroy(cs)
    cr=nil
    end-- end main function

  10. #17890
    Join Date
    Jun 2005
    Location
    Buenavista, ADN, Phils
    Beans
    283

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Sector11 View Post
    Now that's neat. Acts as a place holder as well. Really nice idea.
    Thank you. Best part is it isnt eating up hardly any system resources.
    Mac Mini: OSX 10.9 Mavericks, i7-3720QM 2.6Ghz, 8GB RAM, 256GB Samsung 830 Series SSD, Intel HD4000 iGPU, 2x Samsung Series3 LED Monitors.
    Photography Homepage: exodistphotography.blogspot.com
    Linux User: 380654

Page 1789 of 2294 FirstFirst ... 7891289168917391779178717881789179017911799183918892289 ... 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
  •