Page 1040 of 2348 FirstFirst ... 4054094099010301038103910401041104210501090114015402040 ... LastLast
Results 10,391 to 10,400 of 23480

Thread: Post your .conkyrc files w/ screenshots

  1. #10391
    Join Date
    May 2008
    Location
    Bournemouth, UK
    Beans
    116
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Labello View Post
    i also did some stuff with cairo and lua:


    code now plox
    sigh

  2. #10392
    Join Date
    Dec 2007
    Beans
    118
    Distro
    Kubuntu 9.10 Karmic Koala

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by pbeesley View Post
    code now plox
    http://conklets.sourceforge.net/
    "To you I'm an atheist; to God, I'm the Loyal Opposition." Woody Allen
    Stressing The Gimp - High Quality Tutorials For The Gimp

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

    Re: Post your .conkyrc files w/ screenshots

    im talking an $hr that is vertical. if you check out my screen shot i have 6 boxes along the bottom and I want to seperate them with a vertical bar
    Attached Images Attached Images
    I'm a super power user

  4. #10394
    Join Date
    Dec 2007
    Beans
    118
    Distro
    Kubuntu 9.10 Karmic Koala

    Re: Post your .conkyrc files w/ screenshots

    Code:
    |
    |
    |
    |
    |
    use the right font and it will look like a vertical <hr>
    "To you I'm an atheist; to God, I'm the Loyal Opposition." Woody Allen
    Stressing The Gimp - High Quality Tutorials For The Gimp

  5. #10395
    Join Date
    Feb 2009
    Location
    UK
    Beans
    129
    Distro
    Ubuntu

    Re: Post your .conkyrc files w/ screenshots

    Conky + tint2 = pretty

    2009-11-08--1257720997_1024x600_scrot.png

    My .conkyrc:
    Code:
    # -- Conky settings -- #
    background no
    update_interval 1
    
    cpu_avg_samples 2
    net_avg_samples 2
    
    override_utf8_locale yes
    
    double_buffer yes
    no_buffers yes
    
    text_buffer_size 2048
    imlib_cache_size 0
    
    # -- Window specifications -- #
    
    own_window yes
    own_window_class Conky
    own_window_type override
    own_window_transparent no
    own_window_colour white
    own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
    
    border_inner_margin 0
    border_outer_margin 0
    
    minimum_size 54 150
    maximum_width 54
    
    alignment bl
    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 Petita Medium:size=8
    xftalpha 0.8
    
    uppercase no
    
    default_color black
    
    # -- Lua Load -- #
    lua_load ~/scripts/conky_widgets.lua
    lua_draw_hook_pre widgets
    
    TEXT
    ${voffset 17}${alignc}CPU
    ${voffset 37}${alignc}MEM
    ${voffset 37}${alignc}/
    And my conky_widgets.lua:
    Code:
    --[[
    Conky Widgets by londonali1010 (2009)
    
    This script is meant to be a "shell" to hold a suite of widgets for use in Conky.
    
    To configure:
    + Copy the widget's code block (will be framed by --(( WIDGET NAME )) and --(( END WIDGET NAME )), with "[" instead of "(") somewhere between "require 'cairo'" and "function conky_widgets()", ensuring not to paste into another widget's code block
    + To call the widget, add the following between "cr = cairo_create(cs)" and "cairo_destroy(cr)" at the end of the script:
    	NAME_OF_FUNCTION(cr, OPTIONS)
    + Replace OPTIONS with the options for your widget (should be specified in the widget's code block) 
    
    Call this script in Conky using the following before TEXT (assuming you save this script to ~/scripts/conky_widgets.lua):
    	lua_load ~/scripts/conky_widgets.lua
    	lua_draw_hook_pre widgets
    	
    Changelog:
    + v1.1 -- Simplified calls to widgets by implementing a global drawing surface, and included imlib2 by default (03.11.2009)
    + v1.0 -- Original release (17.10.2009)
    ]]
    
    require 'cairo'
    require 'imlib2'
    
    --[[ RING WIDGET ]]
    --[[ v1.1 by londonali1010 (2009) ]]
    --[[ Options (name, arg, max, bg_colour, bg_alpha, xc, yc, radius, thickness, start_angle, end_angle):
    	"name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_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 ''.
    	"max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
    	"bg_colour" is the colour of the base ring.
    	"bg_alpha" is the alpha value of the base ring.
    	"fg_colour" is the colour of the indicator part of the ring.
    	"fg_alpha" is the alpha value of the indicator part of the ring.
    	"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.
    	"radius" is the radius of the ring.
    	"thickness" is the thickness of the ring, centred around the radius.
    	"start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
    	"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. ]]
    
    function ring(name, arg, max, bgc, bga, fgc, fga, xc, yc, r, t, sa, ea)
    	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 draw_ring(pct)
    		local angle_0 = sa * (2 * math.pi/360) - math.pi/2
    		local angle_f = ea * (2 * math.pi/360) - math.pi/2
    		local pct_arc = pct * (angle_f - angle_0)
    
    		-- Draw background ring
    
    		cairo_arc(cr, xc, yc, r, angle_0, angle_f)
    		cairo_set_source_rgba(cr, rgb_to_r_g_b(bgc, bga))
    		cairo_set_line_width(cr, t)
    		cairo_stroke(cr)
    	
    		-- Draw indicator ring
    
    		cairo_arc(cr, xc, yc, r, angle_0, angle_0 + pct_arc)
    		cairo_set_source_rgba(cr, rgb_to_r_g_b(fgc, fga))
    		cairo_stroke(cr)
    	end
    	
    	local function setup_ring()
    		local str = ''
    		local value = 0
    		
    		str = string.format('${%s %s}', name, arg)
    		str = conky_parse(str)
    		
    		value = tonumber(str)
    		if value == nil then value = 0 end
    		pct = value/max
    		
    		draw_ring(pct)
    	end	
    	
    	local updates = conky_parse('${updates}')
    	update_num = tonumber(updates)
    	
    	if update_num > 5 then setup_ring() end
    end
    
    --[[ END RING WIDGET ]]
    
    function conky_widgets()
    	if conky_window == nil then return end
    	local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
    	cr = cairo_create(cs)
    	
    	ring('cpu', 'CPU0', 100, 0x000000, 0.2, 0x000000, 0.8, 28, 25, 20, 6, 0, 360)
    	ring('memperc', '', 100, 0x000000, 0.2, 0x000000, 0.8, 28, 75, 20, 6, 0, 360)
    	ring('fs_used_perc', '/', 100, 0x000000, 0.2, 0x000000, 0.8, 28, 125, 20, 6, 0, 360)
    	
    	cairo_destroy(cr)
    end
    - 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 -

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

    Re: Post your .conkyrc files w/ screenshots

    did the swap variable for percent change for 1.7.2 or is something funky goin on here.
    Code:
    ${goto 675}${font Verana:style=Bold:size=9}SWAP: ${font Verdana:size=8}${swap} / ${swapmax} (${swapperc}%)
    or is it 9.10
    Attached Images Attached Images
    Last edited by djyoung4; November 9th, 2009 at 09:04 AM.
    I'm a super power user

  7. #10397
    Join Date
    Feb 2009
    Location
    UK
    Beans
    129
    Distro
    Ubuntu

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by djyoung4 View Post
    did the swap variable for percent change for 1.7.2 or is something funky goin on here.
    Code:
    ${goto 675}${font Verana:style=Bold:size=9}SWAP: ${font Verdana:size=8}${swap} / ${swapmax} (${swapperc}%)
    or is it 9.10
    Nope, the variables haven't changed! If anyone else can reproduce this, you should file it as a bug...I would try it myself, but I don't use swap! :S
    - 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 -

  8. #10398
    Join Date
    Feb 2008
    Location
    I'm lost ... HELP!
    Beans
    1,014
    Distro
    Xubuntu

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by djyoung4 View Post
    did the swap variable for percent change for 1.7.2 or is something funky goin on here.
    Code:
    ${goto 675}${font Verana:style=Bold:size=9}SWAP: ${font Verdana:size=8}${swap} / ${swapmax} (${swapperc}%)
    or is it 9.10
    But 8.73/(4.76⋅1024)=0.0017910485 or 0.18% or 0%

  9. #10399
    Join Date
    Dec 2007
    Beans
    118
    Distro
    Kubuntu 9.10 Karmic Koala

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by londonali1010 View Post
    Conky + tint2 = pretty
    true words!
    looks like you are drawing the white bar with cairo don't you?
    "To you I'm an atheist; to God, I'm the Loyal Opposition." Woody Allen
    Stressing The Gimp - High Quality Tutorials For The Gimp

  10. #10400
    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 miegiel View Post
    But 8.73/(4.76⋅1024)=0.0017910485 or 0.18% or 0%
    didn't even think about that. My system rarely ever uses swap and I saw that and was quite confused. More power to people who do the math and don't just jump to conclusions.
    I'm a super power user

Page 1040 of 2348 FirstFirst ... 4054094099010301038103910401041104210501090114015402040 ... 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
  •