Page 2098 of 2348 FirstFirst ... 1098159819982048208820962097209820992100210821482198 ... LastLast
Results 20,971 to 20,980 of 23480

Thread: Post your .conkyrc files w/ screenshots

  1. #20971
    Join Date
    Oct 2012
    Beans
    21

    Re: Post your .conkyrc files w/ screenshots

    Sorry for the 24 hour format though i like it this way
    Code:
    # Conky settings #
    background yes
    update_interval 1
    
    cpu_avg_samples 2
    net_avg_samples 2
    
    override_utf8_locale yes
    
    double_buffer yes
    no_buffers yes
    
    text_buffer_size 2048
    #imlib_cache_size 0
    
    temperature_unit fahrenheit
    
    # Window specifications #
    
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
    
    border_inner_margin 0
    border_outer_margin 0
    
    ## This Resolution is set according to the sreen resolution of 1366x768 
    ## Adjust Accoring to yours
    
    minimum_size 800 560
    maximum_width 1600
    
    alignment tr
    gap_x 10
    gap_y 55
    
    # Graphics settings #
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders no
    
    # Text settings #
    use_xft yes
    xftfont caviar dreams:size=8
    xftalpha 0.5
    
    uppercase no
    
    temperature_unit celsius
    
    
    default_color FFFFFF
    
    # Lua Load  #
    lua_load ~/.lua/scripts/haunted.lua
    lua_draw_hook_pre clock_rings
    
    ## Adjust these fields according to the your screen size i have modded them for 1366X768
    
    TEXT
     ${offset 700}${color EAEAEA}${font GE Inspira:pixelsize=120}${time %H:%M}${font}${voffset -84}${voffset 10}${color FFA300}${font GE Inspira:pixelsize=42}${time %d} ${voffset -15}${color EAEAEA}${font GE Inspira:pixelsize=22}${time  %B} ${time %Y}${font}${voffset 124}${font GE Inspira:pixelsize=58}${offset -800}${time %A}${font}
    ${offset 720}${voffset -100}${font Ubuntu:pixelsize=10}${color FFA300}HD ${offset 9}$color${fs_free /} / ${fs_size /}${offset 30}${color FFA300}RAM ${offset 9}$color$mem / $memmax${offset 30}${color FFA300}CPU ${offset 9}$color${cpu cpu0}%
    ${voffset 10}${offset 270}${color 2c2c2c}${hr 4}
    ${image ~/.conky/rev-eng.png}
    
    
    ${offset 130}${voffset 222}${font Santana:size=9:style=Bold}root : ${font Santana:size=9}${fs_used /}/${fs_size /}
    ${offset 130}${voffset 10}${font Santana:size=9:style=Bold}home: ${font Santana:size=9}${fs_used /home/Rev-Eng/Solaris}/${fs_size /home/Rev-Eng/Solaris}$font
    ${offset 120}${voffset 12}${color ffffff}${font Santana:size=9:style=Bold}swap: ${font Santana:size=8} ${swap} / ${swapfree}$font
    ${offset 570}${voffset -110} ${color EAEAEA}Linux ${kernel} kernel
    ${offset 570}${voffset 5} Uptime :${uptime}
    ${offset 825}${voffset -80}${color ffffff}${font Santana:size=10:style=Bold}${exec whoami}@${nodename}
    ${offset 825}${voffset 0}${color ffffff}${font Santana:size=8}${top name 5} ${top mem 5}
    
    
    
    
    ${offset 680}${voffset 130}${color ffffff}${font Santana:size=8}IP Address :${addr wlan0}
    ${offset 705}${voffset 10}${color ffffff}${font Santana:size=8}Down :${downspeed wlan0} k/s ${offset 8}Up:${upspeed wlan0} k/s
    ${offset 703}${voffset 10}${color ffffff}${font Santana:size=8}TCP Connections: ${tcp_portmon 1 65535 count}
    ${offset 680}${voffset 10}${color ffffff}${font Santana:size=8}Speed Graph :
    ${offset 680}${voffset -10}${color ffffff}${font Santana:size=8}${color #000000}${downspeedgraph wlan0 32,150 000000 ffffff} ${color #000000}${upspeedgraph wlan0 32,150 000000 ffffff}
    Attached Images Attached Images
    Last edited by Paari; November 3rd, 2012 at 08:33 PM.

  2. #20972
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    McLovin926 borrowed mine, I borrowed his, and edited it again ... NEXT!

    conkyForecast is a live and well, don't let anyone tell you different



    The conky: /media/5/Conky/McBars/Chronograph.conky

    Code:
    # killall conky & conky -c /media/5/Conky/McBars/Chronograph.conky &
    ######################
    # - Conky settings - #
    ######################
    
    background no
    update_interval 1
    cpu_avg_samples 1
    total_run_times 0
    override_utf8_locale yes
    
    double_buffer yes
    #no_buffers yes
    
    text_buffer_size 1024 #10240
    imlib_cache_size 0 #10240
    
    minimum_size 350 350
    maximum_width 350
    
    #####################
    # - Text settings - #
    #####################
    use_xft yes
    xftfont CorporateMonoExtraBold:size=10
    xftalpha 1 #.8
    
    uppercase no
    
    # Text alignment, other possible values are commented
    #alignment middle_left
    #alignment middle_middle
    #alignment middle_right
    #alignment top_middle
    alignment top_left
    #alignment top_right
    #alignment bottom_left
    #alignment bottom_right
    #alignment bottom_middle
    
    gap_x 5
    gap_y 5
    
    
    ######################
    # - Color settings - #
    ######################
    default_color c3c3c3
    default_shade_color gray
    default_outline_color black
    
    color0 c3c3c3 #mid gray
    color1 FF0000 #red
    color2 09FF00 #bright green
    color3 007EFF #bright blue
    color4 E3E3E3 #very light gray
    color5 FF8600 #an orange shade
    color6 CA8718 #a dust like color
    color7 FFE500 #a darker yellow color
    color8 C3FF00 #lime green
    color9 00FCFF #sky blue
    #############################
    # - Window specifications - #
    #############################
    ###################################################################################################
    # - Create own window instead of using desktop (required in all file-managers, other than caja) - #
    ###################################################################################################
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_hints undecorated,below,skip_taskbar,skip_pager
    own_window_colour gray
    own_window_class Conky
    own_window_title Chronograph
    
    
    border_inner_margin 0
    border_outer_margin 0
    
    #########################
    # - Graphics settings - #
    #########################
    draw_shades no #yes
    draw_outline no
    draw_borders no
    stippled_borders 0
    draw_graph_borders no
    
    ####################
    # - LUA Settings - #
    ####################
    #lua_load /media/5/conky/McBars_McLovin/McBars/scripts/draw-bg.lua  ###########################################################
    #lua_draw_hook_pre draw_bg 20 0 0 0 0 0x000000 0.3  #### - Uncoment these lines to have BG-Image -#
    #lua_draw_hook_post draw-bg 125 0 0 0 0 0x000000 0.01  ############################################
    lua_load /media/5/Conky/McBars/scripts/Chronograph.lua
    lua_draw_hook_post main
    #lua_load /media/5/conky/McBars_McLovin/McBars/scripts/clock_rings.lua
    #lua_draw_hook_pre clock_rings
    lua_load /media/5/Conky/LUA/draw-bg.lua
    
    TEXT
    ${lua conky_draw_bg 15 0 0 0 0 0x000000 0.5}${execpi 3600 conkyForecast --hideunits --template=/media/5/Conky/McBars/scripts/chronograph.weather.template}
    /media/5/Conky/McBars/scripts/Chronograph.lua
    Code:
    --[[ multiple analogue clocks by mrpeachy - 18 Jun 2012
     21 Jun 2012 - Chronograph modifications by Sector11
     22 Jun 2012 - again with mrpeachy's help day names, numbers and month names
    
    use in conkyrc
    
    lua_load /path/Chronograph.lua
    lua_draw_hook_pre main
    TEXT
    
    
    -- INDEX (use find with):
    
    -- ###### 12 OR 24 CLOCK FACE
    -- SET BORDER OPTIONS ######  ALL CLOCKS
    
    -- ### START CLOCK A ######################################
    -- MARKS AROUND CLOCK A -- Large Main 24 HR Clock
    -- CLOCK A HOUR HAND
    -- CLOCK A MINUTE HAND SETUP
    -- CLOCK A SECOND HAND SETUP
    -- CLOCK A ###### 24 HR TIME
    
    -- ### START DIAL B ### Top - Week Day Names Dial #########
    -- ### START DIAL C ### Right - Month Names Dial ##########
    -- ### START DIAL D ### Left - Day Numbers Dial ###########
    
    -- ### START CLOCK E ######################################
    -- MARKS AROUND CLOCK E -- Bottom - 12 HR Clock
    -- CLOCK E HOUR HAND
    -- CLOCK E MINUTE HAND SETUP
    -- CLOCK E SECOND HAND SETUP
    -- CLOCK E ###### 12 HR TIME
    
    NOTE:  Putting ### CLOCK A ### last insures that it's functions are written
           over the other dials.
    ]]
    
    require 'cairo'
    
    function conky_main()
    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)
    -- ########################################################
    -- SETTINGS AREA
    -- local cpu=conky_parse("${cpu}")
    -- local red-1=conky_parse("${image ~/Conky/images/red_1.png -p 0,0 -s 35x35}")
    
    -- ###### 12 OR 24 CLOCK FACE #############################
    local clock_type_A=24 -- Large Main 24 HR Clock
    local clock_type_E=12 -- Bottom - 12 HR Clock
    
    -- ###### CLOCK SETTINGS ##################################
    -- SET BORDER OPTIONS FOR "CLOCKS" ########################
    local clock_border_width=0
    -- set color and alpha for clock border
    local cbr,cbg,cbb,cba=1,1,1,1  -- full opaque white
    -- gap from clock border to minute marks
    local b_to_m=1
    
    -- ########################################################
    -- ### START DIAL B ### Top - Week Day Names Dial #########
    -- DIAL POSITION FOR TEXT
    local center_x=175
    local center_y=95
    local radius=50
    -- FONT
    cairo_select_font_face (cr, "CorporateMonoExtraBold", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, 12)
    cairo_set_source_rgba (cr,1,1,1,1) --(cr,194/255,204/255,255/255,1)	-- (cr,1,1,1,1)
    -- TABLE OF TEXT -- in order
    text_days={"SUN","MON","TUE","WED","THR","FRI","SAT",}
    -- text_days={"DOM","LUN","MAR","MIE","JUE","VIE","SAB",}
    for i=1,7 do
    -- work out points
    local point=(math.pi/180)*((360/7)*(i-1))
    local x=0+radius*(math.sin(point))
    local y=0-radius*(math.cos(point))
    -- CALCULATE CENTRE OF TEXT
    local text=text_days[i]--gets text from table
    local extents=cairo_text_extents_t:create()
    cairo_text_extents(cr,text,extents)
    local width=extents.width
    local height=extents.height
    cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
    cairo_show_text (cr, text)
    cairo_stroke (cr)
    end
    -- INNER POINTS POSITION, radius smaller than text circle
    local radius=35
    for i=1,7 do
    local point=(math.pi/180)*((360/7)*(i-1))
    local x=0+radius*(math.sin(point))
    local y=0-radius*(math.cos(point))
    cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
    cairo_stroke (cr)
    end
    -- DRAW HAND -- snaps to current day of week
    local hand_length=30
    local day_number=tonumber(os.date("%w"))
    local point=(math.pi/180)*((360/7)*(day_number))
    local x=0+hand_length*(math.sin(point))
    local y=0-hand_length*(math.cos(point))
    local hand_width=2
    cairo_move_to (cr,center_x,center_y)
    cairo_line_to (cr,center_x+x,center_y+y)
    cairo_stroke (cr)
    -- ### END DIAL B #########################################
    
    -- ########################################################
    -- ### START DIAL C ### Right - Month Names Dial ##########
    -- DIAL POSITION FOR TEXT
    local center_x=260
    local center_y=175
    local radius=45
    -- FONT
    cairo_select_font_face (cr, "CorporateMonoExtraBold", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, 12)
    cairo_set_source_rgba (cr,1,1,1,1) --(cr,194/255,204/255,255/255,1)	-- (cr,1,1,1,1)
    -- TABLE OF TEXT -- in order
    text_days={"JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC",}
    -- text_days={"ENE","FEB","MAR","ABR","MAY","JUN","JUL","AGO","SEP","OCT","NOV","DIC",}
    for i=1,12 do
    -- OUTTER POINTS POSTION FOR TEXT
    local point=(math.pi/180)*((360/12)*(i-1))
    local x=0+radius*(math.sin(point))
    local y=0-radius*(math.cos(point))
    -- CALCULATE CENTRE OF TEXT
    local text=text_days[i]--gets text from table
    local extents=cairo_text_extents_t:create()
    cairo_text_extents(cr,text,extents)
    local width=extents.width
    local height=extents.height
    cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
    cairo_show_text (cr, text)
    cairo_stroke (cr)
    end
    -- INNER POINTS POSITION, radius smaller than text circle
    local radius=32
    for i=1,12 do
    local point=(math.pi/180)*((360/12)*(i-1))
    local x=0+radius*(math.sin(point))
    local y=0-radius*(math.cos(point))
    cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
    cairo_stroke (cr)
    end
    -- DRAW HAND -- snaps to current month
    local this_month=tonumber(os.date("%m"))
    local hand_length=28 --radius for this calculation
    local point=(math.pi/180)*((360/12)*(this_month-1))
    local x=0+hand_length*(math.sin(point))
    local y=0-hand_length*(math.cos(point))
    cairo_move_to (cr,center_x,center_y)
    cairo_line_to (cr,center_x+x,center_y+y)
    cairo_stroke (cr)
    
    -- ### END CLOCK C ########################################
    
    -- ########################################################
    -- ### START DIAL D ### Left - Day Numbers Dial ###########
    -- GET NUMBER OF DAYS IN CURRENT MONTH
    -- calculate Feb, then set up table
    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))
    -- MONTH TABLE
    monthdays={31,febdaynum,31,30,31,30,31,31,30,31,30,31}
    this_month=tonumber(os.date("%m"))
    number_days=monthdays[this_month]
    -- TEXT positioning
    local center_x=95
    local center_y=175
    local radius=50
    cairo_select_font_face (cr, "CorporateMonoExtraBold", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, 8)
    cairo_set_source_rgba (cr,1,1,1,1) --(cr,194/255,204/255,255/255,1)	-- (cr,1,1,1,1)
    for i=1,number_days do
    -- OUTTER POINTS POSTION FOR TEXT
    local point=(math.pi/180)*((360/number_days)*(i-1))
    local x=0+radius*(math.sin(point))
    local y=0-radius*(math.cos(point))
    -- CALCULATE CENTRE OF TEXT
    local text=i
    local extents=cairo_text_extents_t:create()
    cairo_text_extents(cr,text,extents)
    local width=extents.width
    local height=extents.height
    cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
    cairo_show_text (cr, text)
    cairo_stroke (cr)
    end
    -- INNER POINTS POSITION, radius smaller than text circle
    local radius=40
    for i=1,number_days do
    local point=(math.pi/180)*((360/number_days)*(i-1))
    local x=0+radius*(math.sin(point))
    local y=0-radius*(math.cos(point))
    cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
    cairo_stroke (cr)
    end
    -- DRAW HAND -- snaps to current DAY
    local this_day=tonumber(os.date("%d"))
    local hand_length=35--radius for this calculation
    local point=(math.pi/180)*((360/number_days)*(this_day-1))
    local x=0+hand_length*(math.sin(point))
    local y=0-hand_length*(math.cos(point))
    cairo_move_to (cr,center_x,center_y)
    cairo_line_to (cr,center_x+x,center_y+y)
    cairo_stroke (cr)
    -- ### END CLOCK D ########################################
    
    -- ########################################################
    -- ### START CLOCK E ######################################
    -- MARKS AROUND CLOCK E -- Bottom - 12 HR Clock
    local number_marks_E=12
    -- set mark length
    local m_length_E=0
    -- set mark width
    local m_width_E=0
    -- set mark line cap type
    local m_cap=CAIRO_LINE_CAP_ROUND
    -- set mark color and alpha,red blue green alpha
    local mr,mg,mb,ma=1,1,0,1-- opaque white
    -- SETUP HOUR HANDS #######################################
    -- CLOCK E HOUR HAND
    -- set length of hour hand
    hh_length_E=25
    -- set hour hand width
    hh_width_E=2
    -- set hour hand line cap
    hh_cap=CAIRO_LINE_CAP_ROUND
    -- set hour hand color
    hhr,hhg,hhb,hha=1,1,0,1-- fully opaque white
    -- SETUP MINUTE HANDS #####################################
    -- CLOCK E MINUTE HAND SETUP
    -- set length of minute hand
    mh_length_E=35
    -- set minute hand width
    mh_width_E=2
    -- set minute hand line cap
    mh_cap=CAIRO_LINE_CAP_ROUND
    -- set minute hand color
    mhr,mhg,mhb,mha=1,1,0,1-- fully opaque white
    -- SETUP SECOND HANDS #####################################
    -- CLOCK E SECOND HAND SETUP
    -- set length of seconds hand
    sh_length_E=32
    -- set hour hand width
    sh_width_E=1
    -- set hour hand line cap
    sh_cap=CAIRO_LINE_CAP_ROUND
    -- set seconds hand color
    shr,shg,shb,sha=1,0,0,1-- fully opaque red
    -- CLOCK E ###### 12 HR TIME ##############################
    -- CLOCK SETTINGS
    clock_radius=45
    clock_centerx=175
    clock_centery=260
    -- DRAWING CODE
    -- DRAW BORDER
    cairo_set_source_rgba (cr,cbr,cbg,cbb,cba)
    cairo_set_line_width (cr,clock_border_width)
    cairo_arc (cr,clock_centerx,clock_centery,clock_radius,0,2*math.pi)
    cairo_stroke (cr)
    -- DRAW MARKS
    -- stuff that can be moved outside of the loop, needs only be set once
    -- calculate end and start radius for marks
    m_end_rad=clock_radius-b_to_m
    m_start_rad=m_end_rad-m_length_E
    -- set line cap type
    cairo_set_line_cap  (cr, m_cap)
    -- set line width
    cairo_set_line_width (cr,m_width_E)
    -- set color and alpha for marks
    cairo_set_source_rgba (cr,mr,mg,mb,ma)
    -- START LOOP FOR SECOND MARKS
    for i=1,number_marks_E do
    -- drawing code using the value of i to calculate degrees
    -- calculate start point for 12/24 hour mark
    radius=m_start_rad
    point=(math.pi/180)*((i-1)*(360/number_marks_E))
    x=0+radius*(math.sin(point))
    y=0-radius*(math.cos(point))
    -- set start point for line
    cairo_move_to (cr,clock_centerx+x,clock_centery+y)
    -- calculate end point for 12/24 hour mark
    radius=m_end_rad
    point=(math.pi/180)*((i-1)*(360/number_marks_E))
    x=0+radius*(math.sin(point))
    y=0-radius*(math.cos(point))
    -- set path for line
    cairo_line_to (cr,clock_centerx+x,clock_centery+y)
    -- draw the line
    cairo_stroke (cr)
    end-- of for loop
    --[[ TIME CALCULATIONS CLOCK E
    if clock_type_E==12 then
    hours=tonumber(os.date("%I"))
    -- convert hours to seconds
    h_to_s=hours*60*60
    elseif clock_type_E==24 then
    hours=tonumber(os.date("%H"))
    -- convert hours to seconds
    h_to_s=hours*60*60
    end
    minutes=tonumber(os.date("%M"))
    -- convert minutes to seconds
    m_to_s=minutes*60
    -- get current seconds
    seconds=tonumber(os.date("%S"))
    -- DRAW HOUR HAND
    -- get hours minutes seconds as just seconds and draw it
    hsecs=h_to_s+m_to_s+seconds
    -- calculate degrees for each second
    hsec_degs=hsecs*(360/(60*60*clock_type_E))-- use equation ~ eliminate decimals
    -- set radius to calculate hand points
    radius=hh_length_E
    -- set start line coordinates, the center of the circle
    cairo_move_to (cr,clock_centerx,clock_centery)
    -- calculate coordinates for end of minute hand
    point=(math.pi/180)*hsec_degs
    x=0+radius*(math.sin(point))
    y=0-radius*(math.cos(point))
    -- describe the line we will draw
    cairo_line_to (cr,clock_centerx+x,clock_centery+y)
    -- set up line attributes and draw line
    cairo_set_line_width (cr,hh_width_E)
    cairo_set_source_rgba (cr,hhr,hhg,hhb,hha)
    cairo_set_line_cap  (cr, hh_cap)
    cairo_stroke (cr)
    -- DRAW MINUTE HAND
    -- get minutes and seconds as seconds
    msecs=m_to_s+seconds
    -- calculate degrees for each second
    msec_degs=msecs*0.1
    -- set radius to calculate hand points
    radius=mh_length_E
    -- set start line coordinates, the center of the circle
    cairo_move_to (cr,clock_centerx,clock_centery)
    -- calculate coordinates for end of minute hand
    point=(math.pi/180)*msec_degs
    x=0+radius*(math.sin(point))
    y=0-radius*(math.cos(point))
    -- describe the line we will draw
    cairo_line_to (cr,clock_centerx+x,clock_centery+y)
    -- set up line attributes and draw line
    cairo_set_line_width (cr,mh_width_E)
    cairo_set_source_rgba (cr,mhr,mhg,mhb,mha)
    cairo_set_line_cap  (cr, mh_cap)
    cairo_stroke (cr)
    -- DRAW SECOND HAND
    -- calculate degrees for each second
    sec_degs=seconds*6
    -- set radius to calculate hand points
    radius=sh_length_E
    -- set start line coordinates, the center of the circle
    cairo_move_to (cr,clock_centerx,clock_centery)
    -- calculate coordinates for end of seconds hand
    point=(math.pi/180)*sec_degs
    x=0+radius*(math.sin(point))
    y=0-radius*(math.cos(point))
    -- describe the line we will draw
    cairo_line_to (cr,clock_centerx+x,clock_centery+y)
    -- set up line attributes
    cairo_set_line_width (cr,sh_width_E)
    cairo_set_source_rgba (cr,shr,shg,shb,sha)
    cairo_set_line_cap  (cr, sh_cap)
    cairo_stroke (cr)
    
    
    -- POSITION FOR TEXT HOUR NUMBERS
    local center_x=175
    local center_y=260
    local radius=45
    -- FONT
    cairo_select_font_face (cr, "CorporateMonoExtraBold", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, 12)
    cairo_set_source_rgba (cr,194/255,204/255,255/255,1)	-- (cr,1,1,1,1)
    -- TABLE OF TEXT -- in order
    --text_days={"12","01","02","03","04","05","06","07","08","09","10","11",}
    -- FOR A 12 HOUR CLOCK WITH THE NUMBERS 13-00
    text_days={"00","13","14","15","16","17","18","19","20","21","22","23",}
    for i=1,12 do
    -- OUTTER POINTS POSTION FOR TEXT
    local point=(math.pi/180)*((360/12)*(i-1))
    local x=0+radius*(math.sin(point))
    local y=0-radius*(math.cos(point))
    -- CALCULATE CENTRE OF TEXT
    local text=text_days[i]--gets text from table
    local extents=cairo_text_extents_t:create()
    cairo_text_extents(cr,text,extents)
    local width=extents.width
    local height=extents.height
    cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
    cairo_show_text (cr, text)
    cairo_stroke (cr)
    end
    -- INNER POINTS POSITION, radius smaller than text circle
    local radius=32
    for i=1,12 do
    local point=(math.pi/180)*((360/12)*(i-1))
    local x=0+radius*(math.sin(point))
    local y=0-radius*(math.cos(point))
    cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
    cairo_stroke (cr)
    end ]]
    
    -- ### END CLOCK E ########################################
    
    
    
    
    -- ########################################################
    -- ### START CLOCK A ######################################
    -- SET MARKS ##############################################
    -- MARKS AROUND CLOCK A -- Large Main 24 HR Clock
    local number_marks_A=24
    -- set mark length
    local m_length_A=0
    -- set mark width
    local m_width_A=0
    -- set mark line cap type
    local m_cap=CAIRO_LINE_CAP_ROUND
    -- set mark color and alpha,red blue green alpha
    local mr,mg,mb,ma=1,1,1,1-- opaque white
    -- SETUP HOUR HANDS #######################################
    -- CLOCK A HOUR HAND
    -- set length of hour hand
    hh_length_A=130
    -- set hour hand width
    hh_width_A=3
    -- set hour hand line cap
    hh_cap=CAIRO_LINE_CAP_ROUND
    -- set hour hand color
    hhr,hhg,hhb,hha=1,1,1,.5-- fully opaque white
    -- SETUP MINUTE HANDS #####################################
    -- CLOCK A MINUTE HAND SETUP
    -- set length of minute hand
    mh_length_A=145
    -- set minute hand width
    mh_width_A=2
    -- set minute hand line cap
    mh_cap=CAIRO_LINE_CAP_ROUND
    -- set minute hand color
    mhr,mhg,mhb,mha=1,1,1,.5-- fully opaque white
    -- SETUP SECOND HANDS #####################################
    -- CLOCK A SECOND HAND SETUP
    -- set length of seconds hand
    sh_length_A=150
    -- set hour hand width
    sh_width_A=2
    -- set hour hand line cap
    sh_cap=CAIRO_LINE_CAP_ROUND
    -- set seconds hand color
    shr,shg,shb,sha=1,0,0,1-- fully opaque red
    -- CLOCK A ###### 12 HR TIME ##############################
    -- CLOCK SETTINGS
    clock_radius=200
    clock_centerx=175
    clock_centery=175
    -- DRAWING CODE
    -- DRAW BORDER
    cairo_set_source_rgba (cr,cbr,cbg,cbb,cba)
    cairo_set_line_width (cr,clock_border_width)
    cairo_arc (cr,clock_centerx,clock_centery,clock_radius,0,2*math.pi)
    cairo_stroke (cr)
    -- DRAW MARKS
    -- stuff that can be moved outside of the loop, needs only be set once
    -- calculate end and start radius for marks
    m_end_rad=clock_radius-b_to_m
    m_start_rad=m_end_rad-m_length_A
    -- set line cap type
    cairo_set_line_cap  (cr, m_cap)
    -- set line width
    cairo_set_line_width (cr,m_width_A)
    -- set color and alpha for marks
    cairo_set_source_rgba (cr,mr,mg,mb,ma)
    -- START LOOP FOR HOUR MARKS
    for i=1,number_marks_A do
    -- drawing code using the value of i to calculate degrees
    -- calculate start point for 12/24 hour mark
    radius=m_start_rad
    point=(math.pi/180)*((i-1)*(360/number_marks_A))
    x=0+radius*(math.sin(point))
    y=0-radius*(math.cos(point))
    -- set start point for line
    cairo_move_to (cr,clock_centerx+x,clock_centery+y)
    -- calculate end point for 12/24 hour mark
    radius=m_end_rad
    point=(math.pi/180)*((i-1)*(360/number_marks_A))
    x=0+radius*(math.sin(point))
    y=0-radius*(math.cos(point))
    -- set path for line
    cairo_line_to (cr,clock_centerx+x,clock_centery+y)
    -- draw the line
    cairo_stroke (cr)
    end-- of for loop
    -- HOUR MARKS
    -- TIME CALCULATIONS CLOCK A
    if clock_type_A==12 then
    hours=tonumber(os.date("%I"))
    -- convert hours to seconds
    h_to_s=hours*60*60
    elseif clock_type_A==24 then
    hours=tonumber(os.date("%H"))
    -- convert hours to seconds
    h_to_s=hours*60*60
    end
    minutes=tonumber(os.date("%M"))
    -- convert minutes to seconds
    m_to_s=minutes*60
    -- get current seconds
    seconds=tonumber(os.date("%S"))
    -- DRAW HOUR HAND
    -- get hours minutes seconds as just seconds
    hsecs=h_to_s+m_to_s+seconds
    -- calculate degrees for each second
    hsec_degs=hsecs*(360/(60*60*clock_type_A))-- use equation ~ eliminate decimals
    -- set radius to calculate hand points
    radius=hh_length_A
    -- set start line coordinates, the center of the circle
    cairo_move_to (cr,clock_centerx,clock_centery)
    -- calculate coordinates for end of hour hand
    point=(math.pi/180)*hsec_degs
    x=0+radius*(math.sin(point))
    y=0-radius*(math.cos(point))
    -- describe the line we will draw
    cairo_line_to (cr,clock_centerx+x,clock_centery+y)
    -- set up line attributes and draw line
    cairo_set_line_width (cr,hh_width_A)
    cairo_set_source_rgba (cr,hhr,hhg,hhb,hha)
    cairo_set_line_cap  (cr, hh_cap)
    cairo_stroke (cr)
    -- DRAW MINUTE HAND
    -- get minutes and seconds just as seconds
    msecs=m_to_s+seconds
    -- calculate degrees for each second
    msec_degs=msecs*0.1
    -- set radius to calculate hand points
    radius=mh_length_A
    -- set start line coordinates, the center of the circle
    cairo_move_to (cr,clock_centerx,clock_centery)
    -- calculate coordinates for end of minute hand
    point=(math.pi/180)*msec_degs
    x=0+radius*(math.sin(point))
    y=0-radius*(math.cos(point))
    -- describe the line we will draw
    cairo_line_to (cr,clock_centerx+x,clock_centery+y)
    -- set up line attributes and draw line
    cairo_set_line_width (cr,mh_width_A)
    cairo_set_source_rgba (cr,mhr,mhg,mhb,mha)
    cairo_set_line_cap  (cr, mh_cap)
    cairo_stroke (cr)
    -- DRAW SECOND HAND
    --[[
    -- calculate degrees for each second
    sec_degs=seconds*6
    -- set radius to calculate hand points
    radius=sh_length_A
    -- set start line coordinates, the center of the circle
    cairo_move_to (cr,clock_centerx,clock_centery)
    -- calculate coordinates for end of seconds hand
    point=(math.pi/180)*sec_degs
    x=0+radius*(math.sin(point))
    y=0-radius*(math.cos(point))
    -- describe the line we will draw
    cairo_line_to (cr,clock_centerx+x,clock_centery+y)
    -- set up line attributes
    cairo_set_line_width (cr,sh_width_A)
    cairo_set_source_rgba (cr,shr,shg,shb,sha)
    cairo_set_line_cap  (cr, sh_cap)
    cairo_stroke (cr)
    ]]
    -- ####################################################################
    -- part of a second hand
    
    --position
    local center_x=175
    local center_y=175
    --get seconds value
    local seconds=tonumber(os.date("%S"))
    --calculate rotation of second hand in degrees
    local arc=(math.pi/180)*((360/60)*seconds)
    --calculate point 1
    local radius1=140
    local x1=0+radius1*math.sin(arc)
    local y1=0-radius1*math.cos(arc)
    --calculate point 2
    local radius2=158
    local x2=0+radius2*math.sin(arc)
    local y2=0-radius2*math.cos(arc)
    --draw line connecting points
    cairo_move_to (cr, center_x+x1,center_y+y1)
    cairo_line_to (cr, center_x+x2, center_y+y2)
    cairo_set_source_rgba (cr,255/255,0/255,0/255,1)
    cairo_stroke (cr)
    -- ####################################################################
    
    -- POSITION FOR TEXT HOUR NUMBERS
    local center_x=175
    local center_y=175
    local radius=165
    -- FONT
    cairo_select_font_face (cr, "CorporateMonoExtraBold", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, 16)
    cairo_set_source_rgba (cr,1,1,1,1) --(cr,194/255,204/255,255/255,1)	-- (cr,1,1,1,1)
    -- TABLE OF TEXT -- in order
    text_days={"00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23",}
    for i=1,24 do
    -- OUTTER POINTS POSTION FOR TEXT
    local point=(math.pi/180)*((360/24)*(i-1))
    local x=0+radius*(math.sin(point))
    local y=0-radius*(math.cos(point))
    -- CALCULATE CENTRE OF TEXT
    local text=text_days[i]--gets text from table
    local extents=cairo_text_extents_t:create()
    cairo_text_extents(cr,text,extents)
    local width=extents.width
    local height=extents.height
    cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
    cairo_show_text (cr, text)
    cairo_stroke (cr)
    end
    -- INNER POINTS POSITION, radius smaller than text circle
    local radius=150
    for i=1,24 do
    local point=(math.pi/180)*((360/24)*(i-1))
    local x=0+radius*(math.sin(point))
    local y=0-radius*(math.cos(point))
    cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
    cairo_stroke (cr)
    end
    --[[ HOUR POINTS CIRCLES,  ##########Uncoment section to draw rings around numbers
    local radius=162
    for i=1,60 do
    local point=(math.pi/180)*((360/12)*(i-1))
    local x=0+radius*(math.sin(point))
    local y=0-radius*(math.cos(point))
    cairo_arc (cr,center_x+x,center_y+y,12,0,2*math.pi)
    cairo_stroke (cr)
    end]]
    -- ### END CLOCK A ########################################
    
    
    
    -- ########################################################
    cairo_destroy(cr)
    cairo_surface_destroy(cs)
    cr=nil
    end-- end main function
    and last but not least the conkyForecast template: /media/5/Conky/McBars/scripts/chronograph.weather.template
    Code:
     Sunrise${goto 290}Sunset
     [--datatype=SR]${goto 300}[--datatype=SS]
    
    
    ${goto 55}Visible${goto 240}Rain?
    ${goto 55}[--datatype=VI]${goto 240}[--datatype=PC]
    
    
    
    
    
    
    
    ${goto 55}High: [--datatype=HT --startday=0]${goto 235}Now: [--datatype=LT --night]
    ${goto 70}Low: [--datatype=LT --startday=0]${goto 230}FL: [--datatype=LT --night]
    ${goto 90}Bar: [--datatype=BR]${goto 220}UV: [--datatype=UI]
    ${goto 120}Humidity: [--datatype=HM]${image [--datatype=MI] -p 150,73 -s 50x50}
     Daylight${goto 140}Dew: [--datatype=DP]${image [--datatype=WI] -p 125,170 -s 100x100 -n}${goto 300}Wind
     [--datatype=DL]${goto 260}[--datatype=WD] @ [--datatype=WS]
    and my: /home/sector11/.conkyForecast.config
    Code:
    #=============================================#
    # EXPERT SETTINGS, NOT REQUIRED TO BE ALTERED #
    #=============================================#
    #BASE_XOAP_URL = http://xoap.weather.com/weather/local/<LOCATION>?cc=*&dayf=5&link=xoap&prod=xoap&par=<XOAP_PARTNER_ID>&key=<XOAP_LICENCE_KEY>&unit=m
    BASE_XOAP_URL = http://xml.weather.com/weather/local/<LOCATION>?cc=*&dayf=10&link=xoap&prod=xoap&par=<XOAP_PARTNER_ID>&key=<XOAP_LICENCE_KEY>&unit=m
    MAXIMUM_DAYS_FORECAST = 9
    
    #===============================================#
    # USER SETTINGS, EDIT BASED ON DOCUMENTED SETUP #
    #===============================================#
    CACHE_FOLDERPATH = /home/sector11/Conky/cache/
    CONNECTION_TIMEOUT = 5
    EXPIRY_MINUTES = 30
    TIME_FORMAT = %H:%M
    DATE_FORMAT = %Y-%m-%d
    LOCALE = en
    XOAP_PARTNER_ID =
    XOAP_LICENCE_KEY =
    DEFAULT_LOCATION = ARBA0009
    AUTO_NIGHT = TRUE
    PROXY_HOST =
    PROXY_PORT = 8080
    PROXY_USERNAME =
    PROXY_PASSWORD =

  3. #20973
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Paari View Post
    Sorry for the 24 hour format though i like it this way
    No need to apologize, 24 hours format it's used in a lot of places.

    I like it as well, take a look at the analogue 24 hour clock above.

  4. #20974
    Join Date
    Oct 2010
    Location
    Whitney Point, NY
    Beans
    93

    Re: Post your .conkyrc files w/ screenshots

    I've got a weird problem I'm experiencing. Been playing around with Linux Mint 13 and got both my conkys working after fixing the sensors issue. Problem is, when they do start, my hardware monitor conky starts on my right monitor, my weather conky starts on my left monitor, both should start on the left monitor.
    If I remove this line, it will restart in the correct position except it will start as a window with minimize maximize and close buttons.
    Code:
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    When I put that line back in and save it, it will restart in the correct spot and as it should.
    The whole section for placement is here
    Code:
    ####
    ## Daemonize Conky, aka 'fork to background'.
    #
    background yes
    
    ####
    ## Update interval in seconds.
    #
    update_interval 1.5
    
    ####
    ## The number of times Conky will update before quitting.
    ## Zero makes Conky run forever.
    #
    total_run_times 0
    
    ####
    ## Create own window instead of using desktop?
    #
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    
    ####
    ## Force images to redraw when they change.
    #
    imlib_cache_size 0
    
    ####
    ## Use double buffering? Reduces flicker.
    #
    double_buffer yes
    
    ####
    ## Draw shades?
    #
    draw_shades no
    
    ####
    ## Draw outlines?
    #
    draw_outline yes # amplifies text if yes
    
    ####
    ## 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_left
    
    ####
    ## Minimum size of the text area.
    ## Syntax: minimum_size [width] [height]
    #
    minimum_size 260 1394
    
    ####
    ## Maximum width of the text area.
    ## Syntax: maximum_width [width]
    #
    maximum_width 280
    
    ####
    ## Gap between text and screen borders.
    #
    gap_x 6     ## Right / Left
    gap_y 6  ## Top / Bottom
    
    ####
    ## 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
    
    ####
    ## 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 3
    
    ####
    ## 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 left
    Both conkys worked beautifully in Ubuntu, just acts up in Mint. They don't start from boot-up either, but will when I log out then back in. Don't understand it .

  5. #20975
    Join Date
    Aug 2010
    Location
    Earth, usually...
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Hello all,

    After perusing google, this forum, and crunchbang among other sites, I've been unable to find a solution to getting conky to check my POP/POP3 email addresses. Is this possible, and if so does someone have a script I can copy? I have my own mail server that is part of my web domain, and would like to be able for conky to display the accounts that have messages if possible. I also have .live, .yahoo, .gmail, .hotmail, and other IMAP accounts that it would be nice to display as well. I would like to create a totally separate conky that was for email only.

    I have Conky 1.9.1_pre2429 on 12.04 64bit.

    Thanks,
    Jed

  6. #20976
    Join Date
    Mar 2007
    Beans
    31

    Re: Post your .conkyrc files w/ screenshots

    I cannot get my /home disk usage to read. My home directory is on another partition and it is enrypted.
    Attached Images Attached Images

  7. #20977
    Join Date
    Nov 2012
    Beans
    0

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Paari View Post
    Sorry for the 24 hour format though i like it this way

    I'm sorry for my newbishness, i really like this setup, but where do i get the lua file? And whatever else I seem to be missing...

    -Exo

  8. #20978
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by FrankenCub View Post
    I've got a weird problem I'm experiencing. Been playing around with Linux Mint 13 and got both my conkys working after fixing the sensors issue. Problem is, when they do start, my hardware monitor conky starts on my right monitor, my weather conky starts on my left monitor, both should start on the left monitor.
    If I remove this line, it will restart in the correct position except it will start as a window with minimize maximize and close buttons.
    Code:
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    When I put that line back in and save it, it will restart in the correct spot and as it should.
    The whole section for placement is here
    Code:
    ####
    ## Daemonize Conky, aka 'fork to background'.
    #
    background yes
    
    ####
    ## Update interval in seconds.
    #
    update_interval 1.5
    
    ####
    ## The number of times Conky will update before quitting.
    ## Zero makes Conky run forever.
    #
    total_run_times 0
    
    ####
    ## Create own window instead of using desktop?
    #
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    
    ####
    ## Force images to redraw when they change.
    #
    imlib_cache_size 0
    
    ####
    ## Use double buffering? Reduces flicker.
    #
    double_buffer yes
    
    ####
    ## Draw shades?
    #
    draw_shades no
    
    ####
    ## Draw outlines?
    #
    draw_outline yes # amplifies text if yes
    
    ####
    ## 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_left
    
    ####
    ## Minimum size of the text area.
    ## Syntax: minimum_size [width] [height]
    #
    minimum_size 260 1394
    
    ####
    ## Maximum width of the text area.
    ## Syntax: maximum_width [width]
    #
    maximum_width 280
    
    ####
    ## Gap between text and screen borders.
    #
    gap_x 6     ## Right / Left
    gap_y 6  ## Top / Bottom
    
    ####
    ## 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
    
    ####
    ## 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 3
    
    ####
    ## 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 left
    Both conkys worked beautifully in Ubuntu, just acts up in Mint. They don't start from boot-up either, but will when I log out then back in. Don't understand it .
    try this for both conkys:
    Code:
    alignment top_left
    Leave one like this:
    Code:
    gap_x 6     ## Right / Left
    gap_y 6  ## Up / Down
    Change the other to:
    Code:
    gap_x 1000     ## Right / Left  <<-- adjust as needed.
    gap_y 6  ## Up / Down
    You may need a sleep time in your start up, check this out: Start/Stop Conky

  9. #20979
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Jedcurtis View Post
    Hello all,

    After perusing google, this forum, and crunchbang among other sites, I've been unable to find a solution to getting conky to check my POP/POP3 email addresses. Is this possible, and if so does someone have a script I can copy? I have my own mail server that is part of my web domain, and would like to be able for conky to display the accounts that have messages if possible. I also have .live, .yahoo, .gmail, .hotmail, and other IMAP accounts that it would be nice to display as well. I would like to create a totally separate conky that was for email only.

    I have Conky 1.9.1_pre2429 on 12.04 64bit.

    Thanks,
    Jed
    Hi Jed, have you checked out conkyEmail? it will do everything you're talking about above. I can help you when needed.

    conkyEmail, it's what I use since the day it was created.

    Oooooooooooooo - Conky 1.9.1_pre2429 - looks good!

  10. #20980
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by trellis2 View Post
    I cannot get my /home disk usage to read. My home directory is on another partition and it is enrypted.
    The encryption may be the problem, my home is on it's own partition as well

    The commands are easy enough:
    Code:
    ${fs_used_perc /home}% Used of ${fs_size /home}${alignr}Free: ${fs_free /home}

Page 2098 of 2348 FirstFirst ... 1098159819982048208820962097209820992100210821482198 ... 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
  •