Page 2177 of 2298 FirstFirst ... 1177167720772127216721752176217721782179218722272277 ... LastLast
Results 21,761 to 21,770 of 22973

Thread: Post your .conkyrc files w/ screenshots

  1. #21761
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Petro Dawg View Post
    Welcome to my obsessive compulsive disorder world of overly super extreme code comments ... Seriously, my comments take up much more space than the code it's self.
    Ohhhhhhhhh OK that explains that.

  2. #21762
    Join Date
    Apr 2013
    Beans
    0

    Re: Post your .conkyrc files w/ screenshots

    Conkpit



    Conkyrc
    Code:
    background yes
    update_interval 2
    total_run_times 0
    
    cpu_avg_samples 2
    net_avg_samples 2
    temperature_unit celsius
    
    double_buffer yes
    no_buffers yes
    text_buffer_size 2048
    
    gap_x 0
    gap_y 0
    minimum_size 1024 600
    maximum_width 1024
    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
    alignment tl
    
    draw_shades no
    default_shade_color 222222
    draw_outline no
    draw_borders no
    draw_graph_borders no
    
    hddtemp_host 127.0.0.1
    hddtemp_port 7634
    
    override_utf8_locale yes
    use_xft yes
    xftfont zekton:size=10.5
    xftalpha 1
    uppercase no
    
    default_color ffffff    
    color1 dddddd        
    color2 bbbbbb    
    color3 999999
    color4 777777
    color9 6D8F6B
    
    lua_load ~/.conky/conky.lua
    lua_draw_hook_post main
    lua_load ~/.conky/clock_rings.lua
    lua_draw_hook_pre clock_rings
    
    TEXT
    ${font zekton :size=08}
    ${alignc}${color1}${top name 1}  ${top cpu 1}   ${top mem 1}
    ${alignc}${color2}${top name 2}  ${top cpu 2}   ${top mem 2}
    ${alignc}${color3}${top name 3}  ${top cpu 3}   ${top mem 3}
    ${alignc}${color4}${top name 4}  ${top cpu 4}   ${top mem 4}
    ${alignc}${color4}${top name 5}  ${top cpu 5}   ${top mem 5}
    ${alignc}${color4}${top name 6}  ${top cpu 6}   ${top mem 6}
    ${alignc}${color4}${top name 7}  ${top cpu 7}   ${top mem 7}
    ${alignc}${color4}${top name 8}  ${top cpu 8}   ${top mem 8}
    
    ${color1}${voffset 6}${font zekton :size=07}
    ${offset 380}${execi 600  sed -n '3p' $HOME/1d_accuweather_rss/weather}
    ${offset 380}${execpi 600 sed -n '4p' $HOME/1d_accuweather_rss/weather|cut -c1-20}
    ${offset 380}${execpi 600 sed -n '4p' $HOME/1d_accuweather_rss/weather|cut -c21-40}
    ${offset 380}${execpi 600 sed -n '4p' $HOME/1d_accuweather_rss/weather|cut -c41-60}
    ${voffset -48}${offset 540}${alignc}${execi 600  sed -n '6p' $HOME/1d_accuweather_rss/weather}
    ${offset 540}${execpi 600 sed -n '4p' $HOME/1d_accuweather_rss/weather|cut -c1-20}
    ${offset 540}${execpi 600 sed -n '7p' $HOME/1d_accuweather_rss/weather|cut -c21-40}
    ${offset 540}${execpi 600 sed -n '7p' $HOME/1d_accuweather_rss/weather|cut -c41-60}$color$font
    ${voffset 240}${font zekton :size=8}
    ${offset 472}${color7}Essid:${color9}${wireless_essid wlan0} ${color7}Br: ${color9}${wireless_bitrate wlan0}${color7}
    ${offset 472}${color7}IP Local:${color9} ${addr wlan0}
    ${offset 472}${color7}IP Publica:${color9}${texeci 3600 wget http://checkip.dyndns.org -O - -o /dev/null | cut -d : -f 2 | cut -d \< -f 1}
    ${offset 472}${color7}Puerta:${color9}${gw_ip}
    ${offset 472}${color7}Total down:  ${color9}${totaldown wlan0} 
    ${offset 472}${color7}Total up:  ${color9}${totalup wlan0}
    lua
    Code:
    require 'cairo'
    
    
    --------------------------------------------------------------------------------
    --                                                                    gauge DATA
    gauge = {
    {
        name='cpu',                    arg='cpu0',                  max_value=100,
        x=213,                          y=322,
        graph_radius=46,
        graph_thickness=8,
        graph_start_angle=180,
        graph_unit_angle=2.7,          graph_unit_thickness=2.7,
        graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
        graph_fg_colour=0xffffff,      graph_fg_alpha=0.9,
        hand_fg_colour=0xffffff,       hand_fg_alpha=1.0,
        txt_radius=0,
        txt_weight=0,                  txt_size=10.0,
        txt_fg_colour=0xffffff,        txt_fg_alpha=1.0,
        graduation_radius=46,
        graduation_thickness=8,        graduation_mark_thickness=2,
        graduation_unit_angle=10,
        graduation_fg_colour=0xffffff, graduation_fg_alpha=1.0,
        caption='CPU1',
        caption_weight=0.5,              caption_size=8.0,
        caption_fg_colour=0xffffff,    caption_fg_alpha=0.5,
    },
    {
        name='cpu',                    arg='cpu2',                  max_value=100,
        x=217,                          y=442,
        graph_radius=46,
        graph_thickness=8,
        graph_start_angle=180,
        graph_unit_angle=2.7,          graph_unit_thickness=2.7,
        graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
        graph_fg_colour=0xffffff,      graph_fg_alpha=0.9,
        hand_fg_colour=0xffffff,       hand_fg_alpha=1.0,
        txt_radius=0,
        txt_weight=0,                  txt_size=10.0,
        txt_fg_colour=0xffffff,        txt_fg_alpha=1.0,
        graduation_radius=46,
        graduation_thickness=8,        graduation_mark_thickness=2,
        graduation_unit_angle=10,
        graduation_fg_colour=0xffffff, graduation_fg_alpha=1.0,
        caption='CPU2',
        caption_weight=0.5,              caption_size=8.0,
        caption_fg_colour=0xffffff,    caption_fg_alpha=0.5,
    },
    {
        name='swapperc',                arg='',                      max_value=100,
        x=166,                          y=551,
        graph_radius=32,
        graph_thickness=5,
        graph_start_angle=180,
        graph_unit_angle=2.7,          graph_unit_thickness=2.7,
        graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
        graph_fg_colour=0xffffff,      graph_fg_alpha=0.9,
        hand_fg_colour=0xffffff,       hand_fg_alpha=1.0,
        txt_radius=0,
        txt_weight=0,                  txt_size=10.0,
        txt_fg_colour=0xffffff,        txt_fg_alpha=1.0,
        graduation_radius=32,
        graduation_thickness=5,        graduation_mark_thickness=2,
        graduation_unit_angle=10,
        graduation_fg_colour=0xffffff, graduation_fg_alpha=1.0,
        caption='SWAP',
        caption_weight=0.5,              caption_size=8.0,
        caption_fg_colour=0xffffff,    caption_fg_alpha=0.5,
    },
    {
        name='memperc',                arg='',                      max_value=100,
        x=257,                          y=552,
        graph_radius=32,
        graph_thickness=5,
        graph_start_angle=180,
        graph_unit_angle=2.7,          graph_unit_thickness=2.7,
        graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
        graph_fg_colour=0xffffff,      graph_fg_alpha=0.9,
        hand_fg_colour=0xffffff,       hand_fg_alpha=1.0,
        txt_radius=0,
        txt_weight=0,                  txt_size=10.0,
        txt_fg_colour=0xffffff,        txt_fg_alpha=1.0,
        graduation_radius=32,
        graduation_thickness=5,        graduation_mark_thickness=2,
        graduation_unit_angle=10,
        graduation_fg_colour=0xffffff, graduation_fg_alpha=1.0,
        caption='RAM',
        caption_weight=0.5,              caption_size=8.0,
        caption_fg_colour=0xffffff,    caption_fg_alpha=0.5,
    },
    {
        name='acpitemp',           arg='',                     max_value=100,
        x=349,                          y=553,
        graph_radius=32,
        graph_thickness=5,
        graph_start_angle=180,
        graph_unit_angle=2.7,          graph_unit_thickness=2.7,
        graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
        graph_fg_colour=0xffffff,      graph_fg_alpha=0.9,
        hand_fg_colour=0xffffff,       hand_fg_alpha=1.0,
        txt_radius=0,
        txt_weight=0,                  txt_size=10.0,
        txt_fg_colour=0xffffff,        txt_fg_alpha=1.0,
        graduation_radius=32,
        graduation_thickness=5,        graduation_mark_thickness=2,
        graduation_unit_angle=10,
        graduation_fg_colour=0xffffff, graduation_fg_alpha=1.0,
        caption='TMP',
        caption_weight=0.5,              caption_size=8.0,
        caption_fg_colour=0xffffff,    caption_fg_alpha=0.5,
    },
    {
        name='downspeedf',           arg='wlan0',                     max_value=100,
        x=832,                          y=400,
        graph_radius=24,
        graph_thickness=6,
        graph_start_angle=180,
        graph_unit_angle=2.7,          graph_unit_thickness=2.7,
        graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
        graph_fg_colour=0xffffff,      graph_fg_alpha=0.9,
        hand_fg_colour=0xffffff,       hand_fg_alpha=1.0,
        txt_radius=0,
        txt_weight=0,                  txt_size=10.0,
        txt_fg_colour=0xffffff,        txt_fg_alpha=1.0,
        graduation_radius=33,
        graduation_thickness=5,        graduation_mark_thickness=1,
        graduation_unit_angle=27,
        graduation_fg_colour=0xffffff, graduation_fg_alpha=0.5,
        caption='Down',
        caption_weight=0.5,              caption_size=8.0,
        caption_fg_colour=0xffffff,    caption_fg_alpha=0.5,
    },
    {
        name='upspeedf',           arg='wlan0',                     max_value=100,
        x=908,                          y=400,
        graph_radius=24,
        graph_thickness=6,
        graph_start_angle=180,
        graph_unit_angle=2.7,          graph_unit_thickness=2.7,
        graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
        graph_fg_colour=0xffffff,      graph_fg_alpha=0.9,
        hand_fg_colour=0xffffff,       hand_fg_alpha=1.0,
        txt_radius=0,
        txt_weight=0,                  txt_size=10.0,
        txt_fg_colour=0xffffff,        txt_fg_alpha=1.0,
        graduation_radius=33,
        graduation_thickness=5,        graduation_mark_thickness=1,
        graduation_unit_angle=27,
        graduation_fg_colour=0xffffff, graduation_fg_alpha=0.5,
        caption='Up',
        caption_weight=0.5,              caption_size=8.0,
        caption_fg_colour=0xffffff,    caption_fg_alpha=0.5,
    },
    {
        name='wireless_link_qual',           arg='wlan0',                     max_value=100,
        x=732,                          y=426,
        graph_radius=37,
        graph_thickness=18,
        graph_start_angle=180,
        graph_unit_angle=2.7,          graph_unit_thickness=2.7,
        graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
        graph_fg_colour=0xffffff,      graph_fg_alpha=0.5,
        hand_fg_colour=0xffffff,       hand_fg_alpha=0.6,
        txt_radius=0,
        txt_weight=0,                  txt_size=8.0,
        txt_fg_colour=0xffffff,        txt_fg_alpha=1.0,
        graduation_radius=28,
        graduation_thickness=0,        graduation_mark_thickness=1,
        graduation_unit_angle=27,
        graduation_fg_colour=0xffffff, graduation_fg_alpha=0.3,
        caption='',
        caption_weight=0.5,              caption_size=10.0,
        caption_fg_colour=0xffffff,    caption_fg_alpha=0.5,
    },
    {
        name='battery_percent',           arg='BAT0',                     max_value=100,
        x=720,                          y=265,
        graph_radius=34,
        graph_thickness=4,
        graph_start_angle=210,
        graph_unit_angle=2.5,          graph_unit_thickness=2.5,
        graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
        graph_fg_colour=0xff0000,      graph_fg_alpha=0.2,
        hand_fg_colour=0xffffff,       hand_fg_alpha=1.0,
        txt_radius=0,
        txt_weight=0,                  txt_size=8.0,
        txt_fg_colour=0xffffff,        txt_fg_alpha=1.0,
        graduation_radius=28,
        graduation_thickness=0,        graduation_mark_thickness=1,
        graduation_unit_angle=27,
        graduation_fg_colour=0xffffff, graduation_fg_alpha=0.3,
        caption='',
        caption_weight=0.5,              caption_size=10.0,
        caption_fg_colour=0xffffff,    caption_fg_alpha=0.5,
    },
    }
    
    -------------------------------------------------------------------------------
    --                                                                 rgb_to_r_g_b
    -- converts color in hexa to decimal
    --
    function rgb_to_r_g_b(colour, alpha)
        return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
    end
    
    -------------------------------------------------------------------------------
    --                                                            angle_to_position
    -- convert degree to rad and rotate (0 degree is top/north)
    --
    function angle_to_position(start_angle, current_angle)
        local pos = current_angle + start_angle
        return ( ( pos * (2 * math.pi / 360) ) - (math.pi / 2) )
    end
    
    
    -------------------------------------------------------------------------------
    --                                                              draw_gauge_ring
    -- displays gauges
    --
    function draw_gauge_ring(display, data, value)
        local max_value = data['max_value']
        local x, y = data['x'], data['y']
        local graph_radius = data['graph_radius']
        local graph_thickness, graph_unit_thickness = data['graph_thickness'], data['graph_unit_thickness']
        local graph_start_angle = data['graph_start_angle']
        local graph_unit_angle = data['graph_unit_angle']
        local graph_bg_colour, graph_bg_alpha = data['graph_bg_colour'], data['graph_bg_alpha']
        local graph_fg_colour, graph_fg_alpha = data['graph_fg_colour'], data['graph_fg_alpha']
        local hand_fg_colour, hand_fg_alpha = data['hand_fg_colour'], data['hand_fg_alpha']
        local graph_end_angle = (max_value * graph_unit_angle) % 360
    
        -- background ring
        cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, 0), angle_to_position(graph_start_angle, graph_end_angle))
        cairo_set_source_rgba(display, rgb_to_r_g_b(graph_bg_colour, graph_bg_alpha))
        cairo_set_line_width(display, graph_thickness)
        cairo_stroke(display)
    
        -- arc of value
        local val = value % (max_value + 1)
        local start_arc = 0
        local stop_arc = 0
        local i = 1
        while i <= val do
            start_arc = (graph_unit_angle * i) - graph_unit_thickness
            stop_arc = (graph_unit_angle * i)
            cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
            cairo_set_source_rgba(display, rgb_to_r_g_b(graph_fg_colour, graph_fg_alpha))
            cairo_stroke(display)
            i = i + 1
        end
        local angle = start_arc
    
        -- hand
        start_arc = (graph_unit_angle * val) - (graph_unit_thickness * 2)
        stop_arc = (graph_unit_angle * val)
        cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
        cairo_set_source_rgba(display, rgb_to_r_g_b(hand_fg_colour, hand_fg_alpha))
        cairo_stroke(display)
    
        -- graduations marks
        local graduation_radius = data['graduation_radius']
        local graduation_thickness, graduation_mark_thickness = data['graduation_thickness'], data['graduation_mark_thickness']
        local graduation_unit_angle = data['graduation_unit_angle']
        local graduation_fg_colour, graduation_fg_alpha = data['graduation_fg_colour'], data['graduation_fg_alpha']
        if graduation_radius > 0 and graduation_thickness > 0 and graduation_unit_angle > 0 then
            local nb_graduation = graph_end_angle / graduation_unit_angle
            local i = 0
            while i < nb_graduation do
                cairo_set_line_width(display, graduation_thickness)
                start_arc = (graduation_unit_angle * i) - (graduation_mark_thickness / 2)
                stop_arc = (graduation_unit_angle * i) + (graduation_mark_thickness / 2)
                cairo_arc(display, x, y, graduation_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
                cairo_set_source_rgba(display,rgb_to_r_g_b(graduation_fg_colour,graduation_fg_alpha))
                cairo_stroke(display)
                cairo_set_line_width(display, graph_thickness)
                i = i + 1
            end
        end
    
        -- text
        local txt_radius = data['txt_radius']
        local txt_weight, txt_size = data['txt_weight'], data['txt_size']
        local txt_fg_colour, txt_fg_alpha = data['txt_fg_colour'], data['txt_fg_alpha']
        local movex = txt_radius * math.cos(angle_to_position(graph_start_angle, angle))
        local movey = txt_radius * math.sin(angle_to_position(graph_start_angle, angle))
        cairo_select_font_face (display, "zekton", CAIRO_FONT_SLANT_NORMAL, txt_weight)
        cairo_set_font_size (display, txt_size)
        cairo_set_source_rgba (display, rgb_to_r_g_b(txt_fg_colour, txt_fg_alpha))
        cairo_move_to (display, x + movex - (txt_size / 2), y + movey + 3)
        cairo_show_text (display, value)
        cairo_stroke (display)
    
        -- caption
        local caption = data['caption']
        local caption_weight, caption_size = data['caption_weight'], data['caption_size']
        local caption_fg_colour, caption_fg_alpha = data['caption_fg_colour'], data['caption_fg_alpha']
        local tox = graph_radius * (math.cos((graph_start_angle * 2 * math.pi / 360)-(math.pi/2)))
        local toy = graph_radius * (math.sin((graph_start_angle * 2 * math.pi / 360)-(math.pi/2)))
        cairo_select_font_face (display, "zekton", CAIRO_FONT_SLANT_NORMAL, caption_weight);
        cairo_set_font_size (display, caption_size)
        cairo_set_source_rgba (display, rgb_to_r_g_b(caption_fg_colour, caption_fg_alpha))
        cairo_move_to (display, x + tox + 5, y + toy + 1)
        -- bad hack but not enough time !
        if graph_start_angle < 105 then
            cairo_move_to (display, x + tox - 30, y + toy + 1)
        end
        cairo_show_text (display, caption)
        cairo_stroke (display)
    end
    
    
    -------------------------------------------------------------------------------
    --                                                               go_gauge_rings
    -- loads data and displays gauges
    --
    function go_gauge_rings(display)
        local function load_gauge_rings(display, data)
            local str, value = '', 0
            str = string.format('${%s %s}',data['name'], data['arg'])
            str = conky_parse(str)
            value = tonumber(str)
            draw_gauge_ring(display, data, value)
        end
        
        for i in pairs(gauge) do
            load_gauge_rings(display, gauge[i])
        end
    end
    
    -------------------------------------------------------------------------------
    --                                                                         MAIN
    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)
        local display = cairo_create(cs)
        
        local updates = conky_parse('${updates}')
        update_num = tonumber(updates)
        
        if update_num > 5 then
            go_gauge_rings(display)
        end
    
        cairo_surface_destroy(cs)
        cairo_destroy(display)
    
    end
    lua clock
    Code:
    settings_table = {
        {
            -- Edit this table to customise your rings.
    
            name='time',
            -- "arg" is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, 'cpu0' would be the argument. If you would not use an argument in the Conky variable, use ''.
            arg='%I.%M',
            -- "max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
            max=12,
            -- "bg_colour" is the colour of the base ring.
            bg_colour=0xbcbcbc,
            -- "bg_alpha" is the alpha value of the base ring.
            bg_alpha=0,
            -- "fg_colour" is the colour of the indicator part of the ring.
            fg_colour=0xbcbcbc,
            -- "fg_alpha" is the alpha value of the indicator part of the ring.
            fg_alpha=0,
            -- "x" and "y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.
            x=100, y=110,
            -- "radius" is the radius of the ring.
            radius=30,
            -- "thickness" is the thickness of the ring, centred around the radius.
            thickness=2,
            -- "start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
            start_angle=0,
            -- "end_angle" is the ending angle of the ring, in degrees, clockwise from top. Value can be either positive or negative, but must be larger than start_angle.
            end_angle=360
        },
        
          
            
        
            
    }
    
    -- Use these settings to define the origin and extent of your clock.
    
    clock_r=25
    
    -- "clock_x" and "clock_y" are the coordinates of the centre of the clock, in pixels, from the top left of the Conky window.
    
    clock_x=709
    clock_y=535
    
    show_seconds=true
    
    require 'cairo'
    --------------------------------------------------------------------------------------------------------------------------
    --                                                                 rgb_to_r_g_b
    -- converts color in hexa to decimal
    --
    function rgb_to_r_g_b(colour, alpha)
        return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
    end
    --------------------------------------------------------------------------------------------------------------------------
    
    
    function draw_ring(cr,t,pt)
        local w,h=conky_window.width,conky_window.height
        
        local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
        local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']
    
        local angle_0=sa*(2*math.pi/360)-math.pi/2
        local angle_f=ea*(2*math.pi/360)-math.pi/2
        local t_arc=t*(angle_f-angle_0)
    
        -- Draw background ring
    
        cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
        cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
        cairo_set_line_width(cr,ring_w)
        cairo_stroke(cr)
        
        -- Draw indicator ring
    
        cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
        cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
        cairo_stroke(cr)        
    end
    
    function draw_clock_hands(cr,xc,yc)
        local secs,mins,hours,secs_arc,mins_arc,hours_arc
        local xh,yh,xm,ym,xs,ys
        
        secs=os.date("%S")    
        mins=os.date("%M")
        hours=os.date("%I")
            
        secs_arc=(2*math.pi/60)*secs
        mins_arc=(2*math.pi/60)*mins+secs_arc/60
        hours_arc=(2*math.pi/12)*hours+mins_arc/12
            
        -- Draw hour hand
        
        xh=xc+0.7*clock_r*math.sin(hours_arc)
        yh=yc-0.7*clock_r*math.cos(hours_arc)
        cairo_move_to(cr,xc,yc)
        cairo_line_to(cr,xh,yh)
        
        cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
        cairo_set_line_width(cr,5)
        cairo_set_source_rgba(cr,1,1,0.9,0.6)
        cairo_stroke(cr)
        
        -- Draw minute hand
        
        xm=xc+clock_r*math.sin(mins_arc)
        ym=yc-clock_r*math.cos(mins_arc)
        cairo_move_to(cr,xc,yc)
        cairo_line_to(cr,xm,ym)
        
        cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
        cairo_set_line_width(cr,3)
        cairo_set_source_rgba(cr,1,1,0.9,0.6)
        cairo_stroke(cr)
        
        -- Draw seconds hand
        
        if show_seconds then
            xs=xc+clock_r*math.sin(secs_arc)
            ys=yc-clock_r*math.cos(secs_arc)
            cairo_move_to(cr,xc,yc)
            cairo_line_to(cr,xs,ys)
        
            cairo_set_line_width(cr,1)
            cairo_set_source_rgba(cr,1,1,0.9,0.6)
            cairo_stroke(cr)
                    
        end
    end
    
    function conky_clock_rings()
        local function setup_rings(cr,pt)
            local str=''
            local value=0
            
            str=string.format('${%s %s}',pt['name'],pt['arg'])
            str=conky_parse(str)
            
            value=tonumber(str)
            pct=value/pt['max']
            
            draw_ring(cr,pct,pt)
        end
        
        -- Check that Conky has been running for at least 5s
    
        if conky_window==nil then return end
        local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
        
        local cr=cairo_create(cs)    
        
        local updates=conky_parse('${updates}')
        update_num=tonumber(updates)
        
        if update_num>5 then
            for i in pairs(settings_table) do
                setup_rings(cr,settings_table[i])
            end
        end
        
        draw_clock_hands(cr,clock_x,clock_y)
    end
    Weather script
    Code:
    #!/bin/bash
    
    #function: test_image
    test_image () {
        case $1 in
         1|01)
           echo a
         ;;
         2|02)
           echo b
         ;;
         3|03)
           echo c
         ;;
         4|04)
           echo c
         ;;
         5|05)
           echo c
         ;;
         6|06)
           echo d
         ;;
         7|07)
           echo e
         ;;
         8|08)
           echo e
         ;;
         11)
           echo 0
         ;;
         12)
           echo h
         ;;
         13|14)
           echo g
         ;;
         15)
           echo l
         ;;
         16|17)
           echo k
         ;;
         18|26)
           echo i
         ;;
         19)
           echo p
         ;;
         20|21|23)
           echo o
         ;;
         22)
           echo r
         ;;
         24|31)
           echo E
         ;;
         25)
           echo u
         ;;
         29)
           echo v
         ;;
         30)
           echo 5
         ;;
         32)
           echo 6
         ;;
         33)
           echo A
         ;;
         34|36|37)
           echo B
         ;;
         35|38)
           echo C
         ;;
         39|40)
           echo G
         ;;
         41|42)
           echo K
         ;;
         43|44)
           echo O
         ;;
        esac
    } 
    
    #put your accuweather rss address here
    address="http://rss.accuweather.com/rss/liveweather_rss.asp?metric=1&locCode=EUR|ES|AND|GIBRALEON"
    
    killall wget
    wget -O $HOME/1d_accuweather_rss/weather_raw $address
    
    
    if [[ -s $HOME/1d_accuweather_rss/weather_raw ]]; then
    
        egrep 'Currently|Forecast<\/title>|_31x31.gif' $HOME/1d_accuweather_rss/weather_raw > $HOME/1d_accuweather_rss/weather
        sed -i '/AccuWeather\|Currently in/d' $HOME/1d_accuweather_rss/weather
        sed -i -e 's/^[ \t]*//g' -e 's/<title>\|<\/title>\|<description>\|<\/description>//g' $HOME/1d_accuweather_rss/weather
        sed -i -e 's/&lt;img src="/\n/g' $HOME/1d_accuweather_rss/weather
        sed -i '/^$/d' $HOME/1d_accuweather_rss/weather
        sed -i -e 's/_31x31.*$//g' -e 's/^.*\/icons\///g' $HOME/1d_accuweather_rss/weather
        sed -i -e '1s/.$//' -e '3s/.$//' -e '6s/.$//' $HOME/1d_accuweather_rss/weather
        for (( i=2; i<=8; i+=3 ))
            do
                im=$(sed -n ${i}p $HOME/1d_accuweather_rss/weather)
                sed -i $i"s/^.*$/$(test_image $im)/" $HOME/1d_accuweather_rss/weather
            done
    
    fi
    wallpaper
    Last edited by tatxen; April 19th, 2013 at 03:53 AM.

  3. #21763
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by tatxen View Post
    Conkpit
    OH MY!!!!!!!! I Love it!

    That's great

    Reminds me of the space shuttle cockpit and the Space Station

    Now we need a Google: Formula 1 steering wheel >> image! Or a MACK truck dashboard.

    Options are endless.

    BTW:

    Code:
    top_name_width 8  #Width for $top name value (defaults to 15 characters). 
    TEXT
    would help align the top commands better.
    Last edited by Sector11; April 19th, 2013 at 04:12 AM.

  4. #21764
    Join Date
    Apr 2013
    Beans
    0

    Re: Post your .conkyrc files w/ screenshots

    Thank you master, I have learned a lot reading here. And thank you for the solution of aligned, but I have a problem, after restart now does not start conky, and from the console does not errors, but does not start, no is what can be, which review it all.His work with the space shuttle cockpit is great, but I have only a very small screen eeepc

    Forgive my English but I don't speak it and use translator

    Gracias y saludos

  5. #21765
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by tatxen View Post
    Forgive my English but I don't speak it and use translator

    Gracias y saludos
    Good day,

    No need to apologize for your English. The translator worked well.

    I write Spanish like Tarzan. Is your screen 1024x600?
    I am going to try your conky today.
    Also I am going to change ${alignc} for ${goto xxx} because I have a 1920x1080
    =============================
    Buen día

    No hay necesidad de pedir perdón por su inglés. El traductor trabajó bien.

    Yo escribo español como Tarzan. ¿Tu pantalla es de 1024x600?
    Voy a probar tu conky hoy.
    Tambien voy a cambiar ${alignc} por ${goto xx} porque tengo 1920x1080

    Oops! - Tengo que buscar el script de Teo de nuevo: 1d_accuweather_rss
    Last edited by Sector11; April 19th, 2013 at 02:23 PM.

  6. #21766
    Join Date
    Apr 2013
    Beans
    0

    Re: Post your .conkyrc files w/ screenshots

    Thank you very much for your help. The screen is 1024 x 600 is a small eeepc 1015pw.
    Which prevent the conky start was the script of the climate, surely I've damaged it or it was wrong because it download it from another site, I'll try the original of the link that you put (thanks again)

  7. #21767
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by tatxen View Post
    Thank you very much for your help. The screen is 1024 x 600 is a small eeepc 1015pw.
    Which prevent the conky start was the script of the climate, surely I've damaged it or it was wrong because it download it from another site, I'll try the original of the link that you put (thanks again)
    Accuweather scripts needed updating as the website changed how it displays.
    Translator: Las escrituras de Accuweather necesitaron la actualización cuando el sitio Web se cambió como esto muestra.

    Tu conky es muy lindo ... estoy trabajando!

    conkyrc
    Code:
    lua_load /media/5/conky/tatxen/conky.lua
    lua_draw_hook_post main
    lua_load /media/5/conky/tatxen/clock_rings.lua
    lua_draw_hook_pre clock_rings
    
    top_name_width 8
    
    TEXT
    ${font Zekton:size=8}
    ${goto 450}${color1}${top name 1}${goto 512}${top cpu 1}${goto 555}${top mem 1}
    ${goto 450}${color2}${top name 2}${goto 512}${top cpu 2}${goto 555}${top mem 2}
    ${goto 450}${color3}${top name 3}${goto 512}${top cpu 3}${goto 555}${top mem 3}
    ${goto 450}${color4}${top name 4}${goto 512}${top cpu 4}${goto 555}${top mem 4}
    ${goto 450}${color4}${top name 5}${goto 512}${top cpu 5}${goto 555}${top mem 5}
    ${goto 450}${color4}${top name 6}${goto 512}${top cpu 6}${goto 555}${top mem 6}
    ${goto 450}${color4}${top name 7}${goto 512}${top cpu 7}${goto 555}${top mem 7}
    ${goto 450}${color4}${top name 8}${goto 512}${top cpu 8}${goto 555}${top mem 8}
    
    ${color1}${voffset 6}${font Zekton:size=7}
    #${offset 380}${execi 600  sed -n '3p' $HOME/1d_accuweather_rss/weather}
    #${offset 380}${execpi 600 sed -n '4p' $HOME/1d_accuweather_rss/weather|cut -c1-20}
    #${offset 380}${execpi 600 sed -n '4p' $HOME/1d_accuweather_rss/weather|cut -c21-40}
    #${offset 380}${execpi 600 sed -n '4p' $HOME/1d_accuweather_rss/weather|cut -c41-60}
    #${voffset -48}${offset 540}${alignc}${execi 600  sed -n '6p' $HOME/1d_accuweather_rss/weather}
    #${offset 540}${execpi 600 sed -n '4p' $HOME/1d_accuweather_rss/weather|cut -c1-20}
    #${offset 540}${execpi 600 sed -n '7p' $HOME/1d_accuweather_rss/weather|cut -c21-40}
    #${offset 540}${execpi 600 sed -n '7p' $HOME/1d_accuweather_rss/weather|cut -c41-60}$color${font}
    
    
    
    
    
    
    
    
    
    
    ${voffset 245}${font Zekton:size=8}${goto 475}${color7}Essid: ${color9}KALI${goto 535}${color7}Br: ${color9}72.2 Mb/s
    ${goto 475}${color7}IP Local:${goto 535}${color9} ${addr eth0}
    ${goto 475}${color7}IP Publica:${goto 535}${color9}${texeci 3600 wget http://checkip.dyndns.org -O - -o /dev/null | cut -d : -f 2 | cut -d \< -f 1}
    ${goto 475}${color7}Puerta:${goto 535} ${color9}${gw_ip}
    ${goto 475}${color7}Total down:${goto 535}${color9}${totaldown eth0}
    ${goto 475}${color7}Total up:${goto 535}${color9}${totalup eth0}
    cambiaba (?) wlan0 por eth0 y entonces yo tengo:

    Code:
    Essid: ${color9}KALI${goto 535}${color7}Br: ${color9}72.2 Mb/s
    - OjO con los "eth0"
    Last edited by Sector11; April 19th, 2013 at 06:29 PM.

  8. #21768
    Join Date
    Apr 2013
    Beans
    0

    Re: Post your .conkyrc files w/ screenshots

    Much better with "goto" but not is because I can not like of you, but it is not important, only a few changes and is perfect. Also going slightly improved graphics.

    Code:
    background yes
    update_interval 2
    total_run_times 0
    
    cpu_avg_samples 2
    net_avg_samples 2
    temperature_unit celsius
    
    double_buffer yes
    no_buffers yes
    text_buffer_size 2048
    
    gap_x 0
    gap_y 0
    minimum_size 1024 600
    maximum_width 1024
    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
    alignment tl
    
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders no
    
    override_utf8_locale yes
    use_xft yes
    xftfont zekton:size=10.5
    xftalpha 1
    uppercase no
    
    default_color ffffff    
    color1 dddddd        
    color2 bbbbbb    
    color3 999999
    color4 777777
    color9 6D8F6B
    
    lua_load ~/.conky/conky.lua
    lua_draw_hook_post main
    lua_load ~/.conky/clock_rings.lua
    lua_draw_hook_pre clock_rings
    
    top_name_width 8 
    
    TEXT
    ${font zekton:size=08}
    ${goto 445}${color1}${top name 1}${goto 525}${top cpu 1}${goto 560}${top mem 1}
    ${goto 445}${color2}${top name 2}${goto 525}${top cpu 2}${goto 560}${top mem 2}
    ${goto 445}${color3}${top name 3}${goto 525}${top cpu 3}${goto 560}${top mem 3}
    ${goto 445}${color4}${top name 4}${goto 525}${top cpu 4}${goto 560}${top mem 4}
    ${goto 445}${color4}${top name 5}${goto 525}${top cpu 5}${goto 560}${top mem 5}
    ${goto 445}${color4}${top name 6}${goto 525}${top cpu 6}${goto 560}${top mem 6}
    ${goto 445}${color4}${top name 7}${goto 525}${top cpu 7}${goto 560}${top mem 7}
    ${goto 445}${color4}${top name 8}${goto 525}${top cpu 8}${goto 560}${top mem 8}
    
    #${color1}${voffset 6}${font zekton :size=07}
    #${offset 380}${execi 600  sed -n '3p' $HOME/1d_accuweather_rss/weather}
    #${offset 380}${execpi 600 sed -n '4p' $HOME/1d_accuweather_rss/weather|cut -c1-20}
    #${offset 380}${execpi 600 sed -n '4p' $HOME/1d_accuweather_rss/weather|cut -c21-40}
    #${offset 380}${execpi 600 sed -n '4p' $HOME/1d_accuweather_rss/weather|cut -c41-60}
    #${voffset -48}${offset 540}${alignc}${execi 600  sed -n '6p' $HOME/1d_accuweather_rss/weather}
    #${offset 540}${execpi 600 sed -n '4p' $HOME/1d_accuweather_rss/weather|cut -c1-20}
    #${offset 540}${execpi 600 sed -n '7p' $HOME/1d_accuweather_rss/weather|cut -c21-40}
    #${offset 540}${execpi 600 sed -n '7p' $HOME/1d_accuweather_rss/weather|cut -c41-60}$color$font
    ${voffset 290}${font zekton :size=8}
    ${goto 480}${color7}IP Local:${color9} ${addr wlan0}
    ${goto 480}${color7}IP Publica:${color9}${texeci 3600 wget http://checkip.dyndns.org -O - -o /dev/null | cut -d : -f 2 | cut -d \< -f 1}
    ${goto 480}${color7}Essid:${color9}${wireless_essid wlan0} ${color7}Br: ${color9}${wireless_bitrate wlan0}${color7}
    ${goto 480}${color7}Puerta:${color9}${gw_ip}
    ${goto 480}${color7}Total down:  ${color9}${totaldown wlan0} 
    ${goto 480}${color7}Total up:  ${color9}${totalup wlan0}

  9. #21769
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by tatxen View Post
    Much better with "goto" but not is because I can not like of you, but it is not important, only a few changes and is perfect. Also going slightly improved graphics.
    WoW!!! I noticed that Zekton was a little smaller on my system - more room to "play"
    ... good thinking putting Essid: and Br: in the middle ... longer output.

    I enjoy helping people. And that is one NICE conky!
    Thanks for sharing it.

  10. #21770
    Join Date
    Apr 2013
    Beans
    0

    Re: Post your .conkyrc files w/ screenshots

    Thank you for your support and work.
    Have removed the weather script and I put the output of Audacious.
    Have separated heaven from the rest of the background, now I change it as independent image, I want to find a script weather that change me the sky of the cockpit...

    Last edited by tatxen; April 20th, 2013 at 03:13 AM.

Page 2177 of 2298 FirstFirst ... 1177167720772127216721752176217721782179218722272277 ... 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
  •