Page 1006 of 2348 FirstFirst ... 65069069569961004100510061007100810161056110615062006 ... LastLast
Results 10,051 to 10,060 of 23480

Thread: Post your .conkyrc files w/ screenshots

  1. #10051
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by darco View Post
    Whatever happened to the OP?..Is he still around?


    darco
    Nope!! MIA the day he posted, he never cam back!

  2. #10052
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by djyoung4 View Post
    ok so i did a bunch of voffsets and goto's and it kind of worked. How do I make the bars stop though instead of extending all the way to the end of the screen(see screenshot) also. i have my text alignment to the bottom left but it sets up in the middle I think its the voffsets but not sure. any thoughts. getting rid of the voffset's makes the second screen shot. also my todo list should be on the end but its all the way to the left
    Well,try a CPU bar for a CPU you do NOT have.

    Again Conky Hardcore:

    — Text —
    and/or
    BARS with Text

    Have a GREAT day.
    Bruce

  3. #10053
    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 proxess View Post
    In a very gentle manner,

    Code:
    		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
    The reason I noticed was because the same happened to me heh. On all of them.
    OH! you have GOT to be kidding me! broken for want of a comma... jeez.

    Thank you Proxess!
    || 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'

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

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Crinos512 View Post
    OH! you have GOT to be kidding me! broken for want of a comma... jeez.

    Thank you Proxess!
    D'OH! God, I've done that sooooo many times!!!
    - 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. #10055
    Join Date
    Dec 2008
    Location
    RIGHT BEHIND YOU
    Beans
    294
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by londonali1010 View Post
    D'OH! God, I've done that sooooo many times!!!

    Yup, missing commas and close-parens = the bane of every coder's existance.

  6. #10056
    Join Date
    Jul 2005
    Location
    The Netherlands
    Beans
    209
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Crinos512 View Post
    OH! you have GOT to be kidding me! broken for want of a comma... jeez.

    Thank you Proxess!
    Yup... things like that kill us all...

    So so, how did it turn out for you? what colors did you use?
    Laptop: i7 4930MX @3.9GHz undervolted; 32GB 4x8GB Kingston HyperX Impact 1600MHz; Nvidia 780M 4GB; Samsung 840 EVO mSATA 250GB; Ubuntu 16.04 and Windows 10 Pro.
    Ubuntu #8076 / Linux #429448

  7. #10057
    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 proxess View Post
    Yup... things like that kill us all...

    So so, how did it turn out for you? what colors did you use?
    actually I'm coming to understand it more now, and am adding warning and danger alphas... so my Wifi will actually fade in and out, etc.

    I did notice some redundant code...
    Code:
    	-- 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
    You can remove the first instance safely... I'm feeling a bit under the weather, but I'll keep going and I'll post it all when I'm done.
    || 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'

  8. #10058
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Crinos512 View Post
    OH! you have GOT to be kidding me! broken for want of a comma... jeez.

    Thank you Proxess!
    Quote Originally Posted by londonali1010 View Post
    D'OH! God, I've done that sooooo many times!!!
    Say what? Both of you? Well, there goes those two marble pedestals.

    I prefer looking people eye to eye anyway.

    C H I M O!!
    Bruce

  9. #10059
    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

    Finally done....

    rings.lua
    Code:
    --[[
    Ring Meters by londonali1010 (2009) 
    << Modified by Crinos512 with inspiration from Proxess >>
     
    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=true,
    		-- "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=75,
    		-- "warning_colour" is the value that defines the state of the warning
    		warning_colour=0x007FFF,
    		-- "warning_alpha" is the alpha value of the indicator part of the ring during the state of the warning.
    		warning_alpha=0.3,
    		-- "danger" is the value that defines the state of the danger
    		danger=50,
    		-- "danger_colour" is the value that defines the state of the danger
    		danger_colour=0x007FFF,
    		-- "danger_alpha" is the alpha value of the indicator part of the ring during the state of the danger.
    		danger_alpha=0.1
    
    	},
    	{
    		name='battery_percent', 
    		arg='BAT1',
    		max=100,
    		bg_colour=0x000000,
    		bg_alpha=0.3,
    		fg_colour=0xFFFF00,
    		fg_alpha=0.3,
    		x=100, y=125,
    		radius=90,
    		thickness=10,
    		start_angle=62,
    		end_angle=298,
    		colour_coding=true,
    		coding_direction=false,
    		warning=70,
    		warning_colour=0xFF8800,
    		warning_alpha=0.4,
    		danger=20,
    		danger_colour=0xFF0000,
    		danger_alpha=0.5
    	},
    	{
    		name='battery_percent',
    		arg='BAT0',
    		max=100,
    		bg_colour=0x000000,
    		bg_alpha=0.3,
    		fg_colour=0xFFFF00,
    		fg_alpha=0.3,
    		x=100, y=125,
    		radius=80,
    		thickness=10,
    		start_angle=62,
    		end_angle=298,
    		colour_coding=true,
    		coding_direction=false,
    		warning=70,
    		warning_colour=0xFF8800,
    		warning_alpha=0.4,
    		danger=20,
    		danger_colour=0xFF0000,
    		danger_alpha=0.5
    	},
    	{
    		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=true,
    		coding_direction=false,
    		warning=1000,
    		warning_colour=0x00FF00,
    		warning_alpha=0.4,
    		danger=500,
    		danger_colour=0x00FF00,
    		danger_alpha=0.3
    	},
    	{
    		name='downspeedf',
    		arg='eth0',
    		max=1000,
    		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=true,
    		coding_direction=false,
    		warning=750,
    		warning_colour=0xFF0000,
    		warning_alpha=0.4,
    		danger=500,
    		danger_colour=0xFF0000,
    		danger_alpha=0.3
    	},
    	{
    		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=true,
    		coding_direction=false,
    		warning=1000,
    		warning_colour=0x00FF00,
    		warning_alpha=0.4,
    		danger=500,
    		danger_colour=0x00FF00,
    		danger_alpha=0.3
    	},
    	{
    		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=true,
    		coding_direction=false,
    		warning=1000,
    		warning_colour=0xFF0000,
    		warning_alpha=0.4,
    		danger=500,
    		danger_colour=0xFF0000,
    		danger_alpha=0.3
    	},
    }
    
     
    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 wn, dn=pt['warning'], pt['danger']
    	local cc, cd, wa, wc, da, dc=pt['colour_coding'], pt['coding_direction'], pt['warning_alpha'], pt['warning_colour'], pt['danger_alpha'], 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)
    	if cc == false then
    		cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
    	else
    		if cd == true then
    			if value >= wn and value < dn then
    				cairo_set_source_rgba(cr,rgb_to_r_g_b(wc,wa))
    			elseif value >= dn then
    				cairo_set_source_rgba(cr,rgb_to_r_g_b(dc,da))
    			else
    				cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
    			end
    		else
    			if value <= dn then
    				cairo_set_source_rgba(cr,rgb_to_r_g_b(dc,da))
    			elseif value <= wn then
    				cairo_set_source_rgba(cr,rgb_to_r_g_b(wc,wa))
    			else
    				cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
    			end
    		end
    	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
    and the conky that calls it:
    .conkyringsrc
    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}

    Pictures of the rings in use:
    rings1.pngrings2.pngrings3.pngrings4.pngrings5.png


    This is used on my work Laptop, as my Home desktop doesn't have Wifi...
    << click here to see the full screenshot >>
    Last edited by Crinos512; October 25th, 2009 at 05:19 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'

  10. #10060
    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
    Well,try a CPU bar for a CPU you do NOT have.

    Again Conky Hardcore:

    — Text —
    and/or
    BARS with Text

    Have a GREAT day.
    Bruce
    confusing. a cpu I don't have?
    I'm a super power user

Page 1006 of 2348 FirstFirst ... 65069069569961004100510061007100810161056110615062006 ... 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
  •