Page 997 of 2317 FirstFirst ... 49789794798799599699799899910071047109714971997 ... LastLast
Results 9,961 to 9,970 of 23164

Thread: Post your .conkyrc files w/ screenshots

  1. #9961
    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 Bruce M. View Post
    We have you hooked now!!!!
    {evil background chuckling}



    Welcome to the nightmare of "setting it up"!

    You will need to use a lot of ${voffset}'s, ${goto}'s and/or ${offset}'s to get things working right. Check this out: ${goto}, ${offset} & ${voffset} and as I always say:


    Check out the Gallery at Conky Hardcore!, there are some wonderful samples of one liners going across the screen. My latest is very busy and goes across the top - it took a few days to get that one right.

    I did that in sections down the left. then I moved a section closer to the middle with a ${goto xx} at the start of each line in the section. Once it was just below where I wanted it I moved it up with a ${voffset -xx} at the beginning of the fist line of the section, the rest come up with it.

    See the first attached image, notice how Section 3 has moved up under Section 1 with just one ${voffset -65} command on the first Section 2 line.

    Finishing off the code - moving Section 2 closer to Section 1 and Section 3 over and up we get the second image.

    Code:
    TEXT
      Line 1 Section 1 - commands and text here
      Line 2 Section 1 - commands and text here
      Line 3 Section 1 - commands and text here
      Line 4 Section 1 - commands and text here
      Line 5 Section 1 - commands and text here
    ${voffset -65}${goto 265}  Line 1 Section 2 - commands and text here
    ${goto 265}  Line 2 Section 2 - commands and text here
    ${goto 265}  Line 3 Section 2 - commands and text here
    ${goto 265}  Line 4 Section 2 - commands and text here
    ${goto 265}  Line 5 Section 2 - commands and text here
    ${voffset -65}${goto 530}  Line 1 Section 3 - commands and text here
    ${goto 530}  Line 2 Section 3 - commands and text here
    ${goto 530}  Line 3 Section 3 - commands and text here
    ${goto 530}  Line 4 Section 3 - commands and text here
    ${goto 530}  Line 5 Section 3 - commands and text here
    Now, keep in mine different fonts use different spacing vertical and horizontal - Check out: Spacing and re-read: ${goto}, ${offset} & ${voffset}

    Hope this helps a little.

    Have a nice day.
    Bruce
    just a quick question. if i do it this way. where should i set the text alignment to. should it be bottom middle or bottom left. I decided to switch to having it go across the bottom
    Last edited by djyoung4; October 22nd, 2009 at 11:13 PM.
    I'm a super power user

  2. #9962
    Join Date
    Nov 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Conky wizards! How can I use ali's curl script for http://dailyatheistquote.com/?

    Code:
    ${execpi 3600 curl --silent 'http://dailyatheistquote.com/' | sed '{:q;N;s/\n/ /g;t q}'|grep -o '<div id="quote">[^<]*'|sed 's/<div id=\"quote\">[[:blank:]]*//;s/[[:blank:]]*$//'|fold -sw 60 | sed -e 's/^/\${offset 200}/' -e 's/ $//g'}
    Doesn't quite work. I need to parse this:

    Code:
    <div id="quote">&quot;Religion is an illusion and it derives its strength from the fact that it falls in with our instinctual desires.&quot;</div>
                                           <div id="author"><td>-Sigmund Freud</div>
    What I have above fetches the quote, but it puts the &quot; thing around it, and then doesn't use the author thing at all.
    Last edited by SomeGuyDude; October 23rd, 2009 at 12:59 AM.
    Want me to punchisize your face, For free??

  3. #9963
    Join Date
    Apr 2009
    Location
    JVegas, TN
    Beans
    102
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by dk75 View Post
    I have U8.10 and there's also no usable tolua++ in repository so you need to compile your's by hand: http://www.codenix.com/~tolua/

    When compiled without options it compile tolua++ for lua 4.0/5.0 but for lua 5.1 you need tolua5.1++ for which you must read README to compile from this same source.
    And still, I can not load lua script with cairo bindings...
    Having the same probs here except I'm now having problems with getting tolua to compile ... Any workarounds? Would be nice if everything was in the repositories and I could just line it all and grab a cold one =(
    . . . go to work, send your kids to school, follow fashion, act normal, walk on the pavements, watch T.V., save for your old age, obey the law. Repeat after me: I am free. --anonymous

  4. #9964
    Join Date
    Jul 2007
    Location
    The U. S. of A.
    Beans
    163
    Distro
    Kubuntu Development Release

    Thumbs down Re: Post your .conkyrc files w/ screenshots

    Hey Proxess and/or Londonali1010,

    Could either of you help with a lua script? it refuses to draw my rings...
    (and yes I have checked my conky -v for lua bindings.)

    rings.lua
    Code:
    --[[
    Ring Meters by londonali1010 (2009)
     
    This script draws percentage meters as rings. It is fully customisable; all options are described in the script.
     
    IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement on line 145 uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num > 5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num > 3; conversely if you update Conky every 0.5s, you should use update_num > 10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.
     
    To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
    	lua_load ~/scripts/rings-v1.2.1.lua
    	lua_draw_hook_pre ring_stats
     
    Changelog:
    + v1.2.1 -- Fixed minor bug that caused script to crash if conky_parse() returns a nil value (20.10.2009)
    + v1.2 -- Added option for the ending angle of the rings (07.10.2009)
    + v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009)
    + v1.0 -- Original release (28.09.2009)
    ]]
    
    settings_table = {
    	{
    		-- Edit this table to customise your rings.
    		-- You can create more rings simply by adding more elements to settings_table.
    		-- "name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
    		name='wireless_link_qual_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 ''.
    		arg='wlan0',
    		-- "max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
    		max=100,
    		-- "bg_colour" is the colour of the base ring.
    		bg_colour=0x000000,
    		-- "bg_alpha" is the alpha value of the base ring.
    		bg_alpha=0.3,
    		-- "fg_colour" is the colour of the indicator part of the ring.
    		fg_colour=0x007FFF,
    		-- "fg_alpha" is the alpha value of the indicator part of the ring.
    		fg_alpha=0.5,
    		-- "x" and "y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.
    		x=100, y=125,
    		-- "radius" is the radius of the ring.
    		radius=85,
    		-- "thickness" is the thickness of the ring, centred around the radius.
    		thickness=20,
    		-- "start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
    		start_angle=-58,
    		-- "end_angle" is the ending angle of the ring, in degrees, clockwise from top. Value can be either positive or negative, but must be larger (e.g. more clockwise) than start_angle.
    		end_angle=58
    		-- "color_coding" is the variable that defines if there's a colour state level
    		colour_coding=false,
    		-- "coding_direction" simply indicates if it's a countdown (false) or a status (true)
    		coding_direction=false,
    		-- "warning" is the value that defines the state of the warning
    		warning=0,
    		-- "warning_colour" is the value that defines the state of the warning
    		warning_colour=0xFFFE4E,
    		-- "danger" is the value that defines the state of the danger
    		danger=0,
    		-- "danger_colour" is the value that defines the state of the danger
    		danger_colour=0x840000
    	},
    	{
    		name='battery_percent',
    		arg='BAT1',
    		max=100,
    		bg_colour=0x000000,
    		bg_alpha=0.3,
    		fg_colour=0xFFFF00,
    		fg_alpha=0.5,
    		x=100, y=125,
    		radius=90,
    		thickness=10,
    		start_angle=62,
    		end_angle=298
    		colour_coding=false,
    		coding_direction=false,
    		warning=0,
    		warning_colour=0xFFFE4E,
    		danger=0,
    		danger_colour=0x840000
    	},
    	{
    		name='battery_percent',
    		arg='BAT0',
    		max=100,
    		bg_colour=0x000000,
    		bg_alpha=0.3,
    		fg_colour=0xFFFF00,
    		fg_alpha=0.5,
    		x=100, y=125,
    		radius=80,
    		thickness=10,
    		start_angle=62,
    		end_angle=298
    		colour_coding=false,
    		coding_direction=false,
    		warning=0,
    		warning_colour=0xFFFE4E,
    		danger=0,
    		danger_colour=0x840000
    	},
    	{
    		name='upspeedf',
    		arg='eth0',
    		max=1500,
    		bg_colour=0x000000,
    		bg_alpha=0.5,
    		fg_colour=0x00FF00,
    		fg_alpha=0.5,
    		x=100, y=125,
    		radius=60,
    		thickness=5,
    		start_angle=182,
    		end_angle=358
    		colour_coding=false,
    		coding_direction=false,
    		warning=0,
    		warning_colour=0xFFFE4E,
    		danger=0,
    		danger_colour=0x840000
    	},
    	{
    		name='downspeedf',
    		arg='eth0',
    		max=1500,
    		bg_colour=0x000000,
    		bg_alpha=0.5,
    		fg_colour=0xFF0000,
    		fg_alpha=0.5,
    		x=100, y=125,
    		radius=60,
    		thickness=5,
    		start_angle=2,
    		end_angle=178
    		colour_coding=false,
    		coding_direction=false,
    		warning=0,
    		warning_colour=0xFFFE4E,
    		danger=0,
    		danger_colour=0x840000
    	},
    	{
    		name='upspeedf',
    		arg='wlan0',
    		max=200,
    		bg_colour=0x000000,
    		bg_alpha=0.5,
    		fg_colour=0x00FF00,
    		fg_alpha=0.5,
    		x=100, y=125,
    		radius=65,
    		thickness=5,
    		start_angle=182,
    		end_angle=358
    		colour_coding=false,
    		coding_direction=false,
    		warning=0,
    		warning_colour=0xFFFE4E,
    		danger=0,
    		danger_colour=0x840000
    	},
    	{
    		name='downspeedf',
    		arg='wlan0',
    		max=200,
    		bg_colour=0x000000,
    		bg_alpha=0.5,
    		fg_colour=0xFF0000,
    		fg_alpha=0.5,
    		x=100, y=125,
    		radius=65,
    		thickness=5,
    		start_angle=2,
    		end_angle=178
    		colour_coding=false,
    		coding_direction=false,
    		warning=0,
    		warning_colour=0xFFFE4E,
    		danger=0,
    		danger_colour=0x840000
    	},
    }
    
     
    require 'cairo'
     
    function rgb_to_r_g_b(colour,alpha)
    	return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
    end
     
    function draw_ring(cr,t,pt)
    	local w,h=conky_window.width,conky_window.height
    
    	local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
    	local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']
    
    	local angle_0=sa*(2*math.pi/360)-math.pi/2
    	local angle_f=ea*(2*math.pi/360)-math.pi/2
    	local t_arc=t*(angle_f-angle_0)
    	
    	local cc, cd, wa, wc, da, dc=pt['colour_coding'], pt['coding_direction'], pt['warning'], pt['warning_colour'], pt['danger'], pt['danger_colour']
    
    	local str=''
    	local value=0
    
    	str=string.format('${%s %s}',pt['name'],pt['arg'])
    	str=conky_parse(str)
    	value=tonumber(str)
    	
    	-- Draw background ring
    	cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
    	cairo_set_line_width(cr,ring_w)
    	cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
    	cairo_stroke(cr)
    
    	-- Draw indicator ring
    	cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
    	cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
    	if cc == true then
    		if cd == true then
    			if value >= wa and value < da then
    				cairo_set_source_rgba(cr,rgb_to_r_g_b(wc,fga))
    			elseif value >= da then
    				cairo_set_source_rgba(cr,rgb_to_r_g_b(dc,fga))
    			else
    				cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
    			end
    		else
    			if value <= da then
    				cairo_set_source_rgba(cr,rgb_to_r_g_b(dc,fga))
    			elseif value <= wa then
    				cairo_set_source_rgba(cr,rgb_to_r_g_b(wc,fga))
    			else
    				cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
    			end
    		end
    	else
    		cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
    	end
    	cairo_stroke(cr)
    end
     
    function conky_ring_stats()
    	local function setup_rings(cr,pt)
    		local str=''
    		local value=0
     
    		str=string.format('${%s %s}',pt['name'],pt['arg'])
    		str=conky_parse(str)
     
    		value=tonumber(str)
    		if value == nil then value = 0 end
    		pct=value/pt['max']
     
    		draw_ring(cr,pct,pt)
    	end
     
    	if conky_window==nil then return end
    	local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
     
    	local cr=cairo_create(cs)	
     
    	local updates=conky_parse('${updates}')
    	update_num=tonumber(updates)
     
    	if update_num>5 then
    		for i in pairs(settings_table) do
    			setup_rings(cr,settings_table[i])
    		end
    	end
    end
    .conkyringrc
    Code:
    #!/usr/bin/conky -d -c
    ##    .conkyrc configuration
    alignment top_right
    background yes
    border_inner_margin 0
    border_outer_margin 0
    # http://htmlhelp.com/cgi-bin/color.cgi
    color0 555555			#
    color1 483D8B			# Dark Slate Blue
    color2 B8860B			# Dark goldenrod
    color3 4682B4			# Steelblue
    color4 8B0000			# Dark red
    color5 008080			# Teal
    color6 333333			# Gray20
    color7 C8C8FF			#  (COOL)
    color8 FFFFCC			#  (WARM)
    color9 FCCCCC			#  (HOT)
    cpu_avg_samples 2
    default_color F8F8FF          # Ghost white
    default_outline_color 000000  # Black
    default_shade_color 000000    # Black
    double_buffer yes
    draw_borders no
    draw_graph_borders no
    draw_outline no
    draw_shades no
    gap_x 0
    gap_y 32
    max_specials 1024
    max_user_text 4000
    maximum_width 200
    minimum_size 850
    net_avg_samples 2
    no_buffers yes
    override_utf8_locale yes
    own_window yes
    own_window_colour 000000      # Black
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    own_window_transparent yes
    own_window_type normal
    pad_percents 2
    short_units yes
    stippled_borders 3
    text_buffer_size 8000
    total_run_times 0
    update_interval 1.0
    uppercase no
    use_spacer right
    use_xft yes
    xftalpha 0.75
    xftfont Liberation Sans:size=8
    # -- Lua load -- #
    lua_load ~/.conky/conkyparts/rings.lua
    lua_draw_hook_pre ring_stats
    
    #After this begins text to be formatted on screen
    TEXT
    
    ${alignc}Signal: ${color2}${wireless_link_qual_perc wlan0}%${color}
    
    
    
    
    
    
    ${alignc}ESSID
    ${alignc}${color2}${wireless_essid wlan0}${color}
    ${alignc}${upspeedf wlan0} // ${downspeedf wlan0}
    ${alignc}${upspeedf eth0} // ${downspeedf eth0}
    
    
    
    
    
    
    
    ${alignc}Battery: ${color2}${battery_percent BAT0} %${color} // ${color2}${battery_percent BAT1} %${color}
    Last edited by Crinos512; October 23rd, 2009 at 04:17 AM.
    || Kubuntu x86_64 (15.10 Dev.) || KDE 4.9.00 ||
    || Dell Inspiron 570 || 8GB PC3-10600 DDR3 RAM || AMD Phenom II X4 820 @ 2.8Ghz ||
    || Logitech M570 Trackball || Logitech G15 Gaming Keyboard ||
    Conky: ... no such configuration: 'normal'

  5. #9965
    Join Date
    May 2008
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by SomeGuyDude View Post
    Conky wizards! How can I use ali's curl script for http://dailyatheistquote.com/?

    Code:
    ${execpi 3600 curl --silent 'http://dailyatheistquote.com/' | sed '{:q;N;s/\n/ /g;t q}'|grep -o '<div id="quote">[^<]*'|sed 's/<div id=\"quote\">[[:blank:]]*//;s/[[:blank:]]*$//'|fold -sw 60 | sed -e 's/^/\${offset 200}/' -e 's/ $//g'}
    Doesn't quite work. I need to parse this:

    Code:
    <div id="quote">&quot;Religion is an illusion and it derives its strength from the fact that it falls in with our instinctual desires.&quot;</div>
                                           <div id="author"><td>-Sigmund Freud</div>
    What I have above fetches the quote, but it puts the &quot; thing around it, and then doesn't use the author thing at all.
    You're close!
    Code:
    ${execi 3600 curl -s 'http://dailyatheistquote.com/' | sed '{:q;N;s/\n/ /g;t q}'|grep -o '<div id="author"><td>[^<]*\|<div id="quote">[^<]*'|sed 's/\(<div id=\"quote\">[[:blank:]]*\|<div id=\"author\"><td>\)//;s/[[:blank:]]*$//'|fold -sw 60 | sed -e 's/^/\${offset 200}/' -e 's/ $//g'|sed "s/<title>//;s/\& # 3 9 \;/'/;s/\&amp\;/\&/;s/\&quot\;/\"/g"}
    I put my additions in blue. Remove spaces from the part in red. That last SED statement takes care of any ampersand, quotes or apostrophes.

    For some reason I can't get the apostrophe code to show in here without being interpreted by the browser so I put the spaces in there.

  6. #9966
    Join Date
    Jul 2007
    Location
    The U. S. of A.
    Beans
    163
    Distro
    Kubuntu Development Release

    Thumbs down Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by SomeGuyDude View Post
    Conky wizards! How can I use ali's curl script for http://dailyatheistquote.com/?

    What I have above fetches the quote, but it puts the &quot; thing around it, and then doesn't use the author thing at all.
    how about this:

    Code:
    ${execpi 3600 curl --silent 'http://dailyatheistquote.com/' | sed '{:q;N;s/\n/ /g;t q}'| grep -o '<div id="quote">[^<]*'| sed -e 's/<div id=\"quote\">[[:blank:]]*//;s/[[:blank:]]*$//' -e 's/ $//g' -e 's/\&quot;/\"/' | fold -sw 60 | sed -e 's/^/\${offset 200}/' -e 's/\&quot;/\"/'}
    you'll have to pull the author seperately I believe.
    || Kubuntu x86_64 (15.10 Dev.) || KDE 4.9.00 ||
    || Dell Inspiron 570 || 8GB PC3-10600 DDR3 RAM || AMD Phenom II X4 820 @ 2.8Ghz ||
    || Logitech M570 Trackball || Logitech G15 Gaming Keyboard ||
    Conky: ... no such configuration: 'normal'

  7. #9967
    Join Date
    Nov 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Hmmm. Copied and pasted, but it doesn't display anything at all, now, and I get this error:

    Code:
    sh: -c: line 0: unexpected EOF while looking for matching `''
    sh: -c: line 1: syntax error: unexpected end of file
    Want me to punchisize your face, For free??

  8. #9968
    Join Date
    Sep 2009
    Location
    Brasil
    Beans
    3

    Re: Post your .conkyrc files w/ screenshots

    Same problem: i have curl enabled in conky and i get nothing from all those scripts.

    Its just a blank line.

  9. #9969
    Join Date
    Nov 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    UPDATE. The following gets the quote right:

    Code:
    ${execpi 3600 curl --silent 'http://dailyatheistquote.com/' | sed '{:q;N;s/\n/ /g;t q}'|grep -o '<div id="quote">[^<]*'|sed 's/<div id=\"quote\">[[:blank:]]*//;s/[[:blank:]]*$//' | fold -sw 60 | sed -e 's/^/\${offset 200}/' -e 's/\&quot;/\"/'}
    However, I lose the author and don't know enough about curl to fix that.
    Want me to punchisize your face, For free??

  10. #9970
    Join Date
    May 2008
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Code:
    curl -s 'http://dailyatheistquote.com/' | sed '{:q;N;s/\n/ /g;t q}'|grep -o '<div id="author"><td>[^<]*\|<div id="quote">[^<]*'|sed 's/\(<div id=\"quote\">[[:blank:]]*\|<div id=\"author\"><td>\)//;s/[[:blank:]]*$//'|fold -sw 60 | sed -e 's/^/\${offset 200}/' -e 's/ $//g'|sed "s/\& #39\;/'/;s/\&amp\;/\&/;s/\&quot\;/\"/g"
    gives this output:
    Code:
    ${offset 200}"I think flying planes into a building was a
    ${offset 200}faith-based initiative. I think religion is a neurological
    ${offset 200}disorder."
    ${offset 200}-Bill Maher
    That gets the quote and the author. Remove the space from the part in red. The sed at the end also handles ampersands and apostrophes in addition to the double quotes.

Page 997 of 2317 FirstFirst ... 49789794798799599699799899910071047109714971997 ... 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
  •