Page 2068 of 2325 FirstFirst ... 1068156819682018205820662067206820692070207821182168 ... LastLast
Results 20,671 to 20,680 of 23243

Thread: Post your .conkyrc files w/ screenshots

  1. #20671
    Join Date
    Sep 2011
    Beans
    6

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by dk75 View Post
    Ideally core0 should be an cpu1 readings. In most cases it is.
    But sometimes driver/firmware for sensors is messed up so you never know until you check - like make some cpu stress test that don't uses gpu to determine whatever core0 is really cpu.
    Then again there is no "core0" variable in Conky.
    There is cpu0, and this in most cases is overall cpu readings but in some cases it is core0 readings.

    PS: whatever your fx-8120 is readed properly might depend on board used. ASrock MoBo isn't great for that.
    Actually my board is an Asus M5A99fx pro 2.0.

    I was just checking the only 2 temps I have in bios, one says CPU and the other says Motherboard, once in linux I checked the temperature for temp1 and temp2, temp1 matches de CPU temp in Bios and temp2 matches the motherboard temp in Bios.

    So I guess I will work with those 2 readings and use either cpu0 for the overload load con the cpu.

    So far I have been able to get all the cpu fan RPM and the HDD temps now I will have to wait until my ATI video card arrives so I can try to add the gpu temps.


    Do you now if this information from my sensors output has to do with how much power the cpu is pulling at a given time :

    fam15h_power-pci-00c4
    Adapter: PCI adapter
    power1: 44.88 W (crit = 124.95 W)

    the crit temp is what my cpu should pull on full load without overclocking of course..125 watts

    and thank you for all your help with this !!!!=D>

  2. #20672
    Join Date
    Nov 2008
    Beans
    1

    Re: Post your .conkyrc files w/ screenshots

    Here is a simple conky , thank's to sector11 and mr peachy's....
    Attached Images Attached Images

  3. #20673
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Manuel318 View Post
    Here is a simple conky , thank's to sector11 and mr peachy's....
    Nice. Those 'bars' ar interesting, I have to play with them a bit more.

  4. #20674
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    A while back cecilpierce mentioned he was using Manjaro Linux that come with "conky-control" that originates with Voyager Linux, a French Xubuntu based Linux. Interestingly enough I grabbed the files from a link at ARCH and my first impression was I'd deep six it. But I didn't, I've been playing and tweaking things for my system - 21 different conkys. Some are really interesting. stinkeye helped cecilpierce get one going. I was busy with other things, and the last couple of days life stepped in really heavy, but tonight I got to play with: HUD #6 on the list.

    This is HUD - my way, for OpenBox and on Xfce4


    Pretty cool if I do say so myself.

    Code:
    #  version : v2011011601
    #  license : Distributed under the terms of GNU GPL version 2 or later
    #  Edited for Debian SID - OpenBox and XFCE4 - by Sector11 - 1 October 2012
    #==============================================================================
    
    background yes
    update_interval 1
    
    cpu_avg_samples 2
    net_avg_samples 2
    
    double_buffer yes
    no_buffers yes
    text_buffer_size 256
    gap_x 0
    gap_y 40
    minimum_size 250 0
    maximum_width 250
    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_type desktop
    own_window_hints undecorated,sticky,skip_taskbar,skip_pager,below
    own_window_argb_visual yes
    border_inner_margin 0
    border_outer_margin 0
    alignment bm
    
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders no
    
    override_utf8_locale yes
    use_xft yes
    xftfont Anonymous Pro:size=8
    xftalpha 0.5
    uppercase no
    
    default_color FFFFFF
    color1 00FFBB
    
    lua_load ~/.conky/conky6/conky_HUD.lua
    lua_draw_hook_post main
    
    lua_load ~/Conky/LUA/draw-bg.lua
    lua_draw_hook_pre draw_bg 8 0 0 0 0 0x000000 0.5
    
    TEXT
    
      ${font digitalk:bold:size=12}${color1}${time %H:%M}${goto 200}${time %d:%m}${color}${font}
       HH:MM${goto 205}DD:MM
    
    ${goto 100}${font Anonymous Pro:bold:size=8}DISKS
    ${goto 110}${font Anonymous Pro:bold:size=7}${color1}size /${font}
    ${goto 30}${font Anonymous Pro:bold:size=8}${color}MEM${goto 105}${font Anonymous Pro:size=9}${color1} ${voffset -4}${fs_size /}
    ${goto 105}${font Anonymous Pro:bold:size=7}${color1}size /home${font}
    ${goto 170}${font Anonymous Pro:bold:size=8}${color}CPU${goto 105}${font Anonymous Pro:size=9}${color1} ${voffset -4}${fs_size /home}
    needs three empty lines at the end.

    modified for an AMD Athlon II X3 - yellow is the Average (CPU 0)
    conky_HUD.lua
    Code:
    --==============================================================================
    --                              conky_HUD.lua
    --
    --  author  : SLK
    --  version : v2011062101
    --  license : Distributed under the terms of GNU GPL version 2 or later
    --
    --==============================================================================
    
    require 'cairo'
    
    --------------------------------------------------------------------------------
    --                                                                    gauge DATA
    gauge = {
    {
        name='cpu',                    arg='cpu0',                  max_value=100,
        x=180,                         y=120,
        graph_radius=60,
        graph_thickness=5,
        graph_start_angle=0,
        graph_unit_angle=0.9,          graph_unit_thickness=0.9,
        graph_bg_colour=0xFFFF00,      graph_bg_alpha=0.3,
        graph_fg_colour=0xFFFF00,      graph_fg_alpha=0.0,
        hand_fg_colour=0xFFFF00,       hand_fg_alpha=1.0,
        txt_radius=60,				-- yellow
        txt_weight=1,                  txt_size=10.0,
        txt_fg_colour=0xFFFF00,        txt_fg_alpha=0.8,
        graduation_radius=30,
        graduation_thickness=0,        graduation_mark_thickness=1,
        graduation_unit_angle=27,
        graduation_fg_colour=0xFFFF00, graduation_fg_alpha=0.3,
        caption='',
        caption_weight=1,              caption_size=8.0,
        caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
    },
    {
        name='cpu',                    arg='cpu1',                  max_value=100,
        x=180,                         y=120,
        graph_radius=50,
        graph_thickness=5,
        graph_start_angle=0,
        graph_unit_angle=0.9,          graph_unit_thickness=0.9,
        graph_bg_colour=0x00FFBB,      graph_bg_alpha=0.3,
        graph_fg_colour=0x00FFBB,      graph_fg_alpha=0.0,
        hand_fg_colour=0x00FFBB,       hand_fg_alpha=1.0,
        txt_radius=50,				-- green
        txt_weight=1,                  txt_size=10.0,
        txt_fg_colour=0x00FFBB,        txt_fg_alpha=0.8,
        graduation_radius=55,
        graduation_thickness=5,        graduation_mark_thickness=2,
        graduation_unit_angle=27,
        graduation_fg_colour=0x00FFBB, graduation_fg_alpha=0.3,
        caption='',
        caption_weight=1,              caption_size=8.0,
        caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
    },
    {
        name='cpu',                    arg='cpu2',                  max_value=100,
        x=180,                         y=120,
        graph_radius=40,
        graph_thickness=5,
        graph_start_angle=0,
        graph_unit_angle=0.9,          graph_unit_thickness=0.9,
        graph_bg_colour=0x00FFBB,      graph_bg_alpha=0.3,
        graph_fg_colour=0x00FFBB,      graph_fg_alpha=0.0,
        hand_fg_colour=0x00FFBB,       hand_fg_alpha=1.0,
        txt_radius=40,
        txt_weight=1,                  txt_size=10.0,
        txt_fg_colour=0x00FFBB,        txt_fg_alpha=0.8,
        graduation_radius=30,
        graduation_thickness=0,        graduation_mark_thickness=1,
        graduation_unit_angle=27,
        graduation_fg_colour=0x00FFBB, graduation_fg_alpha=0.3,
        caption='',
        caption_weight=1,              caption_size=8.0,
        caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
    },
    {
        name='cpu',                    arg='cpu3',                  max_value=100,
        x=180,                         y=120,
        graph_radius=30,
        graph_thickness=5,
        graph_start_angle=0,
        graph_unit_angle=0.9,          graph_unit_thickness=0.9,
        graph_bg_colour=0x00FFBB,      graph_bg_alpha=0.3,
        graph_fg_colour=0x00FFBB,      graph_fg_alpha=0.0,
        hand_fg_colour=0x00FFBB,       hand_fg_alpha=1.0,
        txt_radius=30,
        txt_weight=1,                  txt_size=10.0,
        txt_fg_colour=0x00FFBB,        txt_fg_alpha=0.8,
        graduation_radius=35,
        graduation_thickness=5,        graduation_mark_thickness=2,
        graduation_unit_angle=27,
        graduation_fg_colour=0x00FFBB, graduation_fg_alpha=0.3,
        caption='',
        caption_weight=1,              caption_size=8.0,
        caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
    },
    {
        name='memperc',                arg='',                      max_value=100,
        x=40,                          y=85,
        graph_radius=34,
        graph_thickness=5,
        graph_start_angle=180,
        graph_unit_angle=2,            graph_unit_thickness=2,
        graph_bg_colour=0x00FFBB,      graph_bg_alpha=0.3,
        graph_fg_colour=0x00FFBB,      graph_fg_alpha=0.0,
        hand_fg_colour=0x00FFBB,       hand_fg_alpha=1.0,
        txt_radius=20,
        txt_weight=1,                  txt_size=10.0,
        txt_fg_colour=0x00FFBB,        txt_fg_alpha=0.8,
        graduation_radius=24,
        graduation_thickness=6,        graduation_mark_thickness=2,
        graduation_unit_angle=10,
        graduation_fg_colour=0x00FFBB, graduation_fg_alpha=0.3,
        caption='',
        caption_weight=1,              caption_size=10.0,
        caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
    },
    {
        name='fs_used_perc',           arg='/',                     max_value=100,
        x=120,                         y=70,
        graph_radius=40,
        graph_thickness=4,
        graph_start_angle=210,
        graph_unit_angle=2,            graph_unit_thickness=2,
        graph_bg_colour=0x00FFBB,      graph_bg_alpha=0.3,
        graph_fg_colour=0x00FFBB,      graph_fg_alpha=0.0,
        hand_fg_colour=0x00FFBB,       hand_fg_alpha=1.0,
        txt_radius=32,
        txt_weight=1,                  txt_size=10.0,
        txt_fg_colour=0x00FFBB,        txt_fg_alpha=0.8,
        graduation_radius=46,
        graduation_thickness=0,        graduation_mark_thickness=2,
        graduation_unit_angle=20,
        graduation_fg_colour=0x00FFBB, graduation_fg_alpha=0.3,
        caption='',
        caption_weight=1,              caption_size=8.0,
        caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
    },
    {
        name='fs_used_perc',           arg='/home/',                max_value=100,
        x=120,                         y=70,
        graph_radius=50,
        graph_thickness=8,
        graph_start_angle=210,
        graph_unit_angle=2,            graph_unit_thickness=2,
        graph_bg_colour=0x00FFBB,      graph_bg_alpha=0.3,
        graph_fg_colour=0x00FFBB,      graph_fg_alpha=0.0,
        hand_fg_colour=0x00FFBB,       hand_fg_alpha=1.0,
        txt_radius=60,
        txt_weight=1,                  txt_size=10.0,
        txt_fg_colour=0x00FFBB,        txt_fg_alpha=0.8,
        graduation_radius=58,
        graduation_thickness=4,        graduation_mark_thickness=2,
        graduation_unit_angle=20,
        graduation_fg_colour=0x00FFBB, graduation_fg_alpha=0.3,
        caption='',
        caption_weight=1,              caption_size=8.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, "ubuntu", 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, "ubuntu", 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

  5. #20675
    Join Date
    Jan 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by George Lama View Post
    Do you now if this information from my sensors output has to do with how much power the cpu is pulling at a given time :

    fam15h_power-pci-00c4
    Adapter: PCI adapter
    power1: 44.88 W (crit = 124.95 W)

    the crit temp is what my cpu should pull on full load without overclocking of course..125 watts
    Dunno.
    Newer had or saw system reporting power usage.
    Linux Debian Sid (Minted) x86_64/3.12.10, Conky 2.0_pre, Xorg 7.7/1.15.0, KDE 4.11.5, Lenovo T61, Intel X3100, HITACHI HTS722010K9SA00 100GB, WDC_WD5000BEVT 500GB
    Linux user No.: 483055 | My Conky Pitstop corner | One4All project

  6. #20676
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by dk75 View Post
    Dunno.
    Newer had or saw system reporting power usage.
    Have to agree, closest I've seen is Volts.

  7. #20677
    Join Date
    Aug 2011
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by dk75 View Post
    Dunno.
    Newer had or saw system reporting power usage.
    Same here, I have never seen that data from a motherboard.
    I get power usage data from my UPS though.
    Building Conky | iCalendar Conky | Weather Script | Background List
    Intel Core i7-2600K - 3.40GHz | Asus P8Z68-V LE | 8GB RAM - 1866 MHz | Nvidia GeForce GTX 560 Ti

  8. #20678
    Join Date
    Aug 2012
    Location
    Florida
    Beans
    185
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Manuel318 View Post
    Here is a simple conky , thank's to sector11 and mr peachy's....
    Question: Could you show the script for your conky's?

    I'm more interested in the weather conky you have (at least until arclance's conkyWeather is capable of being re-sized fairly easy).

    I spend more time on computer than I do watching the TV.
    I travel by city bus right now so weather info is extremely important down here in Central Florida.

    Thanks

    arclance: Is there a way to just have the weather radar, apart from the rest of of your conkyWeather. Same size as in your conkyWeather?
    Last edited by AndyOpie150; October 2nd, 2012 at 05:47 PM.

  9. #20679
    Join Date
    Apr 2009
    Beans
    7

    Re: Post your .conkyrc files w/ screenshots

    Hello Conky Addicts, I'm not entirely new here(I've been stalking you all for some time now). I am completely lost when it comes to writing a conkyrc from scratch, so I come here to pilfer from all of your hard work. However this new method for weather has me lost. I've done a bit of browsing and can't tell what to do. I've downloaded TBG's files from crunch bang, but can't bring myself to understand what to do with them. So without anymore blabbering here's what I got so far.



    conkyrc
    Code:
    ##################################################
    ##################################################
    ##												##
    ##					Settings					##
    ##												##
    ##################################################
    ##################################################
    background no
    update_interval 1.0
    double_buffer yes
    no_buffers yes
    cpu_avg_samples 3
    net_avg_samples 3
    text_buffer_size 2048
    imlib_cache_size 0
    override_utf8_locale yes
    
    
    # +++++ Window +++++
    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
    
    border_inner_margin 0
    border_outer_margin 0
    
    minimum_size 736 120
    maximum_width 736
    
    alignment top_middle
    gap_x 0
    gap_y 20
    
    
    # +++++ Styles +++++
    draw_shades yes
    draw_outline no
    draw_borders no
    draw_graph_borders yes
    
    
    # +++++ Colors +++++
    default_shade_color 101010
    default_color 8F8F8F
    
    # Blue
    color1 71A1DF
    color2 2C3949
    color3 6F99B4
    lua_load ~/.conky/NightDrive/scripts/rings_blue.lua
    
    # Green
    #color1 AAB364
    #color2 2F312E
    #color3 628747
    #lua_load ~/.conky/NightDrive/scripts/rings_green.lua
    
    # Orange
    #color1 DAB152
    #color2 2E2B22
    #color3 B28435
    #lua_load ~/.conky/NightDrive/scripts/rings_orange.lua
    
    # Red
    #color1 EE6363
    #color2 3B2A2A
    #color3 AE4747
    #lua_load ~/.conky/NightDrive/scripts/rings_red.lua
    
    # Mono
    #color1 8F8F8F
    #color2 303030
    #color3 555555
    #lua_load ~/.conky/NightDrive/scripts/rings_mono.lua
    
    
    # +++++ LUA +++++
    lua_draw_hook_pre ring_stats
    
    
    # +++++ Font +++++
    use_xft yes
    xftfont DejaVu Sans:size=5
    xftalpha 0.1
    uppercase no
    
    
    
    ##################################################
    ##################################################
    ##												##
    ##					Components					##
    ##												##
    ##################################################
    ##################################################
    
    # +++++ Clock +++++
    template1 ${goto 28}${voffset 35}${color2}${font Digital Readout Thick Upright:size=40}88${voffset -9}:${voffset 9}88${goto 28}${color1}${time %l}${voffset -9}:${voffset 9}${time %M}\n${goto 130}${voffset -68}${color2}${font Digital Readout Thick Upright:size=24}00${goto 130}${color1}${time %d}\n${font Digital Readout Thick Upright:size=12}${goto 130}${voffset -18}${color2}00${goto 130}${color1}${time %m}${goto 146}${color2}00${goto 146}${color1}${time %y}${font}\n
    
    
    # +++++ CPU +++++
    template3 ${image ~/.conky/NightDrive/images/icons/cpu.png -p 275,47 -s 24x24 -f 86400}${voffset -62}${goto 274}${font}${color}2.80GHz
    
    
    # +++++ Memory +++++
    template4 ${image ~/.conky/NightDrive/images/icons/mem.png -p 355,48 -s 24x24 -f 86400}${voffset -0}${goto 355}${mem}\n
    
    
    # +++++ Storage +++++
    template7 ${image ~/.conky/NightDrive/images/icons/hdd.png -p 435,48 -s 24x24 -f 86400}${voffset -10}${goto 434}${fs_free}\n
    
    
    TEXT
    ${image ~/.conky/NightDrive/images/bg.png -s 736x120 -f 86400}${image ~/.conky/NightDrive/images/icons/azenis.png -p 510,32 -s 32x32 -f 86400}${image ~/.conky/NightDrive/images/icons/azenis.png -p 190,32 -s 32x32 -f 86400}${template1}${template3}${template4}${template7}
    rings_blue.lua
    Code:
    --[[
    Ring Meters by londonali1010 (2009)
     
    This script draws percentage meters as rings. It is fully customisable; all options are described in the script.
     
    IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement on line 145 uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num > 5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num > 3; conversely if you update Conky every 0.5s, you should use update_num > 10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.
     
    To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
        lua_load ~/scripts/rings-v1.2.1.lua
        lua_draw_hook_pre ring_stats
     
    Changelog:
    + v1.2.1 -- Fixed minor bug that caused script to crash if conky_parse() returns a nil value (20.10.2009)
    + v1.2 -- Added option for the ending angle of the rings (07.10.2009)
    + v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009)
    + v1.0 -- Original release (28.09.2009)
    
        {
            -- Edit this table to customise your rings.
            -- You can create more rings simply by adding more elements to settings_table.
            -- "name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
            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=0x2C3949,
            -- "bg_alpha" is the alpha value of the base ring.
            bg_alpha=0.5,
            -- "fg_colour" is the colour of the indicator part of the ring.
            fg_colour=0x71A1DF,
            -- "fg_alpha" is the alpha value of the indicator part of the ring.
            fg_alpha=0.5,
            -- "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=191, y=145,
            -- "radius" is the radius of the ring.
            radius=32,
            -- "thickness" is the thickness of the ring, centred around the radius.
            thickness=4,
            -- "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 (e.g. more clockwise) than start_angle.
            end_angle=360
        },
    ]]
    settings_table = {    
        {
            name='cpu',
            arg='cpu1',
            max=100,
            bg_colour=0x2C3949,
            bg_alpha=0.5,
            fg_colour=0x71A1DF,
            fg_alpha=0.5,
            x=288, y=61,
            radius=28.5,
            thickness=5,
            start_angle=-90,
            end_angle=270
        },
        {
            name='cpu',
            arg='cpu2',
            max=100,
            bg_colour=0x2C3949,
            bg_alpha=0.5,
            fg_colour=0x71A1DF,
            fg_alpha=0.5,
            x=288, y=61,
            radius=22.5,
            thickness=5,
            start_angle=-90,
            end_angle=270
        },
        {
            name='memperc',
            arg='',
            max=100,
            bg_colour=0x2C3949,
            bg_alpha=0.5,
            fg_colour=0x71A1DF,
            fg_alpha=0.5,
            x=368, y=61,
            radius=28.5,
            thickness=5,
            start_angle=-90,
            end_angle=270
        },
        {
            name='swapperc',
            arg='',
            max=100,
            bg_colour=0x2C3949,
            bg_alpha=0.5,
            fg_colour=0x71A1DF,
            fg_alpha=0.5,
            x=368, y=61,
            radius=22.5,
            thickness=5,
            start_angle=-90,
            end_angle=270
        },
        {
            name='fs_used_perc',
            arg='/',
            max=100,
            bg_colour=0x2C3949,
            bg_alpha=0.5,
            fg_colour=0x71A1DF,
            fg_alpha=0.5,
            x=448, y=61,
            radius=28.5,
            thickness=5,
            start_angle=-90,
            end_angle=270
        },
        
        
    }
     
    require 'cairo'
     
    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 conky_ring_stats()
        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)
            if value == nil then value = 0 end
            pct=value/pt['max']
     
            draw_ring(cr,pct,pt)
        end
     
        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
    end
    The original was much better, but I couldn't get weather to work and don't use mpd, so I've chopped it down a bit and spent a couple hours tweaking the code.

    The original from DeviantArt.


    This is what I want it to look like.
    Last edited by XiaolinDraconis; October 2nd, 2012 at 07:38 PM. Reason: Added more info.

  10. #20680
    Join Date
    Oct 2009
    Location
    Under a rock
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by AndyOpie150 View Post
    Question: Could you show the script for your conky's?

    I'm more interested in the weather conky you have (at least until arclance's conkyWeather is capable of being re-sized fairly easy).
    im almost certain that is v9000 weather

    you can get everything you need here:
    http://crunchbanglinux.org/forums/to...ather-in-conky

    i dont have Manuel318 setup though, so you will have to get that from him
    the v9000 archive comes with some pre-made setups and is easily customizable

Page 2068 of 2325 FirstFirst ... 1068156819682018205820662067206820692070207821182168 ... 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
  •