Page 1553 of 2296 FirstFirst ... 5531053145315031543155115521553155415551563160316532053 ... LastLast
Results 15,521 to 15,530 of 22959

Thread: Post your .conkyrc files w/ screenshots

  1. #15521
    Join Date
    Jun 2010
    Beans
    43
    Distro
    Xubuntu 11.04 Natty Narwhal

    Re: Post your .conkyrc files w/ screenshots

    @42dorian: Oh. Here's a screenshot of it when it is in the right place.

    http://imgur.com/jxPhE.png

    And yes, I'm having it run on startup and I think I have user running it because I did not specify "sudo" in the command.

    I have version 1.8.0 of Conky.

    @stinkeye: Thanks, I'll try that out.

    Just tried it out. Instead of it making it integrated on the desktop, it puts my Conky into a black box.
    Last edited by frustratednerd; December 27th, 2010 at 08:44 AM.

  2. #15522
    Join Date
    Oct 2008
    Beans
    3,509

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by frustratednerd View Post
    @42dorian: Oh. Here's a screenshot of it when it is in the right place.

    http://imgur.com/jxPhE.png

    And yes, I'm having it run on startup and I think I have user running it because I did not specify "sudo" in the command.

    I have version 1.8.0 of Conky.

    @stinkeye: Thanks, I'll try that out.

    Just tried it out. Instead of it making it integrated on the desktop, it puts my Conky into a black box.
    From man conky...
    own_window_argb_visual
    Boolean, use ARGB visual? ARGB can be used for real transparency, note that a composite manager is required for real transparency. This option will not work as desired (in most cases) in conjunction with 'own_window_type override'.

    Comment (#)out the lines
    Code:
    own_window_argb_visual yes
    own_window_argb_value 180
    ie
    Code:
    #own_window_argb_visual yes
    #own_window_argb_value 180
    Last edited by stinkeye; December 27th, 2010 at 09:00 AM.

  3. #15523
    Join Date
    Jun 2010
    Beans
    43
    Distro
    Xubuntu 11.04 Natty Narwhal

    Re: Post your .conkyrc files w/ screenshots

    Thanks, stinkeye. That did the trick.

  4. #15524
    Join Date
    Oct 2008
    Beans
    3,509

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by frustratednerd View Post
    Thanks, stinkeye. That did the trick.
    No problem.
    If you want a semi-transparent background to your conky with rounded corners...

    Save this as draw_bg.lua in a folder called scripts in your home directory.
    Code:
    --[[
    Background by londonali1010 (2009)
    
    This script draws a background to the Conky window. It covers the whole of the Conky window, but you can specify rounded corners, if you wish.
    
    To call this script in Conky, use (assuming you have saved this script to ~/scripts/):
    	lua_load ~/scripts/draw_bg.lua
    	lua_draw_hook_pre draw_bg
    
    Changelog:
    + v1.0 -- Original release (07.10.2009)
    ]]
    
    -- Change these settings to affect your background.
    -- "corner_r" is the radius, in pixels, of the rounded corners. If you don't want rounded corners, use 0.
    
    corner_r=45
    
    -- Set the colour and transparency (alpha) of your background.
    
    bg_colour=0xA1948F
    bg_alpha=0.2
    
    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 conky_draw_bg()
    	if conky_window==nil then return end
    	local w=conky_window.width
    	local h=conky_window.height
    	local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, w, h)
    	cr=cairo_create(cs)
    	
    	cairo_move_to(cr,corner_r,0)
    	cairo_line_to(cr,w-corner_r,0)
    	cairo_curve_to(cr,w,0,w,0,w,corner_r)
    	cairo_line_to(cr,w,h-corner_r)
    	cairo_curve_to(cr,w,h,w,h,w-corner_r,h)
    	cairo_line_to(cr,corner_r,h)
    	cairo_curve_to(cr,0,h,0,h,0,h-corner_r)
    	cairo_line_to(cr,0,corner_r)
    	cairo_curve_to(cr,0,0,0,0,corner_r,0)
    	cairo_close_path(cr)
    	
    	cairo_set_source_rgba(cr,rgb_to_r_g_b(bg_colour,bg_alpha))
    	cairo_fill(cr)
    end

    Make executable in the terminal
    Code:
    chmod +x ~/scripts/draw_bg.lua

    Then add this to your conky config above "TEXT"
    Code:
    lua_load ~/scripts/draw_bg.lua
    lua_draw_hook_pre draw_bg
    You may need to uninstall conky and install the conky-all package which is compiled with lua support.
    Attached Images Attached Images
    Last edited by stinkeye; December 27th, 2010 at 09:53 AM.

  5. #15525
    Join Date
    Dec 2010
    Beans
    0

    Re: Post your .conkyrc files w/ screenshots

    my desktop:
    http://www.kepfeltoltes.hu/101227/de...toltes.hu_.png

    so i have some problem with conky...
    how can i change the vertical color in a bar like battery or cpubar
    example: 1%-19% red 20-50% yellow 51-100% green

    or in the net bar, low traffic white, high net traffic red...

    and the last , the temperatures..
    hdd it's not working, cpu gpu mb temp is same i think...

    that's all...

    rc:
    Use Xft?
    use_xft yes
    font snap-7
    #xftfont snap.se:size=8.0
    #xftfont Freemono:size=7:bold
    #xftfont cure.se:size=8
    xftfont Freesansixelsize=10
    xftalpha 1
    text_buffer_size 2048

    # Update interval in seconds
    update_interval 1

    # This is the number of times Conky will update before quitting.
    # Set to zero to run forever.
    total_run_times 0

    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    own_window_transparent yes
    own_window_type override
    #own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes

    # Minimum size of text area
    minimum_size 190
    maximum_width 250

    # Draw shades?
    draw_shades no

    # Draw outlines?
    draw_outline no

    # Draw borders around text
    draw_borders no

    # Stippled borders?
    stippled_borders 0

    # border margins
    border_margin 5

    # border width
    border_width 1

    # Default colors and also border colors
    default_color e0e0e0
    #default_shade_color white
    #default_outline_color black
    #own_window_colour 000000

    # Text alignment, other possible values are commented
    #alignment top_left
    alignment top_right
    #alignment bottom_left
    #alignment bottom_right

    # Gap between borders of screen and text
    # same thing as passing -x at command line
    gap_x 30
    gap_y 55

    # Subtract file system buffers from used memory?
    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 2

    # number of net samples to average
    # set to 1 to disable averaging
    net_avg_samples 2

    # Force UTF8? note that UTF8 support required XFT
    override_utf8_locale yes

    # Add spaces to keep things from moving about? This only affects certain objects.
    use_spacer none

    TEXT

    DATE ${hr 1.4}
    ${alignc 18}${font Freesansixelsize=23:bold}${time %H:%M}${font}

    ${alignc 13}${font Freesansixelsize=15}${time %a %d %b %Y}${font}

    SYS ${hr 1.4}

    ${alignc}Ubuntu Linux 10.10 Klambi

    Uptime ${alignr}${uptime}
    Kernel ${alignr}${kernel}
    CPU1 ${freq_g cpu0} GHz ${alignr}${cpu cpu0}% ${color white}${cpugraph cpu1 10,60 FF8200 ff0000}
    CPU2 ${freq_g cpu1} GHz ${alignr}${cpu cpu1}% ${color white}${cpugraph cpu1 10,60 FF8200 ff0000}
    RAM ${alignr}$memperc% ${membar 4,60}
    SWAP ${alignr}$swapperc% ${swapbar 4,60}
    ${if_existing /proc/acpi/battery/BAT0/state capacity}Battery: ${execi 60 cat /proc/acpi/battery/BAT0/state | grep capacity: | awk '{print $3 $4}'} ${alignr}${battery_percent BAT0}% ${alignr}${battery_bar 4,60 BAT0} ${else}${voffset -12}${endif}
    Battery ${alignr 60}$color${battery_percent BAT0}% ${color #0077ff}${battery_bar BAT0}
    ${color lightgrey}Adapter: ${color #0077ff}${acpiacadapter} ${color #0077ff}${color lightgrey} Power Remaining: ${color #0077ff}${exec cat /proc/acpi/battery/BAT0/state | grep 'remaining capacity' | cut -c26-33} ${color lightgrey}

    HDD ${hr 1.4}

    Írás $alignr $diskio_write
    ${diskiograph_write 20,200}
    Olvasás $alignr $diskio_read
    ${diskiograph_read 20,200}

    Filesystem ${alignr}${fs_used_perc /}% ${fs_bar 4,60 /}
    Adat ${alignr}${fs_used_perc /media/Adat}% ${fs_bar 4,60 /media/Adat}
    Windows ${alignr}${fs_used_perc /media/Windows}% ${fs_bar 4,60 /media/Windows}

    TEMP ${hr 1.4}

    MB ${alignr}${execi 300 sensors | grep temp1 | cut -c15-16 ;}°C
    HDD ${alignr}${color lightgrey}${execi 5 hddtemp /dev/sda | cut -c 30-40}°C
    CPU ${alignr}${acpitemp}°C
    GPU ${alignr}${hwmon 0 temp 1}°C

    NET ${hr 1.5}
    ${if_existing /proc/net/route wlan0}
    ESSID:${alignr} ${wireless_essid wlan0}
    Signal ${alignr}${wireless_link_qual wlan0}%
    Link Quality:${alignr}${wireless_link_qual_perc wlan0}%
    Up ${upspeed wlan0} kb/s ${alignr}${upspeedgraph wlan0 10,60 }
    Down ${downspeed wlan0} kb/s ${alignr}${downspeedgraph wlan0 10,60 }
    Local Ip ${alignr}${addr wlan0}
    Public Ip ${alignr}${execi 1 ~/.scripts/ip.sh}
    ${else}${if_existing /proc/net/route eth0}
    Up ${upspeed eth0} kb/s ${alignr}${upspeedgraph eth0 4,60 000000 000000}
    Down ${downspeed eth0} kb/s ${alignr}${downspeedgraph eth0 4,60 000000 000000}
    Local Ip ${alignr}${addr eth0}
    Public Ip ${alignr}${execi 1 ~/.scripts/ip.sh}
    ${endif}${else}
    Network Unavailable
    ${endif}
    Last edited by klambi; December 27th, 2010 at 02:05 PM. Reason: more

  6. #15526
    Join Date
    Nov 2009
    Beans
    1

    Re: Post your .conkyrc files w/ screenshots

    My desktop and conky:
    https://dl.dropbox.com/s/qh101pz5en31c8o/a1.png
    https://dl.dropbox.com/s/mujyqx5es2fgprt/myconky.png

    Special thanks to londonali1010 and olgmen.

    conkyrc
    Code:
    # system
    
    background yes
    use_xft yes
    xftfont Sans:size=7
    xftalpha 0.8
    update_interval 1.0
    total_run_times 0
    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_colour black
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
    minimum_size 1280 150
    maximum_width 1280
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders no
    #border_margin 2
    window.border_inner_margin 2
    border_width 1
    default_color white
    default_shade_color black
    default_outline_color black
    alignment bottom_left
    gap_x 10
    gap_y -440
    no_buffers yes
    uppercase no
    cpu_avg_samples 2
    net_avg_samples 2
    override_utf8_locale yes
    use_spacer none
    show_graph_scale no
    show_graph_range no
    text_buffer_size 4096
    #imlib_cache_size 0
    color1 FFFFFF
    color2 666666 #008EE8 világoskék, 0B3D58 sötétkék
    color3 888888
    
    # color2 0B3D58
    ##
    # stuff after 'TEXT' will be formatted on screen
    ##
    
    lua_load /home/robiwolf/.conky/lua/rings.lua /home/robiwolf/.conky/lua/bg.lua
    lua_draw_hook_post ring_stats
    lua_draw_hook_pre draw_content
    
    
    TEXT
    ${offset 95}${voffset 42}${font URW Bookman L :size=20}${time %H}
    ${voffset -42}${goto 135}${font URW Bookman L :size=10}${time %M}
    ${voffset -8}${goto 137}${font URW Bookman L :size=8}${time %S}
    ${voffset -70}${goto 447}${color1}${font PizzaDude Bullets:size=8}U${font} Letöltés: ${color3}${downspeed eth0}
    ${goto 447}${color2}${downspeedgraph eth0 20,120}
    ${goto 447}${color1}${font PizzaDude Bullets:size=8}T${font} Összes: ${color3}${totaldown eth0}${goto 145}
    ${goto 447}${color1}${font PizzaDude Bullets:size=8}O${font} Feltöltés: ${color3}${upspeed eth0}
    ${goto 447}${color2}${upspeedgraph eth0 20,120}
    ${goto 447}${color1}${font PizzaDude Bullets:size=8}N${font} Összes: ${color3}${totalup eth0}
    ${execpi 1800 conkyForecast --location=HUXX0034 --template=/usr/share/conkyforecast/example/conkyForecast.template}
    conky forecast template:
    Code:
    ${voffset -110}${goto 597}${color1}${font ConkyWeather:style=Bold:size=48}[--datatype=WF]${font}
    ${voffset -68}${goto 701}${color1}${font Weather:size=48}x${font}
    ${voffset -60}${goto 717}${font Brave New Era (narrow) G98:size=40} [--datatype=HT]${font}
    ${voffset -46}${goto 797}${color1}${font ConkyWind:size=48}[--datatype=BS]${font}
    ${voffset 8}${goto 597}${voffset 10}${color1}Napkelte: ${color3}[--datatype=SR]
    ${goto 597}${color1}Napnyugta: ${color3}[--datatype=SS]
    ${goto 597}${color1}Páratartalom: ${color3}[--datatype=HM]
    ${voffset -38}${goto 763}${color1}Szél: ${color3}[--datatype=WS]
    ${goto 763}${color1}Harmatpont: ${color3}[--datatype=DP]
    ${goto 763}${color1}Nyomás: ${color3}[--datatype=BR]
    ${goto 887}${voffset -100}${color1}${font ConkyWeather:size=42}[--datatype=WF --startday=1 --endday=4 --spaces=2]${font}
    ${goto 902}${voffset 10}[--datatype=HT --startday=1 --hideunits --centeredwidth=3]/[--datatype=LT --startday=1 --hideunits --centeredwidth=3]${goto 984}[--datatype=HT --startday=2 --hideunits --centeredwidth=3]/[--datatype=LT --startday=2 --hideunits --centeredwidth=3]${goto 1067}[--datatype=HT --startday=3 --hideunits --centeredwidth=3]/[--datatype=LT --startday=3 --hideunits --centeredwidth=3]${goto 1150}[--datatype=HT --startday=4 --hideunits --centeredwidth=3]/[--datatype=LT --startday=4 --hideunits --centeredwidth=3]
    ${voffset 10}${color1}${font Bitstream Vera Sans Mono:size=7}${goto 932}Utolsó frissítés: ${color3}[--datatype=LU]${font}
    bg.lua:
    Code:
    --[[ backgraund.lua от olgmen 16.11.2010
    
    Выводит в окно conky фон с градиентной окраской
    Для запуска скрипта поместите следующие строки в conkyrc выше слова TEXT
    
    Displays the window conky background with gradient color
    To run the script put the following lines to the above words conkyrc 
    
    lua_load /path/to/the/lua/script/backgraund.lua
    lua_draw_hook_pre draw_content
    
    ]]
    require 'cairo'
    
    function conky_draw_content()
    
    
    backgraund_settings={
    
    
    
    {            -- top
    
    x = 60,
    y = 0,
    height = 130,
    width = 367,
    orientation = "ne",
    bg_colour = {{0, 0x000000, 0.6},{0.5, 0x000000, 0.6},{1, 0x000000, 0.6}},
    
    },
    
    {            -- middle
    
    x = 437,
    y = 0,
    height = 130,
    width = 140,
    orientation = "ww",
    bg_colour = {{0, 0x000000, 0.6},{0.5, 0x000000, 0.6},{1, 0x000000, 0.6}},
    
    },
    
    {            -- bottom
    
    x = 587,
    y = 0,
    height = 130,
    width = 280,
    orientation = "nn",
    bg_colour = {{0, 0x000000, 0.6},{0.5, 0x000000, 0.6},{1, 0x000000, 0.6}},
    
    },
    
    {            -- bottom
    
    x = 877,
    y = 0,
    height = 130,
    width = 326,
    orientation = "ss",
    bg_colour = {{0, 0x000000, 0.6},{0.5, 0x000000, 0.6},{1, 0x000000, 0.6}},
    
    },
    
    }
    
        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)
    
    
    
        for i,v in pairs(backgraund_settings) do
            display_background(v)
        end
    
    
    cairo_destroy(cr)
    
    end
    -- ---------------------------------------
    function display_background(t)
    
        if t.x            == nil then t.x = 0 end
        if t.y            == nil then t.y = 0 end
        if t.width        == nil then t.width = conky_window.width end
        if t.height        == nil then t.height = conky_window.height end
        if t.radius        == nil then t.radius = (t.width+t.height)/2*0.04 end
        if t.orientation    == nil then t.orientation = "ww" end
    
        if t.bg_colour == nil then
            t.bg_colour = {{0, 0x000000, 0.3},{1, 0x000000, 0.3}}
        end
    
        local degrees = math.pi / 180.0
    
        cairo_new_sub_path (cr)
    
        cairo_arc (cr, t.x + t.width - t.radius, t.y + t.radius, t.radius, -90 * degrees, 0 * degrees)
        cairo_arc (cr, t.x + t.width - t.radius, t.y + t.height - t.radius, t.radius, 0 * degrees, 90 * degrees)
        cairo_arc (cr, t.x + t.radius, t.y + t.height - t.radius, t.radius, 90 * degrees, 180 * degrees)
        cairo_arc (cr, t.x + t.radius, t.y + t.radius, t.radius, 180 * degrees, 270 * degrees)
    
        cairo_close_path (cr)
    
    -- линейная градация
    
            if #t.bg_colour == 1 then 
            cairo_set_source_rgba(cr,rgb_to_r_g_b2(t.bg_colour[1]))
        else
            local pat
            local pts=linear_orientation_bg(t)
            pat = cairo_pattern_create_linear (pts[1], pts[2], pts[3], pts[4])
    
            for i=1, #t.bg_colour do
                cairo_pattern_add_color_stop_rgba (pat, t.bg_colour[i][1], rgb_to_r_g_b2(t.bg_colour[i]))
            end
    
            cairo_set_source (cr, pat)
            cairo_fill (cr)
            cairo_pattern_destroy(pat)
        end
    end
    
    -- ---------------------------------------
    function rgb_to_r_g_b2(tcolour)
        colour, alpha = tcolour[2], tcolour[3]
        return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
    end
    -- ----------------------------------------
    
    function linear_orientation_bg(t)
    
        if t.orientation    == "nn" then
            p = {t.x + t.width/2, t.y, t.x + t.width/2, t.y + t.height}
        elseif t.orientation    == "ne" then
            p = {t.x + t.width, t.y, t.x, t.y + t.height}
        elseif t.orientation    == "ee" then
            p = {t.x + t.width, t.y + t.height/2, t.x, t.y + t.height/2}
        elseif t.orientation    == "se" then
            p = {t.x +t.width, t.y + t.height, t.x, t.y}
        elseif t.orientation    == "ss" then
            p = {t.x + t.width/2, t.y + t.height, t.x + t.width/2, t.y}
        elseif t.orientation    == "sw" then
            p = {t.x, t.y + t.height, t.x + t.width, t.y}
        elseif t.orientation    == "ww" then
            p = {t.x, t.y + t.height/2, t.x + t.width, t.y + t.height/2}
        else
            p = {t.x, t.y, t.x + t.width, t.y + t.height}
        end
    
        return p
    end
    rings.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)
    ]]
    
    settings_table = {
        {
            name='time',
            arg='%I',
            max=12,
            bg_colour=0xffffff,
            bg_alpha=0.1,
            fg_colour=0xffffff,
            fg_alpha=1.0,
            x=125, y=65,
            radius=43,
            thickness=5,
            start_angle=0,
            end_angle=360
        },
        {
            name='time',
            arg='%M.%S',
            max=60,
            bg_colour=0xffffff,
            bg_alpha=0.1,
            fg_colour=0xffffff,
            fg_alpha=0.8,
            x=125, y=65,
            radius=49,
            thickness=5,
            start_angle=0,
            end_angle=360
        },
        {
            name='time',
            arg='%S',
            max=60,
            bg_colour=0xffffff,
            bg_alpha=0.1,
            fg_colour=0xffffff,
            fg_alpha=0.6,
            x=125, y=65,
            radius=55,
            thickness=5,
            start_angle=0,
            end_angle=360
        },
        {
            name='cpu',
            arg='cpu0',
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.1,
            fg_colour=0xffffff,
            fg_alpha=0.6,
            x=245, y=65,
            radius=44,
            thickness=5,
            start_angle=0,
            end_angle=360
        },
        {
            name='memperc',
            arg='',
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.1,
            fg_colour=0xffffff,
            fg_alpha=0.6,
            x=334, y=36,
            radius=24,
            thickness=5,
            start_angle=0,
            end_angle=360
        },
    {
            name='swapperc',
            arg='',
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.1,
            fg_colour=0xffffff,
            fg_alpha=0.6,
            x=393, y=36,
            radius=24,
            thickness=5,
            start_angle=0,
            end_angle=360
        },
        {
            name='fs_used_perc',
            arg='/',
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.1,
            fg_colour=0xffffff,
            fg_alpha=0.6,
            x=334, y=95,
            radius=24,
            thickness=5,
            start_angle=0,
            end_angle=360
        },
        {
            name='fs_used_perc',
            arg='/home',
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.1,
            fg_colour=0xffffff,
            fg_alpha=0.6,
            x=393, y=95,
            radius=24,
            thickness=5,
            start_angle=0,
            end_angle=360
        },
    }
    
    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

  7. #15527
    Join Date
    Feb 2010
    Location
    SR11 Cockpit
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by klambi View Post
    my desktop:
    http://www.kepfeltoltes.hu/101227/de...toltes.hu_.png

    so i have some problem with conky...
    how can i change the vertical color in a bar like battery or cpubar
    example: 1%-19% red 20-50% yellow 51-100% green

    or in the net bar, low traffic white, high net traffic red...

    and the last , the temperatures..
    hdd it's not working, cpu gpu mb temp is same i think...

    that's all...
    colorize.sh by Crinos512

    Save it as: battery.sh, cpubar.sh whatever and call it up accordingly.

  8. #15528
    Join Date
    Aug 2010
    Location
    Arizona USA
    Beans
    2,835
    Distro
    Ubuntu Development Release

    Re: Post your .conkyrc files w/ screenshots

    Tweaked several lines of code.

    Added frame to Today's Date (Calendar).


    (Click image for full-size view)


    .conkyrc
    Code:
    ##################################
    ## VinDSL | rev. 10-12-27 03:45 ##
    ##################################
    
    ####
    ## Use XFT? Required to Force UTF8 (see below).
    #
    use_xft yes
    xftfont LiberationSans:size=8.85
    xftalpha 0.7
    text_buffer_size 2048
    
    ####
    ## Force UTF8? Requires XFT (see above).
    ## Displays degree symbol, instead of °, etc.
    #
    override_utf8_locale yes
    
    ####
    ## Update interval in seconds.
    #
    update_interval 1.5
    
    ####
    ## This is the number of times Conky will update before quitting.
    ## Set to zero to run forever.
    #
    total_run_times 0
    
    ####
    ## Create own window instead of using desktop (required in nautilus)?
    #
    own_window yes
    own_window_type override
    own_window_transparent yes
    
    ####
    ## Use double buffering? Reduces flicker.
    #
    double_buffer yes
    
    ####
    ## Draw shades?
    #
    draw_shades no
    
    ####
    ## Draw outlines?
    #
    draw_outline no
    
    ####
    ## 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_right
    
    ####
    ## Minimum size of text area.
    #
    minimum_size 235 0
    
    ####
    ## Gap between text and screen borders.
    #
    gap_x 10
    gap_y 40
    
    ####
    ## 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
    
    ####
    ## Limit the length of names in "Top Processes".
    #
    top_name_width 10
    
    ####
    ## 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 2
    
    ####
    ## 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 right
    
    ####
    ## My colors (suit yourself).
    #
    color0 White
    color1 Ivory
    color2 Ivory2
    color3 Ivory3
    color4 Tan1
    color5 Tan2
    color6 Gray
    color7 AntiqueWhite4
    color8 DarkSlateGray
    color9 Black
    
    ####
    ## Load Lua for shading (optional).
    ## Set the path to your script here.
    #
    lua_load ~/.conky/draw_bg.lua
    lua_draw_hook_pre draw_bg
    
    ####
    ## Installed fonts (required).
    #
    # ConkyWeather (Stanko Metodiev)
    # ConkyWindNESW (Stanko Metodiev)
    # Cut Outs for 3D FX (Fonts & Things)
    # Liberation Mono (Ascender Corp)
    # Liberation Sans (Ascender Corp)
    # Moon Phases (Curtis Clark)
    # OpenLogos (Icoma)
    # PizzaDude Bullets (Jakob Fischer)
    # Radio Space (Iconian Fonts)
    # StyleBats (Vinterstille)
    # Ubuntu (Canonical Ltd)
    # Ubuntu Title Bold (Paulo Silva)
    # Weather (Jonathan Macagba)
    # WenQuanYi Micro Hei (Google Corp)
    
    TEXT
    ##################
    ##     LOGO     ##
    ##################
    ${voffset -33}${font OpenLogos:size=103}${color2}v${font}${voffset -76}${goto 178}${font UbuntuTitleBold:size=20}${color4}10.10${font}
    ##################
    ##    SYSTEM    ##
    ##################
    ${voffset 20}${font WenQuanYiMicroHei:bold:size=8.75}${color4}SYSTEM${offset 8}${color8}${voffset -2}${hr 2}${font}
    ${voffset 4}${font OpenLogos:size=10}${color2}u${voffset -4}${font}${color6}${offset 5}${sysname}${offset 5}${kernel}${alignr}${machine}
    ${voffset 2}${font StyleBats:size=10}${color2}A${voffset -1}${font}${color6}${offset 5}Intel${offset 3}P4${offset 3}Extreme${offset 3}Edition${alignr}${freq_g cpu0}${offset 1}GHz
    ${voffset 2}${font StyleBats:size=10}${color2}q${voffset -1}${font}${color6}${offset 5}Uptime${alignr}${uptime}
    ${voffset 2}${font StyleBats:size=10}${color2}o${voffset -1}${font}${color6}${offset 5}File${offset 3}System${alignr}${fs_type}
    ##################
    ##  PROCESSORS  ##
    ##################
    ${voffset 6}${font WenQuanYiMicroHei:bold:size=8.75}${color4}PROCESSORS${offset 8}${color8}${voffset -2}${hr 2}${font}
    ${voffset 4}${font StyleBats:size=10}${color2}k${voffset -2}${font}${color6}${offset 2}CPU1${offset 5}${cpu cpu1}%${color7}${alignr 2}${cpubar 4,153 cpu1}
    ${voffset 2}${font StyleBats:size=10}${color2}k${voffset -2}${font}${color6}${offset 2}CPU2${offset 5}${cpu cpu2}%${color7}${alignr 2}${cpubar 4,153 cpu2}
    ##################
    ##    MEMORY    ##
    ##################
    ${voffset 6}${font WenQuanYiMicroHei:bold:size=8.75}${color4}MEMORY${offset 8}${color8}${voffset -2}${hr 2}${font}
    ${voffset 4}${font StyleBats:size=10}${color2}l${voffset -2}${font}${color6}${offset 3}RAM${goto 97}${mem}${goto 133}/${offset 5}${memmax}${alignr}${memperc}%
    ${color7}${alignr 2}${membar 4,230}
    ##################
    ##     HDD      ##
    ##################
    ${voffset 2}${font WenQuanYiMicroHei:bold:size=8.75}${color4}HDD${offset 8}${color8}${voffset -2}${hr 2}${font}
    ${voffset 4}${font StyleBats:size=10}${color2}x${voffset -2}${font}${color6}${offset 4}ROOT${goto 95}${fs_used /}${goto 133}/${offset 5}${fs_size /}${alignr}${fs_free_perc /}%
    ${color7}${alignr 2}${fs_bar 4,230 /}
    ${voffset 1}${font StyleBats:size=10}${color2}x${voffset -2}${font}${color6}${offset 4}HOME${goto 95}${fs_used /home}${goto 133}/${offset 5}${fs_size /home}${alignr}${fs_free_perc /home}%
    ${color7}${alignr 2}${fs_bar 4,230 /home}
    ${voffset 1}${font StyleBats:size=10}${color2}4${voffset -2}${font}${color6}${offset 4}SWAP${goto 95}${swap}${goto 133}/${offset 5}${swapmax}${alignr}${swapperc}%
    ${color7}${alignr 2}${swapbar 4,230}
    ##################
    # TOP PROCESSES ##
    ##################
    ${voffset 3}${font WenQuanYiMicroHei:bold:size=8.75}${color4}TOP PROCESSES${offset 8}${color8}${voffset -2}${hr 2}${font}
    ${voffset 4}${font StyleBats:size=10}${color1}h${voffset -3}${font}${color6}${offset 5}${top_mem name 1}${goto 115}${top_mem mem_res 1}${alignr}${top_mem mem 1}%
    ${voffset 2}${font StyleBats:size=10}${color1}h${voffset -3}${font}${color6}${offset 5}${top_mem name 2}${goto 115}${top_mem mem_res 2}${alignr}${top_mem mem 2}%
    ${voffset 2}${font StyleBats:size=10}${color1}h${voffset -3}${font}${color6}${offset 5}${top_mem name 3}${goto 115}${top_mem mem_res 3}${alignr}${top_mem mem 3}%
    ${voffset 2}${font StyleBats:size=10}${color1}h${voffset -3}${font}${color6}${offset 5}${top_mem name 4}${goto 115}${top_mem mem_res 4}${alignr}${top_mem mem 4}%
    ${voffset 2}${font StyleBats:size=10}${color1}h${voffset -3}${font}${color6}${offset 5}${top_mem name 5}${goto 115}${top_mem mem_res 5}${alignr}${top_mem mem 5}%
    ##################
    ##   NETWORK    ##
    ##################
    ${voffset 6}${font WenQuanYiMicroHei:bold:size=8.75}${color4}NETWORK${offset 8}${color8}${voffset -2}${hr 2}${font}
    ${voffset 4}${font PizzaDudeBullets:size=10}${color2}a${font}${color6}${offset 5}Private${offset 3}IP${alignr}${addr eth0}
    ${font PizzaDudeBullets:size=10}${color2}a${font}${color6}${offset 5}Public${offset 7}IP${alignr}${execi 1800 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'}
    ${voffset 4}${font PizzaDudeBullets:size=10}${color2}T${font}${color6}${offset 5}Down${alignr}${downspeed eth0}
    ${font PizzaDudeBullets:size=10}${color2}N${font}${color6}${offset 5}Up${alignr}${upspeed eth0}
    ${voffset 4}${font PizzaDudeBullets:size=10}${color2}T${font}${color6}${offset 5}Downloaded${alignr}${totaldown eth0}
    ${font PizzaDudeBullets:size=10}${color2}N${font}${color6}${offset 5}Uploaded${alignr}${totalup eth0}
    ##################
    ##   WEATHER    ##
    ##################
    ${voffset 6}${font WenQuanYiMicroHei:bold:size=8.75}${color4}WEATHER${offset 8}${color8}${voffset -2}${hr 2}${font}
    ${voffset 0}${goto 59}${font Weather:size=38}${color1}y${font}${voffset -33}${offset 14}${font RadioSpace:size=32}${color3}${execpi 1800 conkyForecast --imperial --location=USAZ0082}${font}
    ${voffset 0}${font Ubuntu:size=24}${color4}${alignc}${execi 1800 conkyForecast --location=USAZ0082 --datatype=CT}${font}
    ${voffset 15}${goto 20}${font ConkyWindNESW:style=Bold:size=38}${color2}${execi 1800 conkyForecast --location=USAZ0082 --datatype=BS}${font}${voffset -45}${goto 95}${font ConkyWeather:style=Bold:size=45}${color2}${execi 1800 conkyForecast --location=USAZ0082 --datatype=WF}${font}${voffset -30}${goto 185}${font MoonPhases:size=30}${color2}${execi 1800 conkyForecast --location=USAZ0082 --datatype=MF}${font}
    ${voffset 2}${goto 28}${font}${color2}${execpi 1800 conkyForecast --location=USAZ0082 --imperial --datatype=WS | sed -e 's/calm'/'\$\{offset 2}Calm/g' -e 's/mph'/'\$\{offset 2}mph/g'}${goto 89}Feels like ${execi 1800 conkyForecast --location=USAZ0082 --imperial --datatype=LT --centeredwidth=4 -iu}${execpi 1800 conkyForecast --location=USAZ0082 --datatype=MP | sed -e 's/First.*'/'\$\{goto 185}First Qtr/g' -e 's/Last.*'/'\$\{goto 185}Last Qtr/g' -e 's/New.*'/'\$\{goto 190}New/g' -e 's/Full.*'/'\$\{goto 194}Full/g' -e 's/Waning.*'/'\$\{goto 185}Waning/g' -e 's/Waxing.*'/'\$\{goto 185}Waxing/g'}${font}
    ${voffset 10}${goto 35}${font}${color2}${execi 1800 conkyForecast --location=USAZ0082 --datatype=DW --startday=1 --shortweekday}${goto 89}${execi 1800 conkyForecast --location=USAZ0082 --datatype=DW --startday=2 --shortweekday}${goto 142}${execi 1800 conkyForecast --location=USAZ0082 --datatype=DW --startday=3 --shortweekday}${goto 196}${execi 1800 conkyForecast --location=USAZ0082 --datatype=DW --startday=4 --shortweekday}${font}
    ${voffset 0}${goto 25}${font ConkyWeather:size=32}${color2}${execi 1800 conkyForecast --location=USAZ0082 --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
    ${voffset 0}${goto 25}${font}${color2}${execi 1800 conkyForecast --location=USAZ0082 --imperial --datatype=HT --startday=1 --hideunits --centeredwidth=4 -iu}/${offset 4}${execi 1800 conkyForecast --location=USAZ0082 --imperial --datatype=LT --startday=1 --hideunits --centeredwidth=4 -iu}${goto 79}${execi 1800 conkyForecast --location=USAZ0082 --imperial --datatype=HT --startday=2 --hideunits --centeredwidth=4 -iu}/${offset 4}${execi 1800 conkyForecast --location=USAZ0082 --imperial --datatype=LT --startday=2 --hideunits --centeredwidth=4 -iu}${goto 133}${execi 1800 conkyForecast --location=USAZ0082 --imperial --datatype=HT --startday=3 --hideunits --centeredwidth=4 -iu}/${offset 4}${execi 1800 conkyForecast --location=USAZ0082 --imperial --datatype=LT --startday=3 --hideunits --centeredwidth=4 -iu}${goto 187}${execi 1800 conkyForecast --location=USAZ0082 --imperial --datatype=HT --startday=4 --hideunits --centeredwidth=4 -iu}/${offset 4}${execi 1800 conkyForecast --location=USAZ0082 --imperial --datatype=LT --startday=4 --hideunits --centeredwidth=4 -iu}${font}
    ##################
    ##     TIME     ##
    ##################
    ${voffset 6}${font WenQuanYiMicroHei:bold:size=8.75}${color4}TIME${offset 8}${color8}${voffset -2}${hr 2}${font}
    ${if_match ${time %l}<=9}${voffset -4}${font RadioSpace:size=32}${color3}${alignc 10}${time %l:%M%p}${font}${else}${if_match ${time %l}>=10}${voffset -4}${font RadioSpace:size=32}${color3}${alignc 2}${time %l:%M%p}${font}${endif}${endif}
    ${voffset 0}${font LiberationSans:size=8}${color4}${alignc 5}Sunrise${offset 1}${execi 1800 conkyForecast --location=USAZ0082 --datatype=SR --startday=1}${color3}${offset 2}|${offset 2}${color4}Sunset${offset 1}${execi 1800 conkyForecast --location=USAZ0082 --datatype=SS --startday=1}${font}
    ##################
    ##   CALENDAR   ##
    ##################
    ${voffset 6}${font WenQuanYiMicroHei:bold:size=8.75}${color4}DATE${offset 8}${color8}${voffset -2}${hr 2}${font}
    ${voffset 18}${font LiberationMono:size=8}${color3}${alignc 59}${time %A}${font}
    ${voffset -3}${font LiberationMono:size=22}${color4}${alignc 58}${time %d}${font}
    ${voffset -1}${font LiberationMono:size=8}${color3}${alignc 58}${time %B}${font}
    ${voffset -4}${font LiberationMono:size=8}${color3}${alignc 58}${time %Y}${font}
    ${voffset -76}${font CutOutsFor3DFX:size=62}${color8}${alignc 94}2${font}
    ${voffset -69}${font LiberationMono:size=8}${color3}${execpi 1800 VinDSL_Cal3= cal | sed '1d' | sed s/^/"\$\{offset 100"\}/ | sed '/^ *$/d' | sed 's/\<'"$(date +%-d)"'\>/${color4}&${color3}/'}${font}

    draw_bg.lua
    Code:
    --[[
    Background by londonali1010 (2009)
    VinDSL Background Hack (2010)
    
    This script draws a background to the Conky window. It covers the whole of the Conky window, but you can specify rounded corners, if you wish.
    
    To call this script in Conky, use (assuming you have saved this script to ~/scripts/):
    	lua_load ~/scripts/draw_bg.lua
    	lua_draw_hook_pre draw_bg
    
    Changelog:
    + v2.2 -- VinDSL Hack (12.24.2010)
    + v2.1 -- VinDSL Hack (12.21.2010)
    + v1.0 -- Original release (07.10.2009)
    --]]
    
    -- Change these settings to affect your background:
    
    -- "corner_r" is the radius, in pixels, of the rounded corners. If you don't want rounded corners, use 0.
    
    corner_r = 40
    
    -- Set the colour and transparency (alpha) of your background.
    
    bg_colour = 0x4d4d4d
    bg_alpha = 0.40
    
    -- Tweaks the height of your background, in pixels. If you don't need to adjust the height, use 0.
    
    vindsl_hack = -222
    
    require 'cairo'
    cs, cr = nil
    function rgb_to_r_g_b(colour,alpha)
    	return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
    end
    
    function conky_draw_bg()
    	if conky_window==nil then return end
    	if cr==nil then cairo_destroy(cr) end
    	local w=conky_window.width
    	local h=conky_window.height
    	local v=vindsl_hack
    	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)
    	
    	cairo_move_to(cr,corner_r,0)
    	cairo_line_to(cr,w-corner_r,0)
    	cairo_curve_to(cr,w,0,w,0,w,corner_r)
    	cairo_line_to(cr,w,h+v-corner_r)
    	cairo_curve_to(cr,w,h+v,w,h+v,w-corner_r,h+v)
    	cairo_line_to(cr,corner_r,h+v)
    	cairo_curve_to(cr,0,h+v,0,h+v,0,h+v-corner_r)
    	cairo_line_to(cr,0,corner_r)
    	cairo_curve_to(cr,0,0,0,0,corner_r,0)
    	cairo_close_path(cr)
    
    	cairo_set_source_rgba(cr,rgb_to_r_g_b(bg_colour,bg_alpha))
    	cairo_fill(cr)
    end

    conky-start-delayed.sh
    Code:
    #!/bin/bash
    sleep 30 && DISPLAY=:0.0 conky;
    Intel ® P4 Extreme Edition 3.4 (Gallatin) || DFI ® LanParty PRO875B rev B1
    Crucial ® Ballistix Tracer PC4000 1GB || Mountain Mods U2-UFO Opti-1203
    XFX 7600GT 560M AGP (PV-T73A-UDF3) || Corsair HX520W Modular PSU

  9. #15529
    Join Date
    Oct 2009
    Location
    Under a rock
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    vnstat monthly usage ring

    I installed vnstat and tried the script I had written to generate a ring from it.
    The script needed some changes but I think this should do it!

    Code:
    require 'cairo'
    function string:split(delimiter)
    local result = { }
    local from  = 1
    local delim_from, delim_to = string.find( self, delimiter, from  )
    while delim_from do
    table.insert( result, string.sub( self, from , delim_from-1 ) )
    from  = delim_to + 1
    delim_from, delim_to = string.find( self, delimiter, from  )
    end
    table.insert( result, string.sub( self, from  ) )
    return result
    end
    
    function draw_ring(co, across, down, rad, inlw, rstart, rend, bgr, bgg, bgb, bga, inr, ing, inb, ina)
    local angle_0=rstart*(2*math.pi/360)-math.pi/2
    local angle_f=rend*(2*math.pi/360)-math.pi/2
    local t_arc=(co/100)*(angle_f-angle_0)
    -- Draw background ring
    cairo_arc(cr,across,down,rad,angle_0,angle_f)
    cairo_set_source_rgba(cr,bgr,bgg,bgb,bga)
    cairo_set_line_width(cr,inlw)
    cairo_stroke(cr)
    -- Draw indicator ring
    cairo_arc(cr,across,down,rad,angle_0,angle_0+t_arc)
    cairo_set_source_rgba(cr,inr,ing,inb,ina)
    cairo_stroke(cr)
    end
    
    function conky_draw_vnring()
    if conky_window == nil then return end
    local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
    cr = cairo_create(cs)
    local updates=tonumber(conky_parse('${updates}'))
    
    if updates> 5 then
    --RING 1 SETUP-----------------------------------------------------------------------------
    --conky object to be displayed-----
    wtimer=(updates % 30)+1
    if updates==6 or wtimer==1 then
    co=(conky_parse("${exec vnstat -m | grep -n 'GiB' | sed -n 1p | awk -F'|' '{print $3}'}"))
    co=string.gsub(co," ","")
    num=(string.gsub(co,"%a",""))
    units=(string.gsub(co,"[%p%d]",""))
    end
    print (units)
    --max number--------------------------
    if units=="GiB" then max=25 end
    if units =="MiB" then max=25600 end
    if units =="KiB" then max=26214400 end
    if max==nil then max=0 end
    --position-----------------------------
    across=100
    down=100
    --radius of ring-----------------------
    rad=25
    --ring width---------------------------
    inlw=15
    --start and end angles---------------
    rstart=-135
    rend=135
    --color and alpha for indicator----
    inr,ing,inb,ina=1,1,1,1
    --background ring color and alpha-----
    bgr,bgg,bgb,bga=0.5,0.5,0.5,1
    --calculation, do not edit below---------
    co=(num/max)*100
    draw_ring(co, across, down, rad, inlw, rstart, rend, bgr, bgg, bgb, bga, inr, ing, inb, ina)
    --END RING 1 SETUP---------------copy setup section and paste for additional rings----------
    end
    end
    the above code updates every 30 seconds, so the vnstat command doesn't run every conky update


  10. #15530
    Join Date
    Apr 2007
    Beans
    195

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Sector11 View Post
    colorize.sh by Crinos512

    Save it as: battery.sh, cpubar.sh whatever and call it up accordingly.
    It doesn't have to be even that complex. An If statement does the work really easy, and can be done in-line. if_match (%Thing You're Measuring) <=20 bar with colour 1 else if_match (%Thing you're measuring) >=21 and (%thing you're measuring) <=50 bar with colour 2 else if_match (%thing you're measuring) >=51 and (%thing you're measuring) <=80 bar with colour 3 else bar with colour 4 endif endif endif endif. Nest it as deep as you want colours. The last one will always be an else, and never forget enough endifs for the number of ifs and elses you've got.

Page 1553 of 2296 FirstFirst ... 5531053145315031543155115521553155415551563160316532053 ... 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
  •