Page 998 of 2348 FirstFirst ... 498898948988996997998999100010081048109814981998 ... LastLast
Results 9,971 to 9,980 of 23480

Thread: Post your .conkyrc files w/ screenshots

  1. #9971
    Join Date
    Apr 2005
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Post your .conkyrc files w/ screenshots

    I'm getting a problem which was discussed earlier but I still can't get it to work.

    I've copy and pasted the sample code from the blog link below but I get the following error
    http://norsetto.890m.com/index.php
    Conky: llua_do_call: function conky_cairo_test execution failed: attempt to call a nil value

    I've installed the Conky-all package on Karmic it seems like the lua bindings are there.
    robert@robert-laptop:~/Downloads$ conky --version
    Conky 1.7.2 compiled Sat Oct 17 15:23:14 UTC 2009 for Linux 2.6.24-24-server (i686)

    Compiled in features:

    System config file: /etc/conky/conky.conf
    Package library path: /usr/lib/conky

    X11:
    * Xdamage extension
    * XDBE (double buffer extension)
    * Xft

    Music detection:
    * MPD
    * MOC

    General:
    * math
    * hddtemp
    * portmon
    * Curl
    * RSS
    * Weather (METAR)
    * Weather (XOAP)
    * wireless
    * support for IBM/Lenovo notebooks
    * nvidia
    * eve-online
    * config-output
    * Imlib2
    * ALSA mixer support
    * apcupsd
    * iostats
    * Lua

    Lua bindings:
    * Cairo
    * Imlib2

  2. #9972
    Join Date
    Nov 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Still can't get that one to work. However, a mod of the other got the quote part at least.

    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 90 | sed -e 's/^/\${alignc}/' -e 's/\&quot;/\"/'}
    Want me to punchisize your face, For free??

  3. #9973
    Join Date
    Feb 2009
    Location
    UK
    Beans
    129
    Distro
    Ubuntu

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Crinos512 View Post
    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}
    Can I just check that you saved the script as ~/scripts/rings.lua? Because the filename if you untarred it will be rings-v1.2.1.lua, in which case it wouldn't be called right in your .conkyrc.

    If it's not that, can you specify what exactly is happening? Are you getting an error? The code seems okay to me!
    - Samsung R519 Silver - Dual-Boot Windows 7/Ubuntu 9.10 -
    - The Official Conky Blog - Follow conkynews on Twitter -
    - My Launchpad PPA -
    - My blog: My Little Desktop -

  4. #9974
    Join Date
    Feb 2009
    Location
    UK
    Beans
    129
    Distro
    Ubuntu

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Rob2687 View Post
    I'm getting a problem which was discussed earlier but I still can't get it to work.

    I've copy and pasted the sample code from the blog link below but I get the following error
    http://norsetto.890m.com/index.php



    I've installed the Conky-all package on Karmic it seems like the lua bindings are there.
    Hi Rob2687...Would you please post your script and .conkyrc over on the Conky/Lua troubleshooting thread?

    I'll have a look at it over there...
    - Samsung R519 Silver - Dual-Boot Windows 7/Ubuntu 9.10 -
    - The Official Conky Blog - Follow conkynews on Twitter -
    - My Launchpad PPA -
    - My blog: My Little Desktop -

  5. #9975
    Join Date
    Mar 2009
    Beans
    2

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by dmillerct View Post
    You can toss TOR browser on a thumb drive and run it from there even if you don't have admin rights over the local computer.

    Believe me it works I had to fire someone who did it.
    Thanks for the tip..will try once...but wait..usb ports will be disabled in our office in a few weeks time

  6. #9976
    Join Date
    May 2008
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by SomeGuyDude View Post
    Still can't get that one to work. However, a mod of the other got the quote part at least.

    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 90 | sed -e 's/^/\${alignc}/' -e 's/\&quot;/\"/'}
    Maybe the code isn't displaying quite right. I attached the line in a text file that I know works on my command line.
    atheistquote.txt

  7. #9977
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Crinos512 View Post
    Look into a program called Tor.
    I don't need it - others from what I read further down obviously is.

    I have to look into this.

    Thanks

    CHIMO!
    Bruce

  8. #9978
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Crinos512 View Post
    Also I find that if you use a monospace font the numbers will line up a bit better... but there isn't a way that I know of to easily line the number values up aligned on the decimal.
    There is also another trick. If conky put out decimal numbers, say 1.40 to 10.40 try this trick I posted at Conky Hardcore!

    ${goto}, ${offset} & ${voffset}

    And for those who can't get there (I'll fix that) - a partial quote:

    So you need to do some work regarding “spacing” in conky.

    Some recommendations to consider:

    1. For your conky file above the TEXT line is to pad the % outputs to two places, and use short units:

    Code:
    short_units yes
    pad_percents 2
    TEXT
    short_units means you’ll see M vs M/b or G vs G/b. And pad_percents insures all % output into conky is done with 2 decimal places, unless you use another program like vnstat to get output. Another nice thing about this is if you use the ${goto} command to place them, it uses the decimal point as the reference.


    CHIMO!
    Bruce
    Attached Images Attached Images

  9. #9979
    Join Date
    Nov 2008
    Location
    Here, There, Everywhere
    Beans
    1,163
    Distro
    Xubuntu

    Re: Post your .conkyrc files w/ screenshots

    Problem here guys.

    I'm writing a very simple conky to display the date, the time and the weather icon.
    This is my conkyrc:
    Code:
    #!/usr/bin/conky -c
    
    update_interval 30.0
    
    # Positon
    alignment top_right
    gap_x 8
    gap_y 8
    
    background no
    
    # Create own window
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    
    # Double buffering reduces flicker, but may not work for everyone
    double_buffer yes
    
    # Text stuff
    use_xft yes
    xftfont Aller:size=11
    uppercase no
    override_utf8_locale yes
    short_units yes
    
    TEXT
    ${font Aller:size=9}${time %d %b} ${font Aller:bold:size=12}${time %H:%M} ${font weather:size=24}${execpi 3600 ~/bin/conky-weather.sh}
    The conky-weather.sh script gets data from Yahoo and translates it to the weather font characters.

    My problem is that when the weather is bigger than everything else, the conky shadow is messed. It works fine if I set the weather size to 12, but I would like it to be bigger.



    Any ideas?
    Attached Images Attached Images

  10. #9980
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Crinos512 View Post
    Look into a program called Tor.
    Quote Originally Posted by srbharadwaj View Post
    Pls Bruce... Conky Hardcore is websensed under the catagory "Sex"
    Quote Originally Posted by dmillerct View Post
    You can toss TOR browser on a thumb drive and run it from there even if you don't have admin rights over the local computer.

    Believe me it works I had to fire someone who did it.
    Well folks,

    Here is a copy/paste of a comment I left at WebSense:

    I am the "Administrator" of a blog site that is basically a gathering point for information on the Linux "Conky". It is called Conky Hardcore! Conky's Homepage:

    http://conky.sourceforge.net/

    It has nothing to do with SEX! And as such I find it sad that you have us so rated. It is the same with (see my email address):

    Linux Hardcore - www.linux-hardcore.com - no SEX - it is a support site for "hardcore" Linux Fans.

    Can you please check out the site and remove is from so people can get there, from the Ubuntu Forums (strictly "family" rated), Re: Post your .conkyrc files w/ screenshots:

    http://ubuntuforums.org/showthread.p...50#post8144350

    I find it really sad that you classify sites "without" checking them out and assuming (***-u-me) the sites are as per defination #2! Shame on you and your company!

    WordNet (r) 2.0 (wn)
    hard-core
    adj 1: stubbornly resistant to change or improvement; "hard-core
    addicts" [syn: hardcore]
    2: intensely loyal; "his hard-core supporters" [syn: hardcore]
    3: extremely explicit; "hard-core pornography" [syn: hardcore]


    WordNet (r) 2.0 (wn)
    hardcore
    adj 1: stubbornly resistant to change or improvement; "hard-core
    addicts" [syn: hard-core]
    2: intensely loyal; "his hard-core supporters" [syn: hard-core]
    3: extremely explicit; "hard-core pornography" [syn: hard-core]

    Have a nice day.
    Bruce
    Let's see what I get back.

    Have a nice day.
    Bruce
    Last edited by Bruce M.; October 23rd, 2009 at 03:54 PM.

Page 998 of 2348 FirstFirst ... 498898948988996997998999100010081048109814981998 ... 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
  •