Page 1234 of 2348 FirstFirst ... 2347341134118412241232123312341235123612441284133417342234 ... LastLast
Results 12,331 to 12,340 of 23480

Thread: Post your .conkyrc files w/ screenshots

  1. #12331
    Join Date
    Sep 2008
    Location
    Italy Varese..
    Beans
    8
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Post your .conkyrc files w/ screenshots

    You excuse my English, I use:www.lexicool.com

    Kindly I would need one help of his for a.lua

    This is .conkyrc

    Code:
    # -- Conky settings -- #
    background no
    update_interval 1
    
    cpu_avg_samples 2
    net_avg_samples 2
    
    override_utf8_locale yes
    
    double_buffer yes
    no_buffers yes
    
    text_buffer_size 2048
    imlib_cache_size 0
    
    # -- Window specifications -- #
    
    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 400 430
    
    alignment tm
    gap_x 10
    gap_y 0
    
    # -- Graphics settings -- #
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders no
    
    # -- Text settings -- #
    use_xft yes
    xftfont Santana:size=24
    xftalpha 0.8
    
    uppercase no
    
    default_color FFFFFF
    
    
    # -- Lua Load -- #
    lua_load ~/Scrivania/bargraph.lua
    lua_draw_hook_pre main
    
    TEXT
    This is .lua:
    Code:
    require 'cairo'
    
    --[[ BARGRAPH WIDGET
    	v1.3 by wlourf (03 march 2010)
    	This widget draw a simple bar like (old) equalizers on hi-fi systems.
    	http://u-scripts.blogspot.com/
    	
    	The arguments are :
    	- "name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'...
    	  or you can set it to "" if you want to display a numeric value with arg=numeric_value
        - "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 bar. If the Conky variable outputs a percentage, use 100.
    	- "nb_blocks" is the umber of block to draw
    	- "cap" id the cap of a block, possibles values are CAIRO_LINE_CAP_ROUND , CAIRO_LINE_CAP_SQUARE or CAIRO_LINE_CAP_BUTT
    	  see http://www.cairographics.org/samples/set_line_cap/
    	- "xb" and "yb" are the coordinates of the bottom left point of the bar, or the center of the circle if radius>0
    	- "w" and "h" are the width and the height of a block (without caps), w has no effect for "circle" bar
    	- "space" is the space betwwen two blocks, can be null or negative
    	- "bgc" and "bga" are background colors and alpha when the block is not LIGHT OFF
    	- "fgc" and "fga" are foreground colors and alpha when the block is not LIGHT ON
    	- "alc" and "ala" are foreground colors and alpha when the block is not LIGHT ON and ALARM ON
    	- "alarm" is the value where blocks LIGHT ON are in a different color (values from 0 to 100)
    	- "led_effect" true or false : to show a block with a led effect
    	- "led_alpha" alpha of the center of the led (values from 0 to 1)
    	- "smooth" true or false : colors in the bar has a smooth effect
    	- "mid_color",mid_alpha" : colors of the center of the bar (mid_color can to be set to nil)
    	- "rotation" : angle of rotation of the bar (values are 0 to 360 degrees). 0 = vertical bar, 90 = horizontal bar
    	- "radius" : draw the bar on a circle (it's no more a circle, radius = 0 to keep bars)
    	- "angle_bar"  : if radius>0 angle_bar is the angle of the bar
    v1.0 (10 Feb. 2010) original release
    v1.1 (13 Feb. 2010) numeric values can be passed instead conky stats with parameters name="", arg = numeric_value	
    v1.2 (28 Feb. 2010) just renamed the widget to bargraph
    v1.3 (03 March 2010) added parameters radius & angle_bar to draw the bar in a circular way
    ]]
    
    
    function bar_graph(name, arg, max, nb_blocks, cap, xb, yb, w, h, space, bgc, bga, fgc, fga,alc,ala,alarm,led_effect,led_alpha,smooth,mid_color,mid_alpha,rotation,radius, angle_bar)
     	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 setup_bar_graph()
    
    		local value = 0
    		if name ~="" then
    			local str = conky_parse(string.format('${%s %s}', name, arg))
    			value = tonumber(str)
    		else
    			value = arg
    		end
    		if value==nil then value =0 end
    		local pct = 100*value/max
    		local pcb = 100/nb_blocks
    		
    		cairo_set_line_width (cr, h)
    		cairo_set_line_cap  (cr, cap)
    		
    		local angle_rot= rotation*math.pi/180
    		local alpha_bar = (angle_bar*math.pi/180)/2
    		for pt = 1,nb_blocks do  
    			local light_on=false
    			--set colors
    			local col,alpha = bgc,bga
    			if pct>=(100/nb_blocks/2) then --start after an half bloc
    				if pct>=(pcb*(pt-1)) then 
    					light_on=true
    					col,alpha = fgc,fga
    					if pct>=alarm and (pcb*pt)>alarm then col,alpha = alc,ala end
    				end
    			end
    
    			--vertical points
    			local x1=xb
    			local y1=yb-pt*(h+space)
    			local radius0 = yb-y1
    	
    			local x2=xb+radius0*math.sin(angle_rot)
    			local y2=yb-radius0*math.cos(angle_rot)
    			
    			--line on angle_rot
    			local a1=(y2-yb)/(x2-xb)
    			local b1=y2-a1*x2
    
    			--line perpendicular to angle_rot
    			local a2=-1/a1
    			local b2=y2-a2*x2
    			
    			--dots on perpendicular
    			local xx0,xx1,yy0,yy1=0,0,0,0
    			if rotation == 90  or rotation == 270 then
    				xx0,xx1=x2,x2
    				yy0=yb
    				yy1=yb+w
    			else
    				xx0,xx1=x2,x2+w*math.cos(angle_rot)
    				yy0=xx0*a2+b2
    				yy1=xx1*a2+b2
    			end
    
    			local xc,yc
    			--perpendicular segment
    			if alpha_bar == 0 then
    				cairo_move_to (cr, xx0 ,yy0)
    				cairo_line_to (cr, xx1 ,yy1)
    				xc,yc=(xx0+xx1)/2,(yy0+yy1)/2
    			else			
    				cairo_arc( cr,
    					xb,
    					yb,
    					radius+(h+space)*(pt)-h/2,
    					( -alpha_bar -math.pi/2+angle_rot) ,
    					( alpha_bar -math.pi/2+angle_rot) 
    				)
    				xc=xb+	(radius+(h+space)*(pt))*math.sin(angle_rot)
    				yc=yb-	(radius+(h+space)*(pt))*math.cos(angle_rot)			
    			end
    		
    			--colors
    			if light_on and led_effect then
    				local pat = cairo_pattern_create_radial (xc, yc, 0, xc,yc,w/1.5)
    				cairo_pattern_add_color_stop_rgba (pat, 0, rgb_to_r_g_b(col,led_alpha))
    				cairo_pattern_add_color_stop_rgba (pat, 1, rgb_to_r_g_b(col,alpha))
    				cairo_set_source (cr, pat)
    				cairo_pattern_destroy(pat)
    			else
    				cairo_set_source_rgba(cr, rgb_to_r_g_b(col,alpha))
    			end 
    
    			if light_on and smooth then
    				local radius = (nb_blocks+1)*(h+space)
    				if pt==1 then 
    					xc0,yc0=xc,yc --remember the center of first block
    				end
    				cairo_move_to(cr,xc0,yc0)
    				local pat = cairo_pattern_create_radial (xc0, yc0, 0, xc0,yc0,radius)
    				cairo_pattern_add_color_stop_rgba (pat, 0, rgb_to_r_g_b(fgc,fga))
    				cairo_pattern_add_color_stop_rgba (pat, 1, rgb_to_r_g_b(alc,ala))
    				if mid_color ~=nil then
    					cairo_pattern_add_color_stop_rgba (pat, 0.5,rgb_to_r_g_b(mid_color,mid_alpha))
    				end
    				cairo_set_source (cr, pat)
    				cairo_pattern_destroy(pat)
    			end 
    		
    			cairo_stroke (cr);
    
    		end
    	end
    	
    	--prevent segmentation error
    	local updates=tonumber(conky_parse('${updates}'))
    	if updates> 3 then
    		setup_bar_graph()
    	end	
    end
    
    
    
    
    function conky_main()
    	if conky_window == nil then return end
    	
    	local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
    	
    	cr = cairo_create(cs)
    
    	local x0,y0 = conky_window.width/2, conky_window.height/2
    	local blocks = 20
    	local cap_round = CAIRO_LINE_CAP_ROUND
    	local cap_square = CAIRO_LINE_CAP_SQUARE
    	local cap_butt = CAIRO_LINE_CAP_BUTT
    	local w,h=20,10
    	local s=2
    	local bgc,bga = 0x00CC66, 0.5
    	local fgc,fga = 0x66FF00, 1
    	local alc,ala = 0x00CCFF, 1
    	local mid_color,mid_alpha = 0xFFFF00, 1.0
    	local led_effect, led_alpha = true ,  1.0
    	local alarm = 80
    	local smooth = true
    	local angle_rot = 45
    	local radius=0
    	local angle_bar=0
    
    --reminder : the order of the parameters:
    --(name, arg, max, nb_blocks, cap, xb, yb, w, h, space, bgc, bga, fgc, fga,alc,ala,alarm,led_effect,led_alpha,smooth,mid_color,mid_alpha,rotation,radius,angle_bar)	
    
    --rotating bar in the middle (does not rotate as a second hand, this is just an example)
    	if var==nil then var =0 end
    	var=var+1
    	angle=var
    	radius=25
    	angle_bar=45
    	bar_graph('time', '%S',	60,	blocks, cap_square, x0, y0/2, w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)
    
    --two horizontal lines on the top
    	w,h=10,10
    	x0,y0=05,05
    	s=1
    	angle_bar=0	
    	angle_rot=90
    	
    	bar_graph('fs_used_perc', '/home',	100,	70, cap_butt, x0, y0, w,h,s,0x6600FF,bga, 0x6600ff,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)
    	bar_graph('fs_used_perc', '/',	100,	70, cap_round, x0, y0+25, 0,10,1,0x6600FF,bga, 0x6600ff,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,100,radius,angle_bar)
    
    --basic example : bottom left
    	x0,y0 = 10,conky_window.height-10
    	blocks = 20
    	w,h=25,10
    	s=2
    	bgc,bga = 0x009933, 0.3
    	fgc,fga = 0x66FF00, 1
    	alc,ala = 0xFF0000, 1
    	
    	led_effect, led_alpha = false ,  1.0
    	alarm = 80
    	smooth = false
    	angle_rot = 0	
    
    	bar_graph('time', '%S',	60,	blocks, cap_butt, x0, y0, 	w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)
    	
    --inverse example : (on top of the previous)
    	bar_graph('time', '%S',	60,	blocks, cap_butt, x0+25, 240, 	w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,180,radius,angle_bar)
    --no "off-block" and shorter : bottom, second from left
    	blocks = 15
    	bgc,bga = 0x009933, 0
    	
    	bar_graph('time', '%S',	60,	blocks, cap_butt, x0+40, y0, 	w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)
    
    --"led effect" example : bottom, 3rd from left
    	bgc,bga = 0x009933, 0.3
    	fgc,fga = 0x66FF00, 0
    	alc,ala = 0xFF0000, 0
    	led_effect, led_alpha = true ,  1.0
    	 blocks = 20
    	bar_graph('time', '%S',	60,	blocks, cap_butt, x0+80, y0, 	w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)
    
    --smooth colors example (4th)
    	smooth = true
    	mid_color,mid_alpha = nil, 0.5
    	fgc,fga = 0x66FF00, 1
    	alc,ala = 0xFF0000, 1
    	
    	bar_graph('time', '%S',	60,	blocks, cap_butt, x0+120, y0, 	w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)	
    
    --smooth example with additional color in the middle (blue) :  5th
    	mid_color,mid_alpha = 0x0000FF, 1
    	
    	bar_graph('time', '%S',	60,	blocks, cap_butt, x0+160, y0, 	w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)	
    	
    --another smooth with no colors at beginning :6 th
    	fgc,fga = 0x66FF00, 0
    	
    	bar_graph('time', '%S',	60,	blocks, cap_butt, x0+200, y0, 	w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)
    	
    --rounded cap for the lines : 7th
    	bgc,bga = 0x009933, 0.3
    	fgc,fga = 0x66FF00, 1
    	alc,ala = 0xFF0000, 1
    	smooth = false	
    	
    	bar_graph('time', '%S',	60,	blocks, cap_round, x0+240, y0, 	w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)
    	
    --continuous bar (space =0) : 8th
    	mid_color,mid_alpha = 0xFFFF00, 1
    	s=0
    	smooth = true
    	
    	bar_graph('time', '%S',	60,	blocks, cap_butt, x0+280, y0, 	w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)	
    	
    --continuous bar (but space = -1) : 9th
    	mid_color,mid_alpha = 0xFFFF00, 1
    	s=-1
    	smooth = true
    	bar_graph('time', '%S',	60,	blocks, cap_butt, x0+320, y0, 	w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)	
    
    --and three rotations
    	bar_graph('time', '%S',	60,	blocks, cap_butt, x0+360, y0-h, 	w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,30,radius,angle_bar)	
    	bar_graph('time', '%S',	60,	blocks, cap_butt, x0+400, y0-h, 	w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,60,radius,angle_bar)	
    	bar_graph('time', '%S',	60,	blocks, cap_butt, x0+460, y0-h, 	w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,90,radius,angle_bar)
    	
    --rounded, no space (2nd in the middle)
    	s=0
    	bar_graph('time', '%S',	60,	blocks, cap_round, x0+50, y0-300, 	w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)
    
    --rounded, space=2, led effect (3rd in the middle) an angle effect
    	led_effect = true
    	smooth = false
    	bgc,bga = 0x009933, 0.2
    	fgc,fga = 0xffff00,0
    	alc,ala = 0x00ffff, 0
    	led_effect, led_alpha = true ,  1.0	
    	s=2
    	angle_bar=10
    	radius=5
    	bar_graph('time', '%S',	60,	blocks, cap_round, x0+100, y0-350, 	w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)
    
    --the big horizontal bars in the middle
    	led_effect, led_alpha = true ,  1.0	
    	s=0
    	h=55
    	w=40
    	alarm=50
    	bga=0
    	blocks=12
    	--two widget needed to draw first bar
    	bar_graph('time', '%S',	60,	blocks, cap_round, x0+110, y0-450, 	w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,90,0,0)
    	smooth =true
    	bar_graph('time', '%S',	60,	blocks, cap_round, x0+110, y0-450, 	w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,90,0,0)
    	--local angle_bar=20
    	--second widget, round balls
    	smooth =false
    	bar_graph('time', '%S',	60,	blocks, cap_round, x0+110, y0-350, 	w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,90,0,0)	
    --[[		
    	]]
    	
    --the half circle on right bottom made with two widgets
    	bgc,bga = 0x009933, 0.3
    	fgc,fga = 0x66FF00, 1
    	alc,ala = 0xFF0000, 1
    	smooth = false	
    	h=5
    	x=1
    	blocks=20
    	radius=30
    	angle_bar=90
    	angle_rot=45
    	alarm=80
    	led_effect=false
    	bar_graph('time', '%S',	60,	blocks, cap_butt, x0+600, y0-150, 	w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)
    	
    	bgc,bga = 0x66FF00, 1
    	fgc,fga = 0x009933, 0.3
    	alc,ala = 0xFF0000, 1	
    	angle_rot=135
    	
    	bar_graph('time', '%S',	60,	blocks, cap_butt, x0+600, y0-150, 	w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)	
    	cairo_destroy(cr)
    	cairo_surface_destroy(cs)
    		
    
    end
    ..................................................

    I would want to visualize in the conky, only these:

    Thanks for the granted help....

  2. #12332
    Join Date
    Aug 2009
    Location
    East of Atlantic
    Beans
    81
    Distro
    Ubuntu

    Re: Post your .conkyrc files w/ screenshots

    @degan


    change the main function to this one :
    Code:
    function conky_main()
        if conky_window == nil then return end
        
        local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
        
        cr = cairo_create(cs)
    
        local x0,y0 = conky_window.width/2, conky_window.height/2
        local blocks = 20
        local cap_round = CAIRO_LINE_CAP_ROUND
        local cap_square = CAIRO_LINE_CAP_SQUARE
        local cap_butt = CAIRO_LINE_CAP_BUTT
        local w,h=20,10
        local s=2
        local bgc,bga = 0x00CC66, 0.5
        local fgc,fga = 0x66FF00, 1
        local alc,ala = 0x00CCFF, 1
        local mid_color,mid_alpha = 0xFFFF00, 1.0
        local led_effect, led_alpha = true ,  1.0
        local alarm = 80
        local smooth = true
        local angle_rot = 45
        local radius=0
        local angle_bar=0
    
    --reminder : the order of the parameters:
    --(name, arg, max, nb_blocks, cap, xb, yb, w, h, space, bgc, bga, fgc, fga,alc,ala,alarm,led_effect,led_alpha,smooth,mid_color,mid_alpha,rotation,radius,angle_bar)    
    --[[
    --rotating bar in the middle (does not rotate as a second hand, this is just an example)
        if var==nil then var =0 end
        var=var+1
        angle=var
        radius=25
        angle_bar=45
        bar_graph('time', '%S',    60,    blocks, cap_square, x0, y0/2, w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)
    
    --two horizontal lines on the top
        w,h=10,10
        x0,y0=05,05
        s=1
        angle_bar=0    
        angle_rot=90
        
        bar_graph('fs_used_perc', '/home',    100,    70, cap_butt, x0, y0, w,h,s,0x6600FF,bga, 0x6600ff,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)
        bar_graph('fs_used_perc', '/',    100,    70, cap_round, x0, y0+25, 0,10,1,0x6600FF,bga, 0x6600ff,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,100,radius,angle_bar)
    
    --basic example : bottom left
        x0,y0 = 10,conky_window.height-10
        blocks = 20
        w,h=25,10
        s=2
        bgc,bga = 0x009933, 0.3
        fgc,fga = 0x66FF00, 1
        alc,ala = 0xFF0000, 1
        
        led_effect, led_alpha = false ,  1.0
        alarm = 80
        smooth = false
        angle_rot = 0    
    
        bar_graph('time', '%S',    60,    blocks, cap_butt, x0, y0,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)
        
    --inverse example : (on top of the previous)
        bar_graph('time', '%S',    60,    blocks, cap_butt, x0+25, 240,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,180,radius,angle_bar)
    --no "off-block" and shorter : bottom, second from left
        blocks = 15
        bgc,bga = 0x009933, 0
        
        bar_graph('time', '%S',    60,    blocks, cap_butt, x0+40, y0,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)
    
    --"led effect" example : bottom, 3rd from left
        bgc,bga = 0x009933, 0.3
        fgc,fga = 0x66FF00, 0
        alc,ala = 0xFF0000, 0
        led_effect, led_alpha = true ,  1.0
         blocks = 20
        bar_graph('time', '%S',    60,    blocks, cap_butt, x0+80, y0,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)
    
    --smooth colors example (4th)
        smooth = true
        mid_color,mid_alpha = nil, 0.5
        fgc,fga = 0x66FF00, 1
        alc,ala = 0xFF0000, 1
        
        bar_graph('time', '%S',    60,    blocks, cap_butt, x0+120, y0,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)    
    
    --smooth example with additional color in the middle (blue) :  5th
        mid_color,mid_alpha = 0x0000FF, 1
        
        bar_graph('time', '%S',    60,    blocks, cap_butt, x0+160, y0,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)    
        
    --another smooth with no colors at beginning :6 th
        fgc,fga = 0x66FF00, 0
        
        bar_graph('time', '%S',    60,    blocks, cap_butt, x0+200, y0,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)
        ]]
    --rounded cap for the lines : 7th
    
        bgc,bga = 0x009933, 0.3
        fgc,fga = 0x66FF00, 1
        alc,ala = 0xFF0000, 1
        smooth = false    
    
        
        -- 2 new lines
        x0,y0 = 10,conky_window.height-10
        angle_rot=0
        
        bar_graph('time', '%S',    60,    blocks, cap_round, x0+240, y0,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)
    --[[    
    --continuous bar (space =0) : 8th
        mid_color,mid_alpha = 0xFFFF00, 1
        s=0
        smooth = true
        
        bar_graph('time', '%S',    60,    blocks, cap_butt, x0+280, y0,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)    
        
    --continuous bar (but space = -1) : 9th
        mid_color,mid_alpha = 0xFFFF00, 1
        s=-1
        smooth = true
        bar_graph('time', '%S',    60,    blocks, cap_butt, x0+320, y0,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)    
    
    --and three rotations
        bar_graph('time', '%S',    60,    blocks, cap_butt, x0+360, y0-h,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,30,radius,angle_bar)    
        bar_graph('time', '%S',    60,    blocks, cap_butt, x0+400, y0-h,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,60,radius,angle_bar)    
        bar_graph('time', '%S',    60,    blocks, cap_butt, x0+460, y0-h,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,90,radius,angle_bar)
        
    --rounded, no space (2nd in the middle)
        s=0
        bar_graph('time', '%S',    60,    blocks, cap_round, x0+50, y0-300,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)
    ]]
    --rounded, space=2, led effect (3rd in the middle) an angle effect
        led_effect = true
        smooth = false
        bgc,bga = 0x009933, 0.2
        fgc,fga = 0xffff00,0
        alc,ala = 0x00ffff, 0
        led_effect, led_alpha = true ,  1.0    
        s=2
        angle_bar=10
        radius=5
        bar_graph('time', '%S',    60,    blocks, cap_round, x0+100, y0-350,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)
    --[[
    --the big horizontal bars in the middle
        led_effect, led_alpha = true ,  1.0    
        s=0
        h=55
        w=40
        alarm=50
        bga=0
        blocks=12
        --two widget needed to draw first bar
        bar_graph('time', '%S',    60,    blocks, cap_round, x0+110, y0-450,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,90,0,0)
        smooth =true
        bar_graph('time', '%S',    60,    blocks, cap_round, x0+110, y0-450,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,90,0,0)
        --local angle_bar=20
        --second widget, round balls
        smooth =false
        bar_graph('time', '%S',    60,    blocks, cap_round, x0+110, y0-350,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,90,0,0)    
        
    --the half circle on right bottom made with two widgets
        bgc,bga = 0x009933, 0.3
        fgc,fga = 0x66FF00, 1
        alc,ala = 0xFF0000, 1
        smooth = false    
        h=5
        x=1
        blocks=20
        radius=30
        angle_bar=90
        angle_rot=45
        alarm=80
        led_effect=false
        bar_graph('time', '%S',    60,    blocks, cap_butt, x0+600, y0-150,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)
        
        bgc,bga = 0x66FF00, 1
        fgc,fga = 0x009933, 0.3
        alc,ala = 0xFF0000, 1    
        angle_rot=135
        
        bar_graph('time', '%S',    60,    blocks, cap_butt, x0+600, y0-150,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)    
    
    ]]
        cairo_destroy(cr)
        cairo_surface_destroy(cs)
            
    
    end

  3. #12333
    Join Date
    Sep 2008
    Location
    Italy Varese..
    Beans
    8
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Post your .conkyrc files w/ screenshots

    .lua

    Code:
    function conky_main()
        if conky_window == nil then return end
        
        local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
        
        cr = cairo_create(cs)
    
        local x0,y0 = conky_window.width/2, conky_window.height/2
        local blocks = 20
        local cap_round = CAIRO_LINE_CAP_ROUND
        local cap_square = CAIRO_LINE_CAP_SQUARE
        local cap_butt = CAIRO_LINE_CAP_BUTT
        local w,h=20,10
        local s=2
        local bgc,bga = 0x00CC66, 0.5
        local fgc,fga = 0x66FF00, 1
        local alc,ala = 0x00CCFF, 1
        local mid_color,mid_alpha = 0xFFFF00, 1.0
        local led_effect, led_alpha = true ,  1.0
        local alarm = 80
        local smooth = true
        local angle_rot = 45
        local radius=0
        local angle_bar=0
    
    --reminder : the order of the parameters:
    --(name, arg, max, nb_blocks, cap, xb, yb, w, h, space, bgc, bga, fgc, fga,alc,ala,alarm,led_effect,led_alpha,smooth,mid_color,mid_alpha,rotation,radius,angle_bar)    
    --[[
    --rotating bar in the middle (does not rotate as a second hand, this is just an example)
        if var==nil then var =0 end
        var=var+1
        angle=var
        radius=25
        angle_bar=45
        bar_graph('time', '%S',    60,    blocks, cap_square, x0, y0/2, w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)
    
    --two horizontal lines on the top
        w,h=10,10
        x0,y0=05,05
        s=1
        angle_bar=0    
        angle_rot=90
        
        bar_graph('fs_used_perc', '/home',    100,    70, cap_butt, x0, y0, w,h,s,0x6600FF,bga, 0x6600ff,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)
        bar_graph('fs_used_perc', '/',    100,    70, cap_round, x0, y0+25, 0,10,1,0x6600FF,bga, 0x6600ff,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,100,radius,angle_bar)
    
    --basic example : bottom left
        x0,y0 = 10,conky_window.height-10
        blocks = 20
        w,h=25,10
        s=2
        bgc,bga = 0x009933, 0.3
        fgc,fga = 0x66FF00, 1
        alc,ala = 0xFF0000, 1
        
        led_effect, led_alpha = false ,  1.0
        alarm = 80
        smooth = false
        angle_rot = 0    
    
        bar_graph('time', '%S',    60,    blocks, cap_butt, x0, y0,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)
        
    --inverse example : (on top of the previous)
        bar_graph('time', '%S',    60,    blocks, cap_butt, x0+25, 240,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,180,radius,angle_bar)
    --no "off-block" and shorter : bottom, second from left
        blocks = 15
        bgc,bga = 0x009933, 0
        
        bar_graph('time', '%S',    60,    blocks, cap_butt, x0+40, y0,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)
    
    --"led effect" example : bottom, 3rd from left
        bgc,bga = 0x009933, 0.3
        fgc,fga = 0x66FF00, 0
        alc,ala = 0xFF0000, 0
        led_effect, led_alpha = true ,  1.0
         blocks = 20
        bar_graph('time', '%S',    60,    blocks, cap_butt, x0+80, y0,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)
    
    --smooth colors example (4th)
        smooth = true
        mid_color,mid_alpha = nil, 0.5
        fgc,fga = 0x66FF00, 1
        alc,ala = 0xFF0000, 1
        
        bar_graph('time', '%S',    60,    blocks, cap_butt, x0+120, y0,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)    
    
    --smooth example with additional color in the middle (blue) :  5th
        mid_color,mid_alpha = 0x0000FF, 1
        
        bar_graph('time', '%S',    60,    blocks, cap_butt, x0+160, y0,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)    
        
    --another smooth with no colors at beginning :6 th
        fgc,fga = 0x66FF00, 0
        
        bar_graph('time', '%S',    60,    blocks, cap_butt, x0+200, y0,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)
        ]]
    --rounded cap for the lines : 7th
    
        bgc,bga = 0x009933, 0.3
        fgc,fga = 0x66FF00, 1
        alc,ala = 0xFF0000, 1
        smooth = false    
    
        
        -- 2 new lines
        x0,y0 = 10,conky_window.height-10
        angle_rot=0
        
        bar_graph('time', '%S',    60,    blocks, cap_round, x0+240, y0,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)
    --[[    
    --continuous bar (space =0) : 8th
        mid_color,mid_alpha = 0xFFFF00, 1
        s=0
        smooth = true
        
        bar_graph('time', '%S',    60,    blocks, cap_butt, x0+280, y0,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)    
        
    --continuous bar (but space = -1) : 9th
        mid_color,mid_alpha = 0xFFFF00, 1
        s=-1
        smooth = true
        bar_graph('time', '%S',    60,    blocks, cap_butt, x0+320, y0,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)    
    
    --and three rotations
        bar_graph('time', '%S',    60,    blocks, cap_butt, x0+360, y0-h,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,30,radius,angle_bar)    
        bar_graph('time', '%S',    60,    blocks, cap_butt, x0+400, y0-h,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,60,radius,angle_bar)    
        bar_graph('time', '%S',    60,    blocks, cap_butt, x0+460, y0-h,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,90,radius,angle_bar)
        
    --rounded, no space (2nd in the middle)
        s=0
        bar_graph('time', '%S',    60,    blocks, cap_round, x0+50, y0-300,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)
    ]]
    --rounded, space=2, led effect (3rd in the middle) an angle effect
        led_effect = true
        smooth = false
        bgc,bga = 0x009933, 0.2
        fgc,fga = 0xffff00,0
        alc,ala = 0x00ffff, 0
        led_effect, led_alpha = true ,  1.0    
        s=2
        angle_bar=10
        radius=5
        bar_graph('time', '%S',    60,    blocks, cap_round, x0+100, y0-350,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)
    --[[
    --the big horizontal bars in the middle
        led_effect, led_alpha = true ,  1.0    
        s=0
        h=55
        w=40
        alarm=50
        bga=0
        blocks=12
        --two widget needed to draw first bar
        bar_graph('time', '%S',    60,    blocks, cap_round, x0+110, y0-450,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,90,0,0)
        smooth =true
        bar_graph('time', '%S',    60,    blocks, cap_round, x0+110, y0-450,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,90,0,0)
        --local angle_bar=20
        --second widget, round balls
        smooth =false
        bar_graph('time', '%S',    60,    blocks, cap_round, x0+110, y0-350,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,90,0,0)    
        
    --the half circle on right bottom made with two widgets
        bgc,bga = 0x009933, 0.3
        fgc,fga = 0x66FF00, 1
        alc,ala = 0xFF0000, 1
        smooth = false    
        h=5
        x=1
        blocks=20
        radius=30
        angle_bar=90
        angle_rot=45
        alarm=80
        led_effect=false
        bar_graph('time', '%S',    60,    blocks, cap_butt, x0+600, y0-150,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)
        
        bgc,bga = 0x66FF00, 1
        fgc,fga = 0x009933, 0.3
        alc,ala = 0xFF0000, 1    
        angle_rot=135
        
        bar_graph('time', '%S',    60,    blocks, cap_butt, x0+600, y0-150,     w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)    
    
    ]]
        cairo_destroy(cr)
        cairo_surface_destroy(cs)
            
    
    end
    Error

    Code:
    deegan@deegan-jaunty:~$ conky -c .conkyrc2
    Conky: no text supplied in configuration; exiting
    Conky: X Error: type 0 Display 9a56720 XID 0 serial 19 error_code 3 request_code 61 minor_code 0 other Display: 9a56720
    
    Aborted
    ..........

  4. #12334
    Join Date
    Aug 2009
    Location
    East of Atlantic
    Beans
    81
    Distro
    Ubuntu

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by degan View Post
    Error

    Code:
    deegan@deegan-jaunty:~$ conky -c .conkyrc2
    Conky: no text supplied in configuration; exiting
    Conky: X Error: type 0 Display 9a56720 XID 0 serial 19 error_code 3 request_code 61 minor_code 0 other Display: 9a56720
    
    Aborted
    ..........
    you need at least a blank line (or a text line) in your conkyrc, after TEXT

  5. #12335
    Join Date
    Sep 2008
    Location
    Italy Varese..
    Beans
    8
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Post your .conkyrc files w/ screenshots

    Ok!!!!!!!!!!!!!!




  6. #12336
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by degan View Post
    Ok!!!!!!!!!!!!!!

    Cool, 1 problem I think though. The mem% of 39% doesn't match the graphic well

  7. #12337
    Join Date
    Sep 2008
    Location
    Italy Varese..
    Beans
    8
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Post your .conkyrc files w/ screenshots

    Small change!!!


  8. #12338
    Join Date
    Dec 2008
    Location
    The Desert
    Beans
    281
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by degan View Post
    Small change!!!

    same thing K said. your mem and wifi bars dont seem to match your percent
    I'm a super power user

  9. #12339
    Join Date
    Dec 2009
    Location
    Central Coast. Australia
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Post your .conkyrc files w/ screenshots

    Simple and easy to follow

    Conky.jpg

    be good if I could get cpu temp to work though

    Code:
    background yes
    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
    use_spacer yes
    use_xft yes
    xftfont HandelGotD:size=11
    xftalpha 0.5
    update_interval 1.0
    draw_shades no
    draw_outline no
    draw_borders no
    uppercase no
    stippled_borders 3
    border_margin 9
    border_width 10
    default_color white
    own_window_colour brown
    own_window_transparent yes
    alignment top_right
    gap_x 10
    gap_y 25
    
    TEXT
    
    ${color #E2902E}SYSTEM ${hr 2}
    
    ${color #000000}$nodename
    Ubuntu 10.04 Lucid Lynx Beta 1
    $sysname $kernel on $machine
    Uptime: $uptime_short
    
    ${color #E2902E}CPU ${hr 2}
    
    ${color #000000}Intel(R) Celeron(R) $freq_g Ghz
    
    CPU use:  $cpu %     temp: $acpitemp C
    ${cpugraph 000000 000000}
    Processes: $running_processes/$processes
    
    ${color #E2902E}RESOURCE USE ${hr 2}
    ${color #000000}
    NAME            CPU%    MEM%
    ${top name 1}${top cpu 1}  ${top mem 1}
    ${top name 2}${top cpu 2}  ${top mem 2}
    ${top name 3}${top cpu 3}  ${top mem 3}
    
    ${color #E2902E}MEMORY ${hr 2}
    
    ${color #000000}RAM: $memmax - $memperc%  
    ${membar 10}
    
    ${color #000000}Swap: $swapmax - $swapperc%  
    ${swapbar 10}
    
    ${color #E2902E}HARD DRIVES ${hr 2}
    
    ${color #000000}Home:     ${fs_used_perc /home}% Used   ${fs_free /home} Free
    ${fs_bar 10 /home}
    
    External:  ${fs_used_perc /media/JASON_160}% Used   ${fs_free /media/JASON_160} Free
    ${fs_bar 10 /media/JASON_160}
    
    ${color #E2902E}INTERNET ${hr 2}
    
    ${color #000000}Down: ${downspeed eth0}k/s ${alignr}Up: ${upspeed eth0}k/s
    ${downspeedgraph eth0 25,140 00ff00 00ff00} ${alignr}${upspeedgraph eth0 
    25,140 ff0000 ff0000}
    Total: ${totaldown eth0} ${alignr}Total: ${totalup eth0}
    ${color #E2902E} ${hr 2}
    Can now be found at: https://openlinuxforums.org thanks to this forum's style of moderation
    The pen maybe be mightier than the sword, but a slap in the face with a keyboard really F^%$ing hurts

  10. #12340
    Join Date
    Sep 2008
    Location
    Italy Varese..
    Beans
    8
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by djyoung4 View Post
    same thing K said. your mem and wifi bars dont seem to match your percent
    This doubt has also come me to mè

    It looks at the.lua

    Code:
    bar_graph('wireless_link_qual', 'wlan0',	60,	blocks, cap_round, x0+20, y0-200, 	w,h,s,bgc,bga, fgc,fga, alc,ala, alarm, led_effect, led_alpha,smooth,mid_color,mid_alpha,90,0,0)
    You should be correct.....

Page 1234 of 2348 FirstFirst ... 2347341134118412241232123312341235123612441284133417342234 ... 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
  •