Page 1039 of 2325 FirstFirst ... 3953993998910291037103810391040104110491089113915392039 ... LastLast
Results 10,381 to 10,390 of 23243

Thread: Post your .conkyrc files w/ screenshots

  1. #10381
    Join Date
    May 2008
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by searchOne View Post
    Hi, here my new screen!

    Of course, now you need to show us the conkyrc and script files!

  2. #10382
    Join Date
    Aug 2009
    Beans
    0

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by searchOne View Post
    Hi, here my new screen!

    Good god, that's a little too much going on for me but as long as it works for you that's all that matters.

  3. #10383
    Join Date
    Jul 2009
    Location
    Germany > Hessen > DA
    Beans
    26

    Re: Post your .conkyrc files w/ screenshots

    Hi,
    Thanks to everyone for the kind words!

    Here is the script files:

    the conkyrc:
    Code:
    background no
    use_xft yes
    xftfont terminus:size=8
    xftalpha 0.2
    update_interval 1
    total_run_times 0
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    own_window_class conky
    double_buffer yes
    no_buffers yes
    cpu_avg_samples 2
    net_avg_samples 2
    use_spacer none
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders no
    border_inner_margin 0
    border_outer_margin 0
    
    #Ändern der Standardfarbe bei dunklen Hintergründen
    default_color white
    #Ändern der Standardfarbe bei hellen Hintergründen
    #default_color black
    
    # Alignment
    #alignment top_left
    #alignment top_right
    #alignment bottom_left
    #alignment bottom_right 
    alignment tl
    uppercase no
    text_buffer_size 2048
    imlib_cache_size 0
    
    minimum_size 1330 10
    #gap_x 20
    #Einstellung wenn conky oben
    gap_y 10
    #Einstellung wenn conky unten
    gap_y 380
    
    # — Lua Load — #
    lua_load /home/search/conky/lua/widgets/conky_widgets.lua
    lua_draw_hook_pre widgets
    
    TEXT
    ${voffset 60}${goto 480}${diskiograph 50,300 FFFF00 FF0000 -t}${voffset -2}
    ${voffset -10}${goto 179}${color 1E90FF}${cpubar cpu5 2,1009}${color}
    ${voffset -80}${goto 240}${font BarcodeFont:size=42}!CrunchBang 9.04.01${voffset -50}
    ${voffset 25}${goto 240}${font Zekton:size=10}Conky ${conky_version}   ${goto 480}Kernel: ${kernel} 
    ${goto 240}${exec whoami} @ $nodename $machine   ${goto 480}Uptime: ${uptime}
    ${goto 240}CPU Power: ${freq} MHz${goto 480}CPU-0 Temp: ${execi 10 sensors | sed -n '3p' | sed 's/temp1:[ ]*//' | cut -d" " -f1}${goto 680}CPU-1 Temp: ${execi 10 sensors | sed -n '4p' | sed 's/temp2:[ ]*//' | cut -d" " -f1}
    ${goto 240}HDD Temp: ${hddtemp /dev/sda}${offset -2} °C ${goto 480}Grafik Temp: ${nvidia temp}${offset -2} °C
    
    ${goto 240}${font Zekton:Bold:size=10}Name top${goto 370}time${goto 450}cpu${goto 500}mem${goto 600}${font Zekton:Bold:size=10}Name top-io${goto 730}time${goto 820}mem${font Zekton:size=8}
    ${color red}${goto 240}${top name 1}   ${goto 370}${top time 1}${goto 450}${top cpu 1}${goto 500}${top mem 1}${goto 600}${top_io 1}${top_io name 1}${goto 730}${top_io time 1}${goto 820}${top_io mem 1} ${color}${goto 940}${execi 99999 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2-}
    ${goto 240}${color FFFF00}${top name 2}   ${goto 370}${top time 2}${goto 450}${top cpu 2}${goto 500}${top mem 2}${color} ${top_io 2} ${goto 600}${top_io name 2}${goto 730}${top_io time 2}${goto 820}${top_io mem 2} ${goto 940}${execpi 3600 Card=`lspci | grep VGA | tail -c+36 | head -n1 | cut -d"(" -f1`; echo "$Card"}
    ${goto 60}${if_existing /proc/net/route wlan0}WLAN: ${color 00E5EE}${addrs wlan0}  ${wireless_link_qual_perc wlan0}%${color}${else}${if_existing /proc/net/route eth0}LAN: ${color 00E5EE}${addrs eth0}${color}${else}${color FFFF00}Kein Internet!${color}${endif}${endif}${goto 240}${color 00CD00}${top name 3}${goto 370}${top time 3}${goto 450}${top cpu 3}${goto 500}${top mem 3}${color} ${top_io 3} ${goto 600}${top_io name 3}${goto 730}${top_io time 3}${goto 820}${top_io mem 3} ${goto 940}Takt: ${execpi 3600 Clock=`nvidia-settings -q GPU2DClockFreqs -t`; echo "$Clock"}MhZ   Treiber: ${execpi 3600 Driver="NVidia "`nvidia-settings -q NvidiaDriverVersion -t`; echo "$Driver"}    Bild: ${execpi 3600 Resolution=`nvidia-settings -q FrontEndResolution -t`; echo "$Resolution"}
    ${font}
    ${voffset -240}
    ${goto 90}${color 1E90FF}RAM: ${memperc}%
    ${goto 90}${color FF0000}CPU-0: ${cpu cpu0}%
    ${goto 90}${color FF7F00}CPU-1: ${cpu cpu1}%
    ${goto 90}${color FFFF00}BAT: ${battery_percent BAT0}%
    ${goto 90}${color 00FF00}Disk: ${fs_used_perc /}%${color}
    ${voffset -55}${goto 1210}${color green}${font Zekton:size=10}${time %H:%M:%S}
    ${goto 1204}${font Zekton:size=10}${time %_d %b %y}${color}
    ${voffset -60}${goto 930}${loadgraph 1 30,200 1E90FF FFFF00}${voffset -10}
    ${font LiberationMono:Bold:size=10}
    ${voffset 90}
    ${if_existing /proc/net/route wlan0}${voffset -165}${goto 810}${font DTPDingbats:size=18}${color green}Ã${font Zekton:size=12}${downspeed wlan0}${color}
    
    ${voffset -15}${goto 810}${font DTPDingbats:size=18}${color red}Â${font Zekton:size=12}${upspeed wlan0}${color}${else}
    ${if_existing /proc/net/route eth0}${voffset -185}${goto 810}${font DTPDingbats:size=18}${color green}Ã${font Zekton:size=12}${downspeed eth0}${color}
    
    ${voffset -15}${goto 810}${font DTPDingbats:size=18}${color red}Â${font Zekton:size=12}${upspeed eth0}${color}${voffset 25}${else}${voffset 100}${endif}${endif}
    ${image /home/search/conky/open-box-tra.png -p 480,30 -n -s 80x80}
    ${image /home/search/conky/crunchbang_logo.png -p 15,5 -n -s 250x250}
    ${voffset 100}${font LiberationMono:Bold:size=10}${execpi 60 /home/search/conky/conky_calhoriz.sh}${font}${color FFFF00}${font Zekton:Bold:size=10}${goto 1180}${desktop_name}${color}${font}
    ${voffset -340}
    the conky_widgets.lua:
    Code:
    --[[
    Conky Widgets by londonali1010 (2009)
    
    This script is meant to be a "shell" to hold a suite of widgets for use in Conky.
    
    To configure:
    + Copy the widget's code block (will be framed by --(( WIDGET NAME )) and --(( END WIDGET NAME )), with "[" instead of "(") somewhere between "require 'cairo'" and "function conky_widgets()", ensuring not to paste into another widget's code block
    + To call the widget, add the following just before the last "end" of the entire script:
        cr = cairo_create(cs)
        NAME_OF_FUNCTION(cr, OPTIONS)
        cairo_destroy(cr)
    + Replace OPTIONS with the options for your widget (should be specified in the widget's code block) 
    
    Call this script in Conky using the following before TEXT (assuming you save this script to ~/scripts/conky_widgets.lua):
        lua_load ~/scripts/conky_widgets.lua
        lua_draw_hook_pre widgets
        
    Changelog:
    + v1.0 -- Original release (17.10.2009)
    ]]
    
    require 'cairo'
    
    --[[ AIR CLOCK WIDGET ]]
    --[[ Options (xc, yc, size):
        "xc" and "yc" are the x and y coordinates of the centre of the clock, in pixels, relative to the top left of the Conky window
        "size" is the total size of the widget, in pixels ]]
    
    function air_clock(cr, xc, yc, size)
        local offset = 0
        
        shadow_width = size * 0.03
        shadow_xoffset = 0
        shadow_yoffset = size * 0.01
        
        if shadow_xoffset >= shadow_yoffset then
            offset = shadow_xoffset
        else offset = shadow_yoffset
        end
        
        local clock_r = (size - 2 * offset) / (2 * 1.25)
            
        show_seconds=true
        
        -- Grab time
        
        local hours=os.date("%I")
        local mins=os.date("%M")
        local secs=os.date("%S")
        
        secs_arc=(2*math.pi/60)*secs
        mins_arc=(2*math.pi/60)*mins
        hours_arc=(2*math.pi/12)*hours+mins_arc/12
        
        -- Drop shadow
        
        local ds_pat=cairo_pattern_create_radial(xc+shadow_xoffset,yc+shadow_yoffset,clock_r*1.25,xc+shadow_xoffset,yc+shadow_yoffset,clock_r*1.25+shadow_width)
        cairo_pattern_add_color_stop_rgba(ds_pat,0,0,0,0,0)  -- ,0,0,0,0.2
        cairo_pattern_add_color_stop_rgba(ds_pat,0,0,0,0,0) -- ,1,0,0,0,0
        
        cairo_move_to(cr,0,0)
        cairo_line_to(cr,conky_window.width,0)
        cairo_line_to(cr,conky_window.width, conky_window.height)
        cairo_line_to(cr,0,conky_window.height)
        cairo_close_path(cr)
        cairo_new_sub_path(cr)
        cairo_arc(cr,xc,yc,clock_r*1.25,0,2*math.pi)
        cairo_set_source(cr,ds_pat)
        cairo_set_fill_rule(cr,CAIRO_FILL_RULE_EVEN_ODD)
        cairo_fill(cr)
        
        -- Glassy border
        
        cairo_arc(cr,xc,yc,clock_r*1.25,0,2*math.pi)
        cairo_set_source_rgba(cr,0,0,0,0) -- ,0.5,0.5,0.5,0.2
        cairo_set_line_width(cr,1)
        cairo_stroke(cr)
        
        local border_pat=cairo_pattern_create_linear(xc,yc-clock_r*1.25,xc,yc+clock_r*1.25)
        
        cairo_pattern_add_color_stop_rgba(border_pat,0,0,0,0,0) -- ,0,1,1,1,0.7
        cairo_pattern_add_color_stop_rgba(border_pat,0,0,0,0,0) -- ,0.3,1,1,1,0
        cairo_pattern_add_color_stop_rgba(border_pat,0,0,0,0,0) -- ,0.5,1,1,1,0
        cairo_pattern_add_color_stop_rgba(border_pat,0,0,0,0,0) -- ,0.7,1,1,1,0
        cairo_pattern_add_color_stop_rgba(border_pat,0,0,0,0,0) -- ,1,1,1,1,0.7
        cairo_set_source(cr,border_pat)
        cairo_arc(cr,xc,yc,clock_r*1.125,0,2*math.pi)
        cairo_close_path(cr)
        cairo_set_line_width(cr,clock_r*0.25)
        cairo_stroke(cr)
        
        -- Set clock face
        
        cairo_arc(cr,xc,yc,clock_r,0,2*math.pi)
        cairo_close_path(cr)
        
        local face_pat=cairo_pattern_create_radial(xc,yc-clock_r*0.75,0,xc,yc,clock_r)
        
        cairo_pattern_add_color_stop_rgba(face_pat,0,0,0,0,0)        -- ,0,1,1,1,0.9
        cairo_pattern_add_color_stop_rgba(face_pat,0,0,0,0,0)      -- ,0.5,1,1,1,0.9
        cairo_pattern_add_color_stop_rgba(face_pat,0,0,0,0,0)  -- ,1,0.9,0.9,0.9,0.9
        cairo_set_source(cr,face_pat)
        cairo_fill_preserve(cr)
        cairo_set_source_rgba(cr,0,0,0,0) -- ,0.5,0.5,0.5,0.2
        cairo_set_line_width(cr, 1)
        cairo_stroke (cr)
        
        -- 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,0,0,0,0.8) -- ,0,0,0,0.4
        cairo_stroke(cr)
        
        -- Draw minute hand
        
        xm=xc+0.9*clock_r*math.sin(mins_arc)
        ym=yc-0.9*clock_r*math.cos(mins_arc)
        cairo_move_to(cr,xc,yc)
        cairo_line_to(cr,xm,ym)
        
        cairo_set_line_width(cr,3)
        cairo_stroke(cr)
        
        -- Draw seconds hand
        
        if show_seconds then
            xs=xc+0.9*clock_r*math.sin(secs_arc)
            ys=yc-0.9*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_stroke(cr)
        end
    end
    
    --[[ END AIR CLOCK WIDGET ]]
    
    --[[ RING WIDGET ]]
    --[[ Options (name, arg, max, bg_colour, bg_alpha, xc, yc, radius, thickness, start_angle, end_angle):
        "name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
        "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 ''.
        "max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
        "bg_colour" is the colour of the base ring.
        "bg_alpha" is the alpha value of the base ring.
        "fg_colour" is the colour of the indicator part of the ring.
        "fg_alpha" is the alpha value of the indicator part of the ring.
        "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.
        "radius" is the radius of the ring.
        "thickness" is the thickness of the ring, centred around the radius.
        "start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
        "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. ]]
    
    function ring(cr, name, arg, max, bgc, bga, fgc, fga, xc, yc, r, t, sa, ea)
        local function rgb_to_r_g_b(colour,alpha)
            return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
        end
        
        local function draw_ring(pct)
            local angle_0=sa*(2*math.pi/360)-math.pi/2
            local angle_f=ea*(2*math.pi/360)-math.pi/2
            local pct_arc=pct*(angle_f-angle_0)
    
            -- Draw background ring
    
            cairo_arc(cr,xc,yc,r,angle_0,angle_f)
            cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
            cairo_set_line_width(cr,t)
            cairo_stroke(cr)
        
            -- Draw indicator ring
    
            cairo_arc(cr,xc,yc,r,angle_0,angle_0+pct_arc)
            cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
            cairo_stroke(cr)
        end
        
        local function setup_ring()
            local str = ''
            local value = 0
            
            str = string.format('${%s %s}', name, arg)
            str = conky_parse(str)
            
            value = tonumber(str)
            if value == nil then value = 0 end
            pct = value/max
            
            draw_ring(pct)
        end    
        
        local updates=conky_parse('${updates}')
        update_num=tonumber(updates)
        
        if update_num>5 then setup_ring() end
    end
    
    --[[ END RING WIDGET ]]
    
    --[[ GRADIENT RING WIDGET ]]
    --[[ Options (name, arg, max, colour, alpha, x, y, inner_radius, outer_radius, frac, thickness, start_angle, end_angle):
            "name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
            "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 ''.
            "max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
            "fg_colour" is the colour of the ring.
            "fg_alpha" is the alpha value of the ring.
            "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.
            "inner_radius" is the inner radius of the ring.
            "outer_radius" is the outer radius of the ring.  
            "frac" determines the extent of the gradient around the ring - 2 implies the gradient fades halfway around the ring, 4 equals a quarter of the way, etc...      
            "thickness" is the thickness of the ring, centred around the radius.
            "start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
            "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. ]]
         
    function gradient_ring(cr, name, arg, max, fgc, fga, xc, yc, ring_i, ring_o, frac, t, sa, ea)
            local function rgb_to_r_g_b(colour,alpha)
                return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
            end
         
            local function draw_gradient_ring(pct)
                local angle_0=sa*(2*math.pi/360)-math.pi/2
                local angle_f=ea*(2*math.pi/360)-math.pi/2
                local pct_arc=pct*(angle_f-angle_0)
         
                for i = 1,max/frac do
                    cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga*i/max)) --for flat shading of bars
            
                    --local pat=cairo_pattern_create_linear(xc-ring_i*math.sin(angle_0+t_arc+2*math.pi*i/max),yc+ring_i*math.cos(angle_0+t_arc+2*math.pi*i/max),xc-ring_o*math.sin(angle_0+t_arc+2*math.pi*i/max),yc+ring_o*math.cos(angle_0+t_arc+2*math.pi*i/max))
                    --cairo_pattern_add_color_stop_rgba(pat,0,rgb_to_r_g_b(fgc,0))
                    --cairo_pattern_add_color_stop_rgba(pat,1,rgb_to_r_g_b(fgc,fga*i/max))
                    --cairo_set_source(cr,pat) -- for gradient shading of bars
            
                    cairo_move_to(cr,xc-ring_i*math.cos(angle_0+pct_arc+2*math.pi*i/max),yc-ring_i*math.sin(angle_0+pct_arc+2*math.pi*i/max))
                    cairo_line_to(cr,xc-ring_o*math.cos(angle_0+pct_arc+2*math.pi*i/max),yc-ring_o*math.sin(angle_0+pct_arc+2*math.pi*i/max))
        
                    cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
                    cairo_set_line_width(cr,t)
                    cairo_stroke(cr)
                end
            end
         
            local function setup_gradient_ring()
                local str = ''
                local value = 0
         
                str = string.format('${%s %s}', name, arg)
                str = conky_parse(str)
         
                value = tonumber(str)
                if value == nil then value = 0 end
                pct = value/max
         
                draw_gradient_ring(pct)
            end    
         
            local updates=conky_parse('${updates}')
            update_num=tonumber(updates)
         
            if update_num>5 then setup_gradient_ring() end
        end
         
    --[[ END GRADIENT RING WIDGET ]]
    
    --[[ PIE WIDGET ]]
    --[[ xc,yc - center of the pie
         r - radius of the pie ]]
    
    function pie_rings (xc, yc, r)
    
        pat = cairo_pattern_create_radial (xc, yc, 0.2*r, xc,  yc, r);
        cairo_pattern_add_color_stop_rgba (pat, 0.1, 1, 1, 1, 0);
        cairo_pattern_add_color_stop_rgba (pat, 1.0, 1, 1, 1, 0.3);
        cairo_set_source (cr, pat);
        cairo_arc (cr, xc, yc, r, 0, 2 * math.pi);
        cairo_fill (cr);
        cairo_pattern_destroy (pat);
    
    
        cairo_set_font_size (cr, 10)
        cairo_select_font_face (cr, "LCDMono",
                    CAIRO_FONT_SLANT_NORMAL,
                    CAIRO_FONT_WEIGHT_NORMAL)    
        cairo_set_line_width (cr, 2.0)
    
        -- Show total mem usage
        local str1 = conky_parse(string.format('${mem}'))
        local str2 = string.match(str1, "(%d+)")
        local str3 = string.match(str1, "(%a+)")
    
        cairo_set_source_rgba(cr, 1, 1, 1, 1)
        cairo_move_to (cr, xc-9, yc-1)
        cairo_show_text (cr, str2)
        cairo_move_to (cr, xc-9, yc+9)
        cairo_show_text (cr, str3)
        cairo_stroke(cr)
    
        -- Get top mem usage
        local str1 = conky_parse(string.format('${mem}'))
        local mem = tonumber(string.match(str1, "(%d+)"))
        local str1 = conky_parse(string.format('${memperc}'))
        local mempct = tonumber(string.match(str1, "(%d+)"))
        
        -- Draw pie
        local angle = -90
        local angle2 = 0
        local tro = 4        -- Text rotational offset (degrees)
        local maxprocesses = 7
        local maxstrlen = 8
    
        for process = 1, maxprocesses do
    
            cairo_save(cr)
        
            -- Get top process memory usage
            local str2 = conky_parse(string.format('${top_mem mem %i}', tonumber(process)))
            local mem_process = tonumber(str2)
            local procpct = mem_process / mempct
            angle2 = angle + (procpct*360)
    
            if angle2 > 260 then
                cairo_restore(cr)
                break
            end    
    
            -- Get top process name
            local str2 = conky_parse(string.format('${top_mem name %i} ', tonumber(process)))
            local index = string.find(str2,' ')
            
            if (index == nil) then
                cairo_restore(cr)
                break
            elseif (index > maxstrlen) then
                str2 = string.sub(str2, 0, maxstrlen)
            end
    
            -- Draw pie outline
            cairo_set_source_rgba(cr, 1, 1, 1, 0.2)        
            cairo_arc_negative (cr, xc, yc, 0.2*r, angle2*(math.pi/180), angle*(math.pi/180));            
            cairo_arc (cr, xc, yc, r, angle*(math.pi/180), angle2*(math.pi/180));    
    --        cairo_close_path(cr)
            cairo_stroke(cr)
    
            -- Draw text
            cairo_set_source_rgba(cr, 1, 1, 1, 1)    
            cairo_move_to(cr, xc, yc)
            cairo_rotate(cr, (angle2-((angle2-angle)/2)+tro)*(math.pi/180))
    --        cairo_show_text (cr, '    '..(procpct*100))
            if (index > maxstrlen) then
                cairo_show_text (cr, '      '..str2..'..')
            else
                cairo_show_text (cr, '      '..str2)
            end        
    
            angle = angle2 + 3
    
            cairo_stroke(cr)
            cairo_restore(cr)
        end
    
        if (angle < 264) then
            angle2 = 267
            cairo_set_source_rgba(cr, 1, 1, 1, 0.2)    
            cairo_arc_negative (cr, xc, yc, 0.2*r, angle2*(math.pi/180), angle*(math.pi/180));
            cairo_arc (cr, xc, yc, r, angle*(math.pi/180), angle2*(math.pi/180));    
    --        cairo_close_path(cr)
            cairo_stroke(cr)
            
            if ((angle2 - angle) > 20) then
                cairo_set_source_rgba(cr, 1, 1, 1, 0.5)    
                cairo_move_to(cr, xc, yc)
                cairo_rotate(cr, (angle2-((angle2-angle)/2)+tro+2)*(math.pi/180))
                cairo_show_text (cr, '      '..'other')
                cairo_stroke(cr)
            end
        end
    end
    --[[ END PIE WIDGET ]]
    
    function conky_widgets()
        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)
        air_clock(cr, 1235, 120, 200) -- options: xc, yc, size
        cairo_destroy(cr)
        
        cr = cairo_create(cs)
        ring(cr, 'cpu', 'CPU1', 100, 0xE3E3E3, 0.1, 0xFF7F00, 0.8, 120, 120, 81, 10, 0, 180) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle
        cairo_destroy(cr)
        
        cr = cairo_create(cs)
        ring(cr, 'cpu', 'CPU0', 100, 0xE3E3E3, 0.1, 0xFF0000, 0.5, 120, 120, 93, 10, 180, 360) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle
        cairo_destroy(cr)
        
        cr = cairo_create(cs)
        ring(cr, 'memperc', '', 100, 0xE3E3E3, 0, 0x1E90FF, 0.5, 120, 120, 102.5, 5, 0, 360) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle
        cairo_destroy(cr)    
        
        cr = cairo_create(cs)
        ring(cr, 'fs_used_perc', '/', 100, 0xE3E3E3, 0.1, 0x00FF00, 0.5, 120, 120, 63, 7, 0, 360) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle
        cairo_destroy(cr)
        
        cr = cairo_create(cs)
        ring(cr, 'battery_percent', 'BAT0', 100, 0xE3E3E3, 0, 0xFFFF00, 1, 120, 120, 71, 6, 0, 360) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle
        cairo_destroy(cr)
        
        cr = cairo_create(cs)
        ring(cr, 'time', '+%S', 60, 0xE3E3E3, 0, 0xFFFF00, 0.7, 1235, 120, 70, 4, 0, 360) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle
        cairo_destroy(cr)
        
        cr = cairo_create(cs)
        ring(cr, 'time', '+%M', 60, 0xE3E3E3, 0.1, 0x00CD00, 0.7, 1235, 120, 64, 7, 0, 360) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle
        cairo_destroy(cr)
        
        cr = cairo_create(cs)
        ring(cr, 'time', '+%H', 24, 0xE3E3E3, 0.2, 0xffffff, 0.7, 1235, 120, 53, 14, 0, 360) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle
        cairo_destroy(cr)
        
        cr = cairo_create(cs)
        ring(cr, 'battery_percent', 'BAT1', 100, 0xFF0000, 0.4, 0xFFFF00, 0, 1235, 120, 80, 14, 0, 180) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle
        cairo_destroy(cr)
        
        cr = cairo_create(cs)
        ring(cr, 'battery_percent', 'BAT1', 100, 0xFF0000, 0.8, 0xFFFF00, 0, 1235, 120, 75, 4, 180, 360) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle
        cairo_destroy(cr)
        
        cr = cairo_create(cs)
        ring(cr, 'battery_percent', 'BAT1', 100, 0xFF0000, 0.8, 0xFFFF00, 0, 1235, 120, 86, 2, 180, 360) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle
        cairo_destroy(cr)
        
        cr = cairo_create(cs)
        ring(cr, 'battery_percent', 'BAT1', 100, 0xE3E3E3, 0.2, 0xFFFF00, 0, 120, 120, 115, 6, 90, 270) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle
        cairo_destroy(cr)
        
        cr = cairo_create(cs)
        ring(cr, 'wireless_link_qual_perc', 'wlan0', 100, 0xE3E3E3, 0.1, 0x00E5EE, 0.5, 120, 120, 109, 5, 180, 360) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle
        cairo_destroy(cr)
        
        cr = cairo_create(cs)
            gradient_ring(cr, 'battery_percent', 'BAT1', 24, 0x00FFFF, 1.0, 120, 120, 95, 120, 1, 2, 0, 360)
            cairo_destroy(cr)
            
            cr = cairo_create(cs)
        local w = conky_window.width
        local h = conky_window.height
    
        r = 75
        xc = 1020
        yc = 180
        
        local updates=conky_parse('${updates}')
        update_num=tonumber(updates)
        
        if update_num>5 then
            pie_rings(xc, yc, r)
        end
    
            cairo_destroy(cr)
    
    end
    and the conky_calhoriz.sh:
    Code:
    #!/bin/bash
    #horizontal calendar for conky by ans
    COLOROLD="CDCD00"
    COLORTODAY="FF0000"
    COLORREST="3CB371"
    COLORNEXT="D8D8D8"
    
    TODAY=`date +%d`
    LASTDAY=`date -d "-$(date +%d) days +1 month" +%d`
    FIRSTDAY=`date -d "-1 month -$(($(date +%d)-1)) days +1 month" +%u`
    i=1
    TOPLINE=" "
    TODAYC="\${color $COLORTODAY}"
    OVER="\${color $COLOROLD} "
    REST="\${color $COLORREST} "
    #OVER=""
    #REST=""
    
    TODAYC="$TODAYC $TODAY"
    
    if [ $TODAY -ne 1 ]
    then
        while [ $i -lt $TODAY ]; do
            if [ $i -lt 10 ]
            then
                OVER="$OVER 0$i"
            else
                OVER="$OVER $i"
            fi
            i=$[$i+1]
        done
    fi
    i=$[$i+1]
    if [ $TODAY -ne $LASTDAY ]
    then
        while [ $i -ne $LASTDAY ]; do
            if [ $i -lt 10 ]
            then
                REST="$REST 0$i"
            else
                REST="$REST $i"
            fi
            i=$[$i+1]
        done
        REST="$REST $LASTDAY"
    fi
    i=$LASTDAY
    j=1
    NEXTMONTH="\${color $COLORNEXT} "
    while [ $i -lt 31 ] ; do
       NEXTMONTH="$NEXTMONTH 0$j"
       i=$[$i+1]
       j=$[$j+1]
    done
    j=31
    k=$FIRSTDAY
    while [ $j -gt 0 ]; do
        case "$k" in
        7)
            TOPLINE="$TOPLINE So"
        ;;
        1)
            TOPLINE="$TOPLINE Mo"
        ;;
        2)
            TOPLINE="$TOPLINE Di"
        ;;
        3)
            TOPLINE="$TOPLINE Mi"
        ;;
        4)
            TOPLINE="$TOPLINE Do"
        ;;
        5)
            TOPLINE="$TOPLINE Fr"
        ;;
        6)
            TOPLINE="$TOPLINE Sa"
        ;;
        esac
    
        j=$[$j-1]
        k=$[$k+1]
        if [ $k -eq 8 ]
        then
            k=1
        fi
    done
    echo '${goto 240}'$TOPLINE | sed 's/So/${color red}So${color}/g' | sed 's/Sa/${color orange}Sa${color}/g'
    echo '${goto 240}'$OVER$TODAYC$REST$NEXTMONTH
    I think that was all.
    Have Fun!
    64Bit - HP Compaq Presario CQ60-105EG, 4GB RAM, 160GB, NVIDIA GeForce 8200M, AMD Athlon X2 Dual-Core / Mandriva 2009.1, Mandriva 2010, #! Crunchbang 9.04.01 Conky-Hardcore - searchOne

  4. #10384
    Join Date
    Jul 2009
    Location
    Germany > Hessen > DA
    Beans
    26

    Re: Post your .conkyrc files w/ screenshots

    Hi,
    Here is a shorter version of the horizontal calendar, and does exactly the same!

    Code:
    #!/bin/bash
    MONAT=`date +%m`
    JAHR=`date +%Y`
    MTAGE=`cal $MONAT $JAHR | tr ' ' '\n' | grep -v ^$ | tail -n 1`
    for ((START=1; START <= $MTAGE; START+=1));do
       DATE="$JAHR-$MONAT-$START"
       k[$START]=$(date +%a -d $DATE)
       t[$START]=$(printf "%2d" $START)
    done
    DAY=`date +%-d`
    echo '${goto 240}'"${k[@]}" | sed 's/So/${color red}So${color}/g' | sed 's/Sa/${color orange}Sa${color}/g'
    echo '${goto 240}${color EE7942}'"${t[@]}" | sed /" $DAY "/s/" $DAY "/" "'${color yellow}'"$DAY"'${color 66CDAA}'" "/
    64Bit - HP Compaq Presario CQ60-105EG, 4GB RAM, 160GB, NVIDIA GeForce 8200M, AMD Athlon X2 Dual-Core / Mandriva 2009.1, Mandriva 2010, #! Crunchbang 9.04.01 Conky-Hardcore - searchOne

  5. #10385
    Join Date
    Nov 2008
    Beans
    79

    Re: Post your .conkyrc files w/ screenshots

    Here's mine.

    Please review comented sections for getting conky plugins for weather and mail.

    Code:
    ##	System interaction
    double_buffer yes
    text_buffer_size 2048
    
    ##	Font setup
    use_xft yes
    xftfont Bitstream FreeSans:size=8
    default_color CEAF81
    uppercase no
    
    ##	Window setup
    alignment top_right
    maximum_width 300
    
    own_window yes
    own_window_transparent yes
    own_window_type override # Try also 'normal' or 'override'
    gap_x 10
    gap_y 40
    
    
    TEXT
    ${color #FFC807}${image ~/.icons/CD10b/32x32/devices/computer.png -p 0,14}${voffset 18}           $nodename ${hr}
      
    ${color #CEAF81}Distribution${alignr}Ubuntu 9.10
    ${color #CEAF81}Kernel${alignr}${kernel}
    ${color #CEAF81}Uptime${alignr}${uptime}
    
    ${color #FFC807}${image ~/.icons/CD10b/32x32/devices/cpu.png -p 0,88}           CPU ${hr}
    ${color #CEAF81} 
    ##
    ##  Install lm-sensors to get data from $hwmon objects
    ##
    ${color #CEAF81}${alignc}Intel Core2Duo E6550 // ${freq}Mhz // ${hwmon 0 temp 1} °C
    ${color #CEAF81}  
    ${color #CEAF81}CPU:${cpu cpu0}%${alignc}	CPU0 ${cpu cpu1}%${alignr}CPU1 ${cpu cpu2}%
    ${color #CEAF81}${cpugraph}
    ${color #CEAF81}  
    ${color #FFC807}${image ~/.icons/CD10b/32x32/devices/ram.png -p 0,194}           System Memory ${hr}
    ${color #CEAF81}${memmax} Total/${mem} In Use/${memfree} Free
    ${color #CEAF81}${memgraph}
    ${color #CEAF81}  
    ${color #FFC807}${image /usr/share/icons/gnome/32x32/devices/drive-harddisk.png -p 0,272}           HDD ${hr}
    ${color #CEAF81}File System Free $fs_free${alignr}Swap used$swapperc%
    ${color #CEAF81}${fs_bar 6 /}
    ${color #CEAF81}  
    ${color #FFC807}${image /usr/share/icons/gnome/32x32/devices/network-wired.png -p 0,332}           Network ${hr}
    ${color #CEAF81}  
    ${color #CEAF81}IP Address${alignr}${addr eth0}
    ${color #CEAF81}Upload ${upspeedf eth0}kb/s${alignr}Download ${downspeedf eth0}kb/s
    ${color #CEAF81}${upspeedgraph eth0 25,147}${alignr}${color #CEAF81}${downspeedgraph eth0 25,147}
    ${color #CEAF81}Total ${totalup eth0}${alignr}Total${totaldown eth0}
    
    ##
    ##  Instructions for installing & configuring conkyEmail can be found at
    ##  http://ubuntuforums.org/showthread.php?t=869771
    ##
    ${color #FFC807}${image /usr/share/icons/gnome/32x32/actions/mail-mark-unread.png -p 0,440}           Mail ${hr}
    ${color #CEAF81}"Omitted for privacy"
    #${color #CEAF81}${execi 1800 conkyEmail --template=/home/chris/conkyEmail.template}
    
    ##
    ##  Instructions for installing and configuring conkyForecast can be found at
    ##  http://www.linutop.com/mag.en/2009/01/30/displaying-weather-on-the-desktop-with-conkyforecast/
    ##
    
    ${color #FFC807}Current weather ${hr}
    ${color #CEAF81}${execpi 1800 conkyForecast --location=private --template=~/conkyForecast.template}
    Attachment 135270

  6. #10386
    Join Date
    Aug 2009
    Beans
    287

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by djyoung4 View Post
    Does anybody know if there is a way to do vertical bars?
    here's a minimalist vertical one:

    Code:
    # set to yes if you want Conky to be forked in the background
    background yes
    
    #avoid flicker 
    double_buffer yes 
     
    #own window to run simultanious 2 or more conkys 
    own_window  yes 
    own_window_transparent yes 
    own_window_type override # Try also 'normal' or 'override' 
    own_window_hints undecorate,skip_pager,skip_awn,skip_taskbar 
     
    #borders 
    draw_borders no 
    border_margin 0 
     
    #shades 
    draw_shades no 
     
    #position 
    gap_x 0 
    gap_y 25 
    alignment top_left 
     
    #behaviour 
    update_interval 1 
     
    #colour 
    default_color  FFFFFF 
    #default_shade_color 000000 
    own_window_colour 262729 
     
    #font 
    use_xft yes 
    xftfont Segoe UI:size=10 
     
    # Force UTF8? note that UTF8 support required XFT 
    override_utf8_locale yes 
     
    #to prevent window from moving 
    use_spacer yes 
    minimum_size 150 35 
     
    #mpd 
    #mpd_host localhost 
    #mpd_port 6600 
     
    TEXT 
    Cpu: ${color FFFFFF}${cpu}%${color} Core: ${alignr}${acpitemp}°C  Ram: ${color FFFFFF}${memperc}%${color FFFFFF}  ${if_existing /proc/net/route wlan0} Signal: ${color FFFFFF}${wireless_link_qual wlan0}%${color} battery $battery_percent%  |  Playing:  ${color FFFFFF}${font Segoe UI:size=10}${exec rhythmbox-client --no-start --print-playing-format %tt} - ${exec rhythmbox-client --no-start --print-playing-format %aa}

  7. #10387
    Join Date
    Mar 2006
    Location
    Canada
    Beans
    1,313
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by TheNessus View Post
    here's a minimalist vertical one:

    Code:
    # set to yes if you want Conky to be forked in the background
    background yes
    
    #avoid flicker 
    double_buffer yes 
     
    #own window to run simultanious 2 or more conkys 
    own_window  yes 
    own_window_transparent yes 
    own_window_type override # Try also 'normal' or 'override' 
    own_window_hints undecorate,skip_pager,skip_awn,skip_taskbar 
     
    #borders 
    draw_borders no 
    border_margin 0 
     
    #shades 
    draw_shades no 
     
    #position 
    gap_x 0 
    gap_y 25 
    alignment top_left 
     
    #behaviour 
    update_interval 1 
     
    #colour 
    default_color  FFFFFF 
    #default_shade_color 000000 
    own_window_colour 262729 
     
    #font 
    use_xft yes 
    xftfont Segoe UI:size=10 
     
    # Force UTF8? note that UTF8 support required XFT 
    override_utf8_locale yes 
     
    #to prevent window from moving 
    use_spacer yes 
    minimum_size 150 35 
     
    #mpd 
    #mpd_host localhost 
    #mpd_port 6600 
     
    TEXT 
    Cpu: ${color FFFFFF}${cpu}%${color} Core: ${alignr}${acpitemp}°C  Ram: ${color FFFFFF}${memperc}%${color FFFFFF}  ${if_existing /proc/net/route wlan0} Signal: ${color FFFFFF}${wireless_link_qual wlan0}%${color} battery $battery_percent%  |  Playing:  ${color FFFFFF}${font Segoe UI:size=10}${exec rhythmbox-client --no-start --print-playing-format %tt} - ${exec rhythmbox-client --no-start --print-playing-format %aa}
    I can't get your's to run in Ubuntu 9.10/Conky 1.7.2

    Code:
    $ conky -d
    Conky: /home/$USER/.conkyrc: 11: config file error
    Conky: border_margin is deprecated, please use window.border_inner_margin instead
    Conky: use_spacer should have an argument of left, right, or none.  'yes' seems to be some form of 'true', so defaulting to right.
    Conky: one or more $endif's are missing
    Conky: forked to background, pid is 11231
    Conky: desktop window (18000a6) is subwindow of root window (1a7)
    Conky: window type - override
    Conky: drawing to created window (0x2c00001)
    Conky: drawing to double buffer

  8. #10388
    Join Date
    Jul 2008
    Location
    Connecticut, U.S.
    Beans
    106
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Post your .conkyrc files w/ screenshots

    Fixed:
    Code:
    # set to yes if you want Conky to be forked in the background
    background yes
    
    #avoid flicker 
    double_buffer yes 
     
    #own window to run simultanious 2 or more conkys 
    own_window  yes 
    own_window_transparent yes 
    own_window_type override # Try also 'normal' or 'override' 
    own_window_hints undecorate,skip_pager,skip_awn,skip_taskbar 
     
    #borders 
    draw_borders no 
    border_margin 0 
     
    #shades 
    draw_shades no 
     
    #position 
    gap_x 0 
    gap_y 25 
    alignment top_left 
     
    #behaviour 
    update_interval 1 
     
    #colour 
    default_color  FFFFFF 
    #default_shade_color 000000 
    own_window_colour 262729 
     
    #font 
    use_xft yes 
    xftfont Segoe UI:size=10 
     
    # Force UTF8? note that UTF8 support required XFT 
    override_utf8_locale yes 
     
    #to prevent window from moving 
    use_spacer yes 
    minimum_size 150 35 
     
    #mpd 
    #mpd_host localhost 
    #mpd_port 6600 
     
    TEXT 
    Cpu: ${color FFFFFF}${cpu}%${color} Core: ${alignr}${acpitemp}°C  Ram: ${color FFFFFF}${memperc}%${color FFFFFF}  ${if_existing /proc/net/route wlan0} Signal: ${color FFFFFF}${wireless_link_qual wlan0}%${color}${endif /proc/net/route wlan0} battery $battery_percent%  |  Playing:  ${color FFFFFF}${font Segoe UI:size=10}${exec rhythmbox-client --no-start --print-playing-format %tt} - ${exec rhythmbox-client --no-start --print-playing-format %aa}
    Registered Ubuntu User #29430

  9. #10389
    Join Date
    Dec 2007
    Beans
    118
    Distro
    Kubuntu 9.10 Karmic Koala

    Re: Post your .conkyrc files w/ screenshots

    i also did some stuff with cairo and lua:

    "To you I'm an atheist; to God, I'm the Loyal Opposition." Woody Allen
    Stressing The Gimp - High Quality Tutorials For The Gimp

  10. #10390
    Join Date
    Oct 2009
    Beans
    27

    Re: Post your .conkyrc files w/ screenshots

    Here is my simple but clean conky


    Code:
    background yes
    use_xft yes
    xftfont HandelGotD:size=8
    xftalpha 0.1
    update_interval 0.5
    total_run_times 0
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
    minimum_size 200 5
    maximum_width 200
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders no
    default_color white
    default_shade_color red
    default_outline_color green
    alignment top_right
    gap_x 18
    gap_y 48
    no_buffers yes
    uppercase no
    cpu_avg_samples 2
    net_avg_samples 1
    override_utf8_locale no
    use_spacer yes
    
    TEXT
    ${font arial:size=30}${time %I:%M%p}$font
    ${font arial:size=20}${alignr}${time %A, %b %d}$font
    
    $sysname $kernel $alignr $machine
    Intel Centrino 2 $alignr${freq_g cpu0}Ghz
    
    Battery: ${battery_percent}% ${battery_bar} 
    $alignr
    ${cpugraph cpu0 16,200 ffffff ffffff}
    CPU:1  ${cpu cpu1}% ${cpubar cpu1}
    CPU:2  ${cpu cpu2}% ${cpubar cpu2}
    Temp: ${acpitemp}C
    
    MEM $alignc $mem / $memmax $alignr $memperc%
    $membar
    
    Ubuntu 9.04 $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_free_perc /home}%
    ${fs_bar /home}
    Windows 7 $alignc ${fs_used /media/disk} / ${fs_size /media/disk} $alignr ${fs_free_perc /media/disk}%
    ${fs_bar /media/disk}
    
    Disk i/o ${diskiograph 16,200} 
    
    Processes 
    $alignr $running_processes Running 
    $alignr $processes Sleeping
    
    Top Processes
    
    CPU $alignr CPU% MEM%
    
    ${top name 1}$alignr${top cpu 1}${top mem 1}
    ${top name 2}$alignr${top cpu 2}${top mem 2}
    ${top name 3}$alignr${top cpu 2}${top mem 3}
    
    MEM $alignr CPU% MEM%
    
    ${top_mem name 1}$alignr${top_mem cpu 1}${top_mem mem 1}
    ${top_mem name 2}$alignr${top_mem cpu 2}${top_mem mem 2}
    ${top_mem name 3}$alignr${top_mem cpu 3}${top_mem mem 3}
    
    IP on wlan0 $alignr ${addr wlan0}
    
    Down $alignr ${downspeed wlan0} kb/s
    ${downspeedgraph wlan0}
    Up $alignr ${upspeed wlan0} kb/s
    ${upspeedgraph wlan0 16,200}
    Attached Images Attached Images
    Last edited by rwt911; November 8th, 2009 at 10:50 PM.

Page 1039 of 2325 FirstFirst ... 3953993998910291037103810391040104110491089113915392039 ... 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
  •