Page 1250 of 2348 FirstFirst ... 2507501150120012401248124912501251125212601300135017502250 ... LastLast
Results 12,491 to 12,500 of 23480

Thread: Post your .conkyrc files w/ screenshots

  1. #12491
    Join Date
    Jan 2009
    Location
    Wichita, KS
    Beans
    50
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by lpb331 View Post
    Perhaps someone could help me with my conky problem. I have three scripts whose output I display in conky: conkyweatherscript3.sh, checkgmail2.py, and archpacconky4.sh. If I run any of them in a bash shell, each of them reports the desired info. However, when using execi in conky, only the archpacconky4.sh script output is shown, and the other two output nothing in conky. Running conky -DD gives me no help. I have set text_buffer_size to 4096, so I don't think that is the problem. I am running conky 1.8.0 in KDE 4.4. Any ideas?
    Without seeing the involved scripts and conkyrc's, the only thing that I can think of the location of the scripts that are not coming up. For instance, if you have the scripts saved in a folder called "conky_scripts" but the path in not in the execi section, conky will not output anything and will also not give you an error or anything. You have to make sure the correct path in the execi: ${execi 60 ~/conky_scripts/checkgmail2.py}
    "Gods are fragile things; they may be killed by a whiff of science or a dose of common sense." - Chapman Cohen

    Registered Linux User #495248 / Registered Ubuntu User #28596

  2. #12492
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by lpb331 View Post
    Perhaps someone could help me with my conky problem. I have three scripts whose output I display in conky: conkyweatherscript3.sh, checkgmail2.py, and archpacconky4.sh. If I run any of them in a bash shell, each of them reports the desired info. However, when using execi in conky, only the archpacconky4.sh script output is shown, and the other two output nothing in conky. Running conky -DD gives me no help. I have set text_buffer_size to 4096, so I don't think that is the problem. I am running conky 1.8.0 in KDE 4.4. Any ideas?
    You may need to use execpi instead of execi.
    The mark of an honest man ... is that he means what he says and knows what he means.
    A.R.

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

    Re: Post your .conkyrc files w/ screenshots

    Boys, help that I don't succeed in making to depart this.lua? Thanks

    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 desktop
    #own_window_transparent yes
    #own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
    own_window_title audio spectrum for conky
    
    border_inner_margin 0
    border_outer_margin 0
    
    minimum_size 400 400
    
    alignment tr
    gap_x 0
    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=12
    xftalpha 0.8
    
    uppercase no
    
    default_color FFFFFF
    
    
    # -- Lua Load -- #
    #set FULL path of the script
    lua_load  ~/Scrivania/audio_spectrum1.2/audio_spectrum.lua
    
    
    #arguments for the spectrum function are:
    #theme		: default, circle or widget
    #x, y		: (from top left corner of conky window)
    			  #x,y are left bottom of graph for default or widget
    			  #x,y are center of circle for circle _equalizer
    #fft 		: (0/1) 1 to perfom a FTT analysis on audio
    #nb_cols 	: (1-255)
    #col_width	: (>0)	  
    #col_spacing: (>=0)
    #nb_rows	: (>0)
    #row_height	: (>0)
    #row_spacing: (>=0), 
    
    #next arguments are only for default and circle 
    #bar_color		: color of bars in the graph
    #bar_alpha		: (0-1) alpha of bars in the graph
    #peak_color		: color for peak in the graph
    #peak_alpha		:(0-1)
    
    #next argument is only for circle and for widget on circle
    #radius 		: (>0) radius of circle
    
    
    
    # reminder, arguments on one line:
    # x,y, fft, nb_cols, col_width,col_spacing,nb_rows,row_height,row_spacing [,bar_color,bar_alpha,peak_color, peak_alpha [, radius]]
    
    
    ##### DON'T USE TABULATION BETWEEN ARGUMENTS, JUST SPACES #####
    
    #example for a circle
    #lua_draw_hook_pre spectrum   circle   200 200   1   100 10 2   100 2 2   0000FF 0.5 FF0000 1   25
    #lua_draw_hook_pre spectrum   circle   200 200   1   20 10 2    20 5 0    0000FF 0.5 FF0000 1   25
    
    #example for a bar graph
    lua_draw_hook_pre spectrum    default  10 300    1   50 10 2    10 5 2    FF00FF 0.5 FFFF00 1
    
    #for bargraph widget, colors and other parameters have to be set in the spectrum function in the lua script
    #because they are too many
    #bargraph widget on circle
    #lua_draw_hook_pre spectrum widget 200 200 1 25 10 0 10 5 -1 nil nil nil nil 25
    #bargraph widget on line
    #lua_draw_hook_pre spectrum widget 10 300 1 20 10 1 10 4 1 
    #lua_draw_hook_pre spectrum widget 10 300 1 30 10 2 20 5 2   
    
    #lua_draw_hook_pre mytest
    TEXT
    Rhythmbox
    Code:
    require 'cairo'
    
    --[[AUDIO SPECTRUM ANALYSER by wlourf 10 March 2010 http://u-scripts.blogspot.com/
    	It use some librairies and some portions of code from Impulse Screenlet for gnome.
    	Thanks to Ian Halpern http://impulse.ian-halpern.com/ for this ;-)
    	
    	Requirements
    	libfftw3-3 libpulse0
    	
    	You also need impulse.so and libimpulse.so from Impulse project (they are in the equalizer.tar.gz archive)
    	Save them in this script folder.
    	
    	(The impulse library creates a pulse audio connection context that reads the output stream from pulseaudio 
    	in a thread natively which can then be read from python.
    	You can specify impulse to either output the raw stream or output the fft of the raw stream.)
    	
    	v1.0 21 Feb. 2010 
    	v1.1 28 Feb. 2010 integration of Bargraph widget + use of a pipe for the python script
    	v1.2 10 March 2010 integration of Bargraph widget 1.3 with circular widget
    	  				   the conky can be call with absolute path : conky -c /path/conkyrc
    ]]
    
    
    
    --[[ 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
    
    
    
    -----------------------END OF BARGRAPH WIDGET --------------------
    
    
    
    
    
    
    
    ------------[[ two useful functions ]]------------------
    
    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 rgb_to_r_g_b(colour,alpha)
    	return {((colour / 0x10000)% 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255.,alpha}
    end
    
    ------------[[ end of two useful functions ]]------------------
    
    
    
    ------------ HERE ARE THE THEMES -----------------------------
    ---------Function which call the bargraph widget
    
    function draw_widget(x,y,audio_sample_array,n_cols,col_width,col_spacing, n_rows, row_height , row_spacing,radius)
    
    	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=col_width,row_height
    	local s=row_spacing
    	local bgc,bga = 0x666666, 0.5
    	local fgc,fga = 0x0000FF, 1
    	local alc,ala = 0xFF0000, 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 = 0
    	local angle_bar=360/n_cols
    
    	freq = #audio_sample_array / n_cols
    	
    	last_i=1
    	local col_n=0
    	
    	for i=math.floor(freq),#audio_sample_array, freq do 
    
    		i=math.floor(i)
    		--sometimes first col = 1, first col has to be set to 0 with the offset "col_min" 
    		col = math.floor(i / freq)
    		if i==math.floor(freq) then col_min = col end
    		col=col-col_min
    
    		--sum all the frequencies in the range
    		local sum=0
    		local idx=0
    		for j=last_i,i do
    			if audio_sample_array[j] == nil then audio_sample_array[j]=0 end
    			sum=sum+audio_sample_array[j]
    			idx=idx+1
    		end
    		--sum = sum / (i-last_i+1)
    		if sum>1 then sum=1 end
    		last_i=i+1
    		rows = math.floor( sum * n_rows )
    
    		if rows > peak_heights[i] then
    			peak_heights[i] = rows
    			peak_acceleration[i] = 0
    		else
    			peak_acceleration[ i ] = peak_acceleration[ i ] + .1
    			peak_heights[ i ] = peak_heights[ i ] - peak_acceleration[ i ]
    		end
    		
    		if peak_heights[ i ] < 0 then
    			peak_heights[ i ] = 0
    		end
    
    		local xb=x + col_n * ( w+col_spacing )
    		local yb=y -- h+row_spacing 
    	
    		--reminder 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)		
    		if radius==nil then radius=0 end
    		if radius==0 then
    		bar_graph('', rows, n_rows, blocks, cap_butt, xb, yb, w, h, row_spacing, bgc, bga, fgc, fga,alc,ala,alarm,led_effect,led_alpha,
    				smooth,mid_color,mid_alpha,angle_rot,0,0)
    		else
    			bar_graph('', rows, n_rows, blocks, cap_butt, x, y, w, h, row_spacing, bgc, bga, fgc, fga,alc,ala,alarm,led_effect,led_alpha,
    				smooth,mid_color,mid_alpha,angle_rot,radius,angle_bar)
    			angle_rot=angle_rot+angle_bar
    		end		
    		col_n=col_n+1
    	end
    	
    end
    
    
    
    
    --Function which draw the circle equalizer
    
    function draw_circle_lcd(x,y,radius,audio_sample_array,n_cols,col_width,col_spacing, n_rows, row_height , row_spacing , bar_ca, peak_ca, radius)
    
    	freq = #audio_sample_array / n_cols
    	l = #audio_sample_array
    	last_i=1
    	
    	cairo_set_line_width(cr, row_height)
    
    	for i=1, n_cols do  
    
    		--sum all the frequencies in the range
    		local sum=0
    		for j=last_i,i*freq do
    			j=math.floor(j)
    			if audio_sample_array[j] == nil then audio_sample_array[j]=0 end
    			sum=sum+audio_sample_array[j]
    		end
    		last_i=i*freq+1
    		if sum>1 then sum=1 end
    		rows = math.floor( sum * n_rows )
    
    		cairo_set_source_rgba(cr, bar_ca[ 1 ], bar_ca[ 2 ], bar_ca[ 3 ], bar_ca[ 4 ] )
    
    		if rows > peak_heights[i] then
    			peak_heights[i] = rows
    			peak_acceleration[i] = 0
    		else
    			peak_acceleration[ i ] = peak_acceleration[ i ] + .1
    			peak_heights[ i ] = peak_heights[ i ] - peak_acceleration[ i ]
    		end
    		if peak_heights[ i ] < 0 then
    			peak_heights[ i ] = 0
    		end
    		--print (sum, n_rows, rows)
    		for row=0,rows do
    			cairo_arc( cr,
    				x,
    				y,
    				radius+(row_height+row_spacing)*(row+1),
    				( math.pi*2 / n_cols ) * ( i + col_spacing/col_width),
    				( math.pi*2 / n_cols ) * ( i + 1 )
    			)
    			cairo_stroke(cr)
    		end
    		cairo_set_source_rgba(cr, peak_ca[ 1 ], peak_ca[ 2 ], peak_ca[ 3 ], peak_ca[ 4 ] )
    			cairo_arc( cr,
    				x,
    				y,
    				radius+(row_height+row_spacing)*(1+peak_heights[ i ]) , --(rows+1),
    				( math.pi*2 / n_cols ) * ( i + col_spacing/col_width),
    				( math.pi*2 / n_cols ) * ( i + 1 )
    			)
    
    		cairo_stroke(cr)
    	end
    end
    
    ---fucntion which draw a regular equalizer
    
    function draw_default(x,y,audio_sample_array,n_cols,col_width,col_spacing, n_rows, row_height , row_spacing , bar_ca, peak_ca)
    
    	freq = #audio_sample_array / n_cols
    	
    	last_i=1
    	
    	for i=math.floor(freq),#audio_sample_array, freq do 
    
    		i=math.floor(i)
    		--sometimes first col = 1, first col has to be set to 0 with the offset "col_min" 
    		col = math.floor(i / freq)
    		if i==math.floor(freq) then col_min = col end
    		col=col-col_min
    
    		--sum all the frequencies in the range
    		
    		local sum=0
    		local idx=0
    		for j=last_i,i do
    			if audio_sample_array[j] == nil then audio_sample_array[j]=0 end
    			sum=sum+audio_sample_array[j]
    			idx=idx+1
    		end
    		if sum>1 then sum=1 end
    		last_i=i+1
    		rows = math.floor( sum * n_rows )
    
    		cairo_set_source_rgba(cr, bar_ca[ 1 ], bar_ca[ 2 ], bar_ca[ 3 ], bar_ca[ 4 ] )
    
    		if rows > peak_heights[i] then
    			peak_heights[i] = rows
    			peak_acceleration[i] = 0
    		else
    			peak_acceleration[ i ] = peak_acceleration[ i ] + .1
    			peak_heights[ i ] = peak_heights[ i ] - peak_acceleration[ i ]
    		end
    		if peak_heights[ i ] < 0 then
    			peak_heights[ i ] = 0
    		end
    
    		for row=0,rows do
    			cairo_rectangle(cr,
    				x + col * ( col_width + col_spacing ),
    				y - row * ( row_height + row_spacing ),
    				col_width, -row_height
    			)
    		end
    		cairo_fill(cr )
    		cairo_set_source_rgba(cr, peak_ca[ 1 ], peak_ca[ 2 ], peak_ca[ 3 ], peak_ca[ 4 ] )
    
    		cairo_rectangle(cr,
    			x + col * ( col_width + col_spacing ),
    			y - peak_heights[ i ] * ( row_height + row_spacing ),
    			col_width, -row_height
    		)
    
    		cairo_fill(cr )
    	end
    end
    
    
    --End of 'themes'
    
    
    
    
    --Main function here
    
    function conky_spectrum(theme, x, y, fft, n_cols, col_width, col_spacing, n_rows, row_height, row_spacing, bar_color, bar_alpha, peak_color, peak_alpha,radius)
    	if conky_window == nil then return end
    	
    	
    	--this is a global variable
    	if impulse_pipe == nil then
    		local s=conky_config
    		local pos=(s:reverse(s)):find("/")
    		if pos==nil then pos=0 end
    		lua_script_dir= s:sub(1 ,#s-pos+1)
    
    		impulse_pipe = io.popen('python ' .. lua_script_dir .. 'impulse.py ' .. fft .. ' ' .. lua_script_dir, "r")
    
    		peak_heights = {}
    		peak_acceleration = {}
    		for i =1,255 do
    			peak_heights[i] = 0
    			peak_acceleration[i] = 0
    		end	
    
    	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 impulse =  impulse_pipe:read()
    	--print (impulse)
    	
    	if impulse=="-1" then
    		print ("Argument missing")
    	else
    		if bar_color  == "nil" then bar_color = nil  end
    		if bar_alpha  == "nil" then bar_alpha = nil  end
    		if peak_color == "nil" then peak_color = nil end
    		if peak_alpha == "nil" then peak_alpha = nil end
    		
    		if bar_color ~=nil and bar_alpha ~=nil then
    			bar_color_alpha= rgb_to_r_g_b("0x" .. bar_color,bar_alpha)
    		end
    		if peak_color ~=nil and peak_alpha ~=nil then
    			peak_color_alpha= rgb_to_r_g_b("0x" .. peak_color,peak_alpha)
    		end
    		
    		impulse=string.sub(impulse, 2, -2)
    		local audio_sample_array = string.split(impulse,",")
    
    		if theme=="circle" then
    			draw_circle_lcd(x,y,radius,audio_sample_array,n_cols,col_width,col_spacing, n_rows, row_height ,
    				row_spacing , bar_color_alpha, peak_color_alpha,radius)
    		elseif theme=="widget" then
    			draw_widget (x,y,audio_sample_array,n_cols,col_width,col_spacing, n_rows, row_height , row_spacing, radius)
    		else
    			draw_default(x,y,audio_sample_array,n_cols,col_width,col_spacing, n_rows, row_height , row_spacing , 
    				bar_color_alpha, peak_color_alpha)
    		end
    
    	end
    	
    	cairo_destroy(cr)
    	cairo_surface_destroy(cs)
    		
    end
    ERROR

    Code:
    deegan@lucid-lynx:~$ conky -c .conkyrc2
    Conky: .conkyrc2: 65: no such configuration: 'bargraph'
    Conky: desktop window (1e000c1) is subwindow of root window (a5)
    Conky: window type - normal
    Conky: drawing to created window (0x4a00001)
    Conky: drawing to double buffer
    python: can't open file '.conkyrc2impulse.py': [Errno 2] No such file or directory
    Conky: llua_do_call: function conky_spectrum execution failed: ...eegan/Scrivania/audio_spectrum1.2/audio_spectrum.lua:468: bad argument #1 to 'sub' (string expected, got nil)
    Conky: llua_do_call: function conky_spectrum execution failed: ...eegan/Scrivania/audio_spectrum1.2/audio_spectrum.lua:468: bad argument #1 to 'sub' (string expected, got nil)
    Conky: llua_do_call: function conky_spectrum execution failed: ...eegan/Scrivania/audio_spectrum1.2/audio_spectrum.lua:468: bad argument #1 to 'sub' (string expected, got nil)
    Conky: llua_do_call: function conky_spectrum execution failed: ...eegan/Scrivania/audio_spectrum1.2/audio_spectrum.lua:468: bad argument #1 to 'sub' (string expected, got nil)

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

    Re: Post your .conkyrc files w/ screenshots

    hello Deegan,
    I think you didn't read the README ...
    Try to run the conky with
    Code:
    conky -c /path/to/the/conky/conkyrc
    someting like
    Code:
    conky -c ~/Scrivania/audio_spectrum1.2/conkyrc
    on your computer !

    Don't do that :
    Code:
    cd ~/Scrivania/audio_spectrum1.2
    conky -c conkyrc
    or change the lua_load_line according to the README.
    Bye

  5. #12495
    Join Date
    Apr 2010
    Beans
    3

    Talking Re: Post your .conkyrc files w/ screenshots

    this is a long one, because I have openbox and I like the right-click menu.

    Code:
    # UBUNTU-CONKY
    # A comprehensive conky script, configured for use on
    # Ubuntu / Debian Gnome, without the need for any external scripts.
    #
    # Based on conky-jc and the default .conkyrc.
    # INCLUDES:
    # - tail of /var/log/messages
    # - netstat shows number of connections from your computer and application/PID making it. Kill spyware!
    #
    # -- Pengo
    # 
     
    # Create own window instead of using desktop (required in nautilus)
    #own_window yes
    #own_window_type normal
    #own_window_transparent yes
    #own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
     
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes
     
    # fiddle with window
    use_spacer right
    
    # Use Xft?
    use_xft yes
    xftfont DejaVu Sans:size=8
    xftalpha 0.8
    text_buffer_size 2048
     
    # Update interval in seconds
    update_interval 0.5
     
    # Minimum size of text area
    minimum_size 2540 500
    #maximum_width 470
     
    # Draw shades?
    draw_shades yes
     
    # Text stuff
    draw_outline no # amplifies text if yes
    draw_borders no
    uppercase no # set to yes if you want all text to be in uppercase
     
    # Stippled borders?
    stippled_borders 3
     
    # border margins
    border_inner_margin 9
     
    # border width
    border_width 10
     
    # Default colors and also border colors, grey90 == #e5e5e5
    default_color grey
    default_shade_color black
     
    #own_window_colour grey
    #own_window_transparent yes
     
    # 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
    gap_x 10
    gap_y 10
     
    # stuff after 'TEXT' will be formatted on screen
     
    TEXT
    $color
    ${font Monospace:pixelsize=45}
    ${execi 120 /home/shua/.config/conky/scripts/fortunespacer.sh mint-fortune -s | head -n 16}${font}$color
    #${font Monospace:pixelsize=45}${execi 120 mint-fortune -s}${font}$color
    
    ${color orange}${font Dejavu Sans:style=Bold:pixelsize=50}${time %H:%M}$color${font}
    ${font DejaVu Sans:pixelsize=20}${time %A}, ${time %B %d}${font}
    
    ${voffset -800}${offset 1280}${color #007FFF}${font PizzaDude Bullets:size=17}T${font Dejavu Sans:size=17}FACEBOOK${font PizzaDude Bullets:size=17}T
    ${offset 1300}${color orange}${font Poky:size=17}m${font} NOTIFICATIONS${font}$color
    ${offset 1320}${execi 120 fbcmd NOTIFY | tail -n 6}
    
    ${offset 1300}${color orange}${font Webdings:size=17}\#${font} FRIENDS ONLINE${font}$color
    ${offset 1320}${execi 120 /home/shua/.config/conky/scripts/fortunespaceless.sh fbcmd FONLINE | tail -n +2 | head -n 12}
    
    ${offset 1300}${color orange}${font Webdings:size=17}i${font} STATUS UPDATES${font}$color
    ${offset 1320}${execi 120 /home/shua/.config/conky/scripts/fortunespacer.sh fbcmd FSTREAM =all 10 | grep "post" |  head -n 10}
    
    
    
    ${offset 1280}${color red}${font PizzaDude Bullets:size=17}T${font Dejavu Sans:size=17}GMAIL${font PizzaDude Bullets:size=17}T
    ${offset 1300}${color orange}${font PizzaDude Bullets:size=17}a${font} NEW ${color}
    ${offset 1320}${execpi 300 perl /home/shua/.config/conky/scripts/gmail/gmail.pl e && echo "
    
    
    
    
    
    
    
    
    
    " | head -n 10}
    
    ${voffset -900}${offset 1780}${color orange}${font ConkyWeather:style=Bold:size=100}${execi 600 conkyForecast --location=USSC0065 --datatype=WF --imperial}${font}
    ${offset 1810}${alignc}${font DejaVu Sans:style=Bold:size=10}${execi 600 conkyForecast --location=USSC0065 --datatype=HT --imperial}/${execi 600 conkyForecast --location=USSC0065 --datatype=LT --imperial}
    ${offset 1810}${alignc}${execi 600 conkyForecast --location=USSC0065 --datatype=DW --imperial}$color
    
    ${offset 1795}${font ConkyWeather:style=Bold:size=50}${execi 600 conkyForecast --location=USSC0065 --datatype=WF --startday=1 --imperial}${font DejaVu Sans:size=10}
    ${offset 1810}${alignc}${execi 600 conkyForecast --location=USSC0065 --datatype=HT --startday=1 --imperial}/${execi 600 conkyForecast --location=USSC0065 --datatype=LT --startday=1 --imperial}
    ${offset 1810}${alignc}${execi 600 conkyForecast --location=USSC0065 --datatype=DW --startday=1 --imperial}
    
    ${offset 1795}${font ConkyWeather:style=Bold:size=50}${execi 600 conkyForecast --location=USSC0065 --datatype=WF --startday=2 --imperial}${font DejaVu Sans:size=10}
    ${offset 1810}${alignc}${execi 600 conkyForecast --location=USSC0065 --datatype=HT --startday=2 --imperial}/${execi 600 conkyForecast --location=USSC0065 --datatype=LT --startday=2 --imperial}
    ${offset 1810}${alignc}${execi 600 conkyForecast --location=USSC0065 --datatype=DW --startday=2 --imperial}
    
    ${offset 1795}${font ConkyWeather:style=Bold:size=50}${execi 600 conkyForecast --location=USSC0065 --datatype=WF --startday=3 --imperial}${font DejaVu Sans:size=10}
    ${offset 1810}${alignc}${execi 600 conkyForecast --location=USSC0065 --datatype=HT --startday=3 --imperial}/${execi 600 conkyForecast --location=USSC0065 --datatype=LT --startday=3 --imperial}
    ${offset 1810}${alignc}${execi 600 conkyForecast --location=USSC0065 --datatype=DW --startday=3 --imperial}
    
    ${offset 1795}${font ConkyWeather:style=Bold:size=50}${execi 600 conkyForecast --location=USSC0065 --datatype=WF --startday=4 --imperial}${font DejaVu Sans:size=10}
    ${offset 1810}${alignc}${execi 600 conkyForecast --location=USSC0065 --datatype=HT --startday=4 --imperial}/${execi 600 conkyForecast --location=USSC0065 --datatype=LT --startday=4 --imperial}
    ${offset 1810}${alignc}${execi 600 conkyForecast --location=USSC0065 --datatype=DW --startday=4 --imperial}
    
    ${offset 1795}${font ConkyWeather:style=Bold:size=50}${execi 600 conkyForecast --location=USSC0065 --datatype=WF --startday=5 --imperial}${font DejaVu Sans:size=10}
    ${offset 1810}${alignc}${execi 600 conkyForecast --location=USSC0065 --datatype=HT --startday=5 --imperial}/${execi 600 conkyForecast --location=USSC0065 --datatype=LT --startday=5 --imperial}
    ${offset 1810}${alignc}${execi 600 conkyForecast --location=USSC0065 --datatype=DW --startday=5 --imperial}
    
    ${offset 1795}${font ConkyWeather:style=Bold:size=50}${execi 600 conkyForecast --location=USSC0065 --datatype=WF --startday=6 --imperial}${font DejaVu Sans:size=10}
    ${offset 1810}${alignc}${execi 600 conkyForecast --location=USSC0065 --datatype=HT --startday=6 --imperial}/${execi 600 conkyForecast --location=USSC0065 --datatype=LT --startday=6 --imperial}
    ${offset 1810}${alignc}${execi 600 conkyForecast --location=USSC0065 --datatype=DW --startday=6 --imperial}${font}
    
    #-------------------------------3rd column-----------------------------------------
    
    ${voffset -900}${offset 2000}${color orange}${font Poky:size=15}x${font}SYSTEM ${hr 2}$color
    ${offset 2000}$nodename $sysname $kernel on $machine
    ${offset 2000}Uptime: $uptime
    
    ${offset 2000}${color orange}${font Poky:size=15}a${font}CPU ${hr 2}$color
    ${offset 2000}${freq}MHz   Load: ${loadavg}   Temp: ${acpitemp}
    ${offset 2000}$cpubar
    ${offset 2000}${cpugraph 000000 ffffff}
    ${offset 2000}NAME             PID       CPU%      MEM%
    ${offset 2000}${top name 1} ${top pid 1}   ${top cpu 1}    ${top mem 1}
    ${offset 2000}${top name 2} ${top pid 2}   ${top cpu 2}    ${top mem 2}
    ${offset 2000}${top name 3} ${top pid 3}   ${top cpu 3}    ${top mem 3}
    ${offset 2000}${top name 4} ${top pid 4}   ${top cpu 4}    ${top mem 4}
    ${offset 2000}${color orange}${font Poky:size=15}f${font}MEMORY / DISK ${hr 2}$color
    ${offset 2000}RAM:   $memperc%   ${membar 6}$color
    ${offset 2000}Swap:  $swapperc%   ${swapbar 6}$color
     
    #Root:  ${fs_free_perc /}%   ${fs_bar 6 /}$color 
    #hda1:  ${fs_free_perc /media/sda1}%   ${fs_bar 6 /media/sda1}$color
    ${offset 2000}Root    ${fs_used /}/${fs_size /}${alignr}${fs_bar 6,200 /}$color
    ${offset 2000}Home    ${fs_used /home}/${fs_size /home}${alignr}${fs_bar 6,200 /home}$color
    ${offset 2000}Usr    ${fs_used /usr}/${fs_size /usr}${alignr}${fs_bar 6,200 /usr}$color
    ${offset 2000}Var    ${fs_used /var}/${fs_size /var}${alignr}${fs_bar 6,200 /var}$color
    
    ${offset 2000}Music    ${fs_used /media/music}/${fs_size /media/music}${alignr}${fs_bar 6,200 /media/music}$color
     
    ${offset 2000}${color orange}${font Poky:size=15}w${font}NETWORK (${addr eth0}) ${hr 2}$color
    ${offset 2000}Down: $color${downspeed eth0} k/s ${alignr}Up: ${upspeed eth0} k/s
    ${offset 2000}${downspeedgraph eth0 25,200 000000 ff0000} ${alignr}${upspeedgraph eth0 25,200 000000 00ff00}$color
    ${offset 2000}Total: ${totaldown eth0} ${alignr}Total: ${totalup eth0}
    ${offset 2000}${execi 30 netstat -ept | grep ESTAB | awk '{print $9}' | cut -d: -f1 | sort | uniq -c | sort -nr}
    
    ${offset 2000}${color orange}${font Poky:size=15}n${font}LOGGING ${hr 2}$color
    ${offset 2000}${execi 30 tail -n3 /var/log/messages | awk '{print " ",$5,$6,$7,$8,$9,$10}' | fold -w50}
    
    ${offset 1996}${color orange}${font PizzaDude Stars:size=20}z${font}MPRIME ${hr 2}$color
    ${offset 2000}${execi 1 tail /home/shua/.config/conky/scripts/mprime/mprime.txt}
    I'm still working on the colors. fortunespacer.sh just adds newlines to fortune, then I head it to the length I want so different spaced fortunes don't mess up my voffset stuff but for some reason, it didn't work on the gmail script, so I did it manually.
    Also, I couldn't get fbcmd RECENT to work so I just did FSTREAM, and formatted it myself.
    Lastly, the mprime script I run just runs mprime, and tees it off to mprime.txt, where conky cat and head's it. It runs when I log in.

    I'm proud of it anyway.
    Attached Images Attached Images
    Last edited by shua; April 25th, 2010 at 05:38 AM.

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

    Re: Post your .conkyrc files w/ screenshots

    #wlourf

    Do you know that I don't succeed in understanding how to do?
    I have extracted the briefcase "audio_spectrum1.2 and mass in.scripts

    It is in the.conkyrc I have modified this way:
    Code:
    # — SETTINGS — #
    background no
    update_interval 0.1    #0.5
    cpu_avg_samples 2
    net_avg_samples 2
    double_buffer yes
    no_buffers yes
    text_buffer_size 1920
    imlib_cache_size 0
    
    # — WINDOW — #
    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
    
    # — BORDER — #
    border_inner_margin 1
    border_outer_margin 0
    
    # — SIZE — #
    minimum_size 1920
    maximum_width 1920
    
    # — ALIGNMENT — #
    alignment bottom_left
    gap_x 4
    gap_y -10
    
    # — GRAPHIC — #
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders no
    #default_bar_size 40 8
    #default_shade_color
    own_window_colour 333
    
    # — TEXT — #
    use_xft yes
    xftfont Dejavu Sans:size=8:condensed
    xftalpha 1.0
    uppercase no
    override_utf8_locale yes
    default_color ecedee
    
    # — Colors — # 
    color1 606060
    
    ##### -- Lua Load -- #####
    
    lua_load ~/.scripts/audio_spectrum1.2/audio_spectrum.lua
    lua_draw_hook_pre spectrum    default  10 300    1   50 10 2    10 5 2    FF00FF 0.5 FFFF00 1
    
    
    
    #lua_draw_hook_pre mytest
    #lua_load  lua_load ~/.scripts/audio_spectrum1.2/audio_spectrum.lua
    #${image /home/deegan/avatar.jpg -s 80x80 -p 1833,0}
    
    TEXT
    ${goto 10}${voffset 10}${font LT Sweet Nothings:size=40}o${voffset -30}${font Impact:size=25}${goto 80}Lucid${goto 220}${voffset -7}${font StyleBats:size=17}h${font}${voffset -4} Gnome ${pre_exec gnome-about --gnome-version | head -n 1 | awk '{print $2}'}${goto 200}${voffset -7}${font Poky:size=13}P${font}${goto 340}${voffset -8}${font PizzaDude Bullets:size=13}q${font}${offset 5}Ram $memperc%  $memmax ${goto 480}${voffset -3}${font PizzaDude Bullets:size=13}a${font}${offset 10}Root U. ${fs_used_perc /}% ${fs_used /}${voffset -8}${goto 630}${font Conky:size=17}i${font} Kernel  $kernel${goto 820}${voffset -8}${font Poky:size=13}a${font}${offset 5}${running_processes} Of ${processes}${font Dejavu Sans:size=7}${voffset -18}${goto 1780}${font Impact:size=25}${time %H.%M.%S}
    ${goto 90}${voffset -19} ${font Impact:size=15}Lynx${goto 200}${goto 200}${voffset -5}${font PizzaDude Bullets:size=13}n${font}${voffset 3} Root F. ${fs_free_perc}%  ${fs_free /}${goto 360}${voffset -4}${font Devil inside:size=15}i${font}${voffset -3}${execpi 2 iwconfig wlan0 | line 1 | cut -c32-45}  ${execpi 2 cat /sys/class/net/wlan0/wireless/link}%  ${goto 520}${voffset -4}${font PizzaDude Bullets:size=13}r${font}${offset 5}${downspeed wlan0} - ${upspeed wlan0}${goto 660}Hdd Temp ${hddtemp /dev/sda}°${goto 780}Conky Version $conky_version  ${goto 920}${voffset -32}${font Rock Star 2.0:size=38}k${font Impact:size=12}${if_running rhythmbox}   Rhythmbox sound ${font Dejavu Sans:size=9:condensed}${voffset -3}${goto 1110}${exec rhythmbox-client --no-start --print-playing-format "%ta"}    ${alignc}${exec rhythmbox-client --no-start --print-playing-format "%tt"}       ${exec rhythmbox-client --no-start --print-playing-format "%te/%td"}${else}  Rhythmbox Closed $endif ${voffset -4}${goto 1810}${font Impact:size=10}${time %A}
    ${font Impact:size=10}${voffset 1}${goto 1800}${time %d  %B  %Y}${font Snap.se:size=8}
    ${voffset -40}
    But still gives me error!!!!

    Excuse me if I don't succeed in understanding......

  7. #12497
    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
    But still gives me error!!!!

    Excuse me if I don't succeed in understanding......
    Try reading the errors, they usually tell you what is wrong...if you use your noodles to get around each issue you see you'll eventually get it working, also try back tracking what you've done against the README...

    In the second from last post there was an error because of a missing file, did you fix that problem? Probably a path related issue due to not following the README correctly.

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

    Re: Post your .conkyrc files w/ screenshots

    Yet the directory is correct!!!

    http://upload.centerzone.it/viewer.p...5048358731.png


    deegan@lucid-lynx:~$ cd /home/deegan/.scripts/audio_spectrum1.2
    deegan@lucid-lynx:~/.scripts/audio_spectrum1.2$ ls
    audio_spectrum.lua conkyrc impulse.py impulse.so libimpulse.so README

  9. #12499
    Join Date
    Jan 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by degan View Post
    Yet the directory is correct!!!
    Really? I wonder... error from before
    Code:
    Conky: drawing to double buffer
    python: can't open file '.conkyrc2impulse.py': [Errno 2] No such file or directory
    Conky: llua_do_call: function conky_spectrum execution failed: ...eegan/Scrivania/audio_spectrum1.2/audio_spectrum.lua:468: bad argument #1 to 'sub' (string expected, got nil)
    and ls
    Code:
    deegan@lucid-lynx:~$ cd /home/deegan/.scripts/audio_spectrum1.2
    deegan@lucid-lynx:~/.scripts/audio_spectrum1.2$ ls
    audio_spectrum.lua  conkyrc  impulse.py  impulse.so  libimpulse.so  README
    how this is this same and path is correct?
    Linux Debian Sid (Minted) x86_64/3.12.10, Conky 2.0_pre, Xorg 7.7/1.15.0, KDE 4.11.5, Lenovo T61, Intel X3100, HITACHI HTS722010K9SA00 100GB, WDC_WD5000BEVT 500GB
    Linux user No.: 483055 | My Conky Pitstop corner | One4All project

  10. #12500
    Join Date
    Sep 2007
    Beans
    13
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Post your .conkyrc files w/ screenshots

    Sorry for taking so long to reply; I went out of town and the internet didn't work so well. Anyway, thanks ddnev45; that solved the problem. I didn't need execpi for previous versions of conky so I didn't think I'd need it now! Below is my conky script and a picture of it. I use three external scripts; one for gmail, one for weather, and one for seeing the latest updates to Arch Linux. If anyone wants one of these let me know!
    Attached Images Attached Images
    Attached Files Attached Files

Page 1250 of 2348 FirstFirst ... 2507501150120012401248124912501251125212601300135017502250 ... 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
  •