Page 977 of 2328 FirstFirst ... 4778779279679759769779789799871027107714771977 ... LastLast
Results 9,761 to 9,770 of 23272

Thread: Post your .conkyrc files w/ screenshots

  1. #9761
    Join Date
    Jun 2009
    Beans
    28

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by searchone View Post
    hi all,
    i had the idea to show graphically my virtual desktops (total 4) with a ring (see picture)! The ring is divided into four parts:
    Desktop 1, first quarter. Desktop 2 is the half-ring, etc.
    Only if i change the desktop, then crashes conky? No idea why!



    the skript ist londonali1010's:
    http://conky.linux-hardcore.com/?page_id=2800

    and my idea:
    Code:
    ....
    {
            name='desktop',
            arg='',
            max=4,
            bg_colour=0xe3e3e3,
            bg_alpha=0.1,
            fg_colour=0x00bfff,
            fg_alpha=0.4,
            x=700, y=200,
            radius=60,
            thickness=30,
            start_angle=0,
            end_angle=360
        },
    ....
    when i conky individually on each desktop views graphically showing me the ring on your right parts, so does it work. But when i change from one desktop to another crash conky from complete!

    can u please tell me where i want to edit to make those donlwod and uplod bars bit close to tht blue line ? Wher i want to edit for make them clsoer ?

  2. #9762
    Join Date
    Sep 2007
    Location
    KCMO
    Beans
    210
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Post your .conkyrc files w/ screenshots

    I'm having problems with my Conky config. I've tried to go for a modification of the one-line Conky, but with four lines.

    It looks like this:



    Here's the config:

    Code:
    # Conky sample configuration
    #
    # the list of variables has been removed from this file in favour
    # of keeping the documentation more maintainable.
    # Check http://conky.sf.net for an up-to-date-list.
    
    # set to yes if you want Conky to be forked in the background
    background yes
    
    # X font when Xft is disabled, you can pick one with program xfontsel
    #font 5x7
    #font 6x10
    #font 7x13
    #font 8x13
    #font 9x15
    #font *mintsmild.se*
    #font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
    
    
    # Use Xft?
    use_xft yes
    
    # Set conky on the bottom of all other applications
    own_window_hints below
    
    # Xft font when Xft is enabled
    xftfont monofur:style=Medium:size=8
    
    # Text alpha when using Xft
    xftalpha 1
    
    # Print everything to stdout?
    # out_to_console no
    
    # MPD host/port
    # mpd_host localhost
    # mpd_port 6600
    # mpd_password tinker_bell
    
    # Print everything to console?
    # out_to_console no
    
    # mail spool
    #mail_spool $MAIL
    
    # Update interval in seconds
    update_interval 1
    
    # This is the number of times Conky will update before quitting.
    # Set to zero to run forever.
    total_run_times 0
    
    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    own_window_hints below
    own_window_type desktop
    
    # Use pseudo transparency with own_window?
    own_window_transparent yes
    
    # If own_window_transparent is set to no, you can set the background 
    colour here
    #own_window_color hotpink
    
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer true
    
    # Minimum size of text area
    #minimum_size 280 5
    
    # Draw shades?
    draw_shades yes
    
    # Draw outlines?
    draw_outline yes
    
    # Draw borders around text
    draw_borders no
    
    # Stippled borders?
    stippled_borders 8
    
    # border margins
    border_margin 10
    
    # border width
    border_width 10
    
    # Default colors and also border colors
    default_color dadada
    default_shade_color 1b1b1b
    default_outline_color 1b1b1b
    
    # Text alignment, other possible values are commented
    #alignment top_left
    alignment top_right
    #alignment bottom_left
    #alignment bottom_right
    #alignment none
    
    # Gap between borders of screen and text
    # same thing as passing -x at command line
    gap_x 5
    gap_y 5
    
    # Subtract file system buffers from used memory?
    no_buffers yes
    
    # set to yes if you want all text to be in uppercase
    uppercase no
    
    # number of cpu samples to average
    # set to 1 to disable averaging
    cpu_avg_samples 1
    
    # number of net samples to average
    # set to 1 to disable averaging
    net_avg_samples 1
    
    # Force UTF8? note that UTF8 support required XFT
    override_utf8_locale no
    
    
    # Add spaces to keep things from moving about?  This only affects 
    certain objects.
    use_spacer yes
    
    #   mldonkey_hostname     Hostname for mldonkey stuff, defaults to localhost
    #   mldonkey_port         Mldonkey port, 4001 default
    #   mldonkey_login        Mldonkey login, default none
    #   mldonkey_password     Mldonkey password, default none
    
    # boinc (seti) dir
    # seti_dir /opt/seti
    
    # Allow for the creation of at least this number of port monitors (if 0 or not set, default is 16) 
    min_port_monitors 16
    
    # Allow each port monitor to track at least this many connections (if 0 or not set, default is 256)
    min_port_monitor_connections 256
    
    # variable is given either in format $variable or in ${variable}. Latter
    # allows characters right after the variable and must be used in network
    # stuff because of an argument
    
    # stuff after 'TEXT' will be formatted on screen
    
    TEXT
    ${alignc}${time %a %b %d %Y} ${time %H:%M:%S} | OS: ${pre_exec cat /etc/issue | grep Ubuntu | cut -c1-11} $machine | Kernel: $kernel | Uptime: $uptime
    ${alignc}Live - CPU: $cpu% ${cpugraph 8,52 e67100 fff200} | Load: $loadavg | Mem: $memperc% ${memgraph 8,52 ff1493 ff7f50} | Swap: $swapperc% | HDD Temp: ${hddtemp /dev/sda 127.0.0.1 7634}C
    ${alignc}Disk Space - /: ${fs_used /}/${fs_size /} | /home: ${fs_used /home}/${fs_size /home} | /media/windows: ${fs_used /media/windows}/${fs_size /media/windows}
    ${alignc}${if_up eth1}Net - Device: eth1 | Signal: ${wireless_link_qual_perc eth1}% | Down: ${downspeedf eth1}kB/s ${downspeedgraph eth1 8,52 B5273C ff0000} | Up: ${upspeedf eth1}kB/s ${upspeedgraph eth1 8,52 006E55 00ff00}${else}Network: No signal within range${endif}
    My problem is this - when CPU or memory usage drops to single-digit percentages or spikes at 100%, the entire Conky display flickers. I'm wondering if there's some sort of padding I can use in that config to hold CPU percentage and memory percentage at three digits even when the actual percentage isn't there. I'm running 1.7.2 if that helps.
    Desktop: Custom - AMD Athlon X4 Quadcore 4.02GHz, 8GB DDR3, 750GB HDD, 500GB HDD, Win7 x64/Ubuntu 14.04 x64
    Laptop: Thinkpad T61 - Intel Core 2 Duo 2.00GHz, 4GB DDR2, 500GB HDD, Win7 x86/Ubuntu 14.04 x86

  3. #9763
    Join Date
    Jul 2008
    Location
    Connecticut, U.S.
    Beans
    106
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by hellion0 View Post
    I'm having problems with my Conky config. I've tried to go for a modification of the one-line Conky, but with four lines.

    It looks like this:



    Here's the config:

    Code:
    # Conky sample configuration
    #
    # the list of variables has been removed from this file in favour
    # of keeping the documentation more maintainable.
    # Check http://conky.sf.net for an up-to-date-list.
    
    # set to yes if you want Conky to be forked in the background
    background yes
    
    # X font when Xft is disabled, you can pick one with program xfontsel
    #font 5x7
    #font 6x10
    #font 7x13
    #font 8x13
    #font 9x15
    #font *mintsmild.se*
    #font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
    
    
    # Use Xft?
    use_xft yes
    
    # Set conky on the bottom of all other applications
    own_window_hints below
    
    # Xft font when Xft is enabled
    xftfont monofur:style=Medium:size=8
    
    # Text alpha when using Xft
    xftalpha 1
    
    # Print everything to stdout?
    # out_to_console no
    
    # MPD host/port
    # mpd_host localhost
    # mpd_port 6600
    # mpd_password tinker_bell
    
    # Print everything to console?
    # out_to_console no
    
    # mail spool
    #mail_spool $MAIL
    
    # Update interval in seconds
    update_interval 1
    
    # This is the number of times Conky will update before quitting.
    # Set to zero to run forever.
    total_run_times 0
    
    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    own_window_hints below
    own_window_type desktop
    
    # Use pseudo transparency with own_window?
    own_window_transparent yes
    
    # If own_window_transparent is set to no, you can set the background 
    colour here
    #own_window_color hotpink
    
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer true
    
    # Minimum size of text area
    #minimum_size 280 5
    
    # Draw shades?
    draw_shades yes
    
    # Draw outlines?
    draw_outline yes
    
    # Draw borders around text
    draw_borders no
    
    # Stippled borders?
    stippled_borders 8
    
    # border margins
    border_margin 10
    
    # border width
    border_width 10
    
    # Default colors and also border colors
    default_color dadada
    default_shade_color 1b1b1b
    default_outline_color 1b1b1b
    
    # Text alignment, other possible values are commented
    #alignment top_left
    alignment top_right
    #alignment bottom_left
    #alignment bottom_right
    #alignment none
    
    # Gap between borders of screen and text
    # same thing as passing -x at command line
    gap_x 5
    gap_y 5
    
    # Subtract file system buffers from used memory?
    no_buffers yes
    
    # set to yes if you want all text to be in uppercase
    uppercase no
    
    # number of cpu samples to average
    # set to 1 to disable averaging
    cpu_avg_samples 1
    
    # number of net samples to average
    # set to 1 to disable averaging
    net_avg_samples 1
    
    # Force UTF8? note that UTF8 support required XFT
    override_utf8_locale no
    
    
    # Add spaces to keep things from moving about?  This only affects 
    certain objects.
    use_spacer yes
    
    #   mldonkey_hostname     Hostname for mldonkey stuff, defaults to localhost
    #   mldonkey_port         Mldonkey port, 4001 default
    #   mldonkey_login        Mldonkey login, default none
    #   mldonkey_password     Mldonkey password, default none
    
    # boinc (seti) dir
    # seti_dir /opt/seti
    
    # Allow for the creation of at least this number of port monitors (if 0 or not set, default is 16) 
    min_port_monitors 16
    
    # Allow each port monitor to track at least this many connections (if 0 or not set, default is 256)
    min_port_monitor_connections 256
    
    # variable is given either in format $variable or in ${variable}. Latter
    # allows characters right after the variable and must be used in network
    # stuff because of an argument
    
    # stuff after 'TEXT' will be formatted on screen
    
    TEXT
    ${alignc}${time %a %b %d %Y} ${time %H:%M:%S} | OS: ${pre_exec cat /etc/issue | grep Ubuntu | cut -c1-11} $machine | Kernel: $kernel | Uptime: $uptime
    ${alignc}Live - CPU: $cpu% ${cpugraph 8,52 e67100 fff200} | Load: $loadavg | Mem: $memperc% ${memgraph 8,52 ff1493 ff7f50} | Swap: $swapperc% | HDD Temp: ${hddtemp /dev/sda 127.0.0.1 7634}C
    ${alignc}Disk Space - /: ${fs_used /}/${fs_size /} | /home: ${fs_used /home}/${fs_size /home} | /media/windows: ${fs_used /media/windows}/${fs_size /media/windows}
    ${alignc}${if_up eth1}Net - Device: eth1 | Signal: ${wireless_link_qual_perc eth1}% | Down: ${downspeedf eth1}kB/s ${downspeedgraph eth1 8,52 B5273C ff0000} | Up: ${upspeedf eth1}kB/s ${upspeedgraph eth1 8,52 006E55 00ff00}${else}Network: No signal within range${endif}
    My problem is this - when CPU or memory usage drops to single-digit percentages or spikes at 100%, the entire Conky display flickers. I'm wondering if there's some sort of padding I can use in that config to hold CPU percentage and memory percentage at three digits even when the actual percentage isn't there. I'm running 1.7.2 if that helps.
    It is a common problem actually. Bruce solves it perfectly here: http://conky.linux-hardcore.com/?page_id=1127

    If this does not solve your problem, let us know.
    Registered Ubuntu User #29430

  4. #9764
    Join Date
    Jul 2009
    Location
    Germany > Hessen > DA
    Beans
    26

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by thilandm View Post
    can u please tell me where i want to edit to make those donlwod and uplod bars bit close to tht blue line ? Wher i want to edit for make them clsoer ?
    You have to work with the ${voffset ...} values. I told you here in the script, the corresponding marked, but if you then change that are altering the positions of the following items as well. They must then also be adjusted yet!

    Code:
    ${if_existing /proc/net/route wlan0}${voffset -210}${goto 810}${font DTPDingbats:size=18}${color green}Ã${font Zekton:size=12}${downspeed wlan0}${color}
    
    ${voffset -15}${goto 810}${font DTPDingbats:size=18}${color red}Â${font Zekton:size=12}${upspeed wlan0}${color}${endif}
    Since this is a horizontal Conky and multiple lines, is a very complicated position. But as I said with the values ${voffset} goes right well. You just have a little experimentation, you can give an exact amount because no one associated it with your monitor and resolution!
    64Bit - HP Compaq Presario CQ60-105EG, 4GB RAM, 160GB, NVIDIA GeForce 8200M, AMD Athlon X2 Dual-Core / Mandriva 2009.1, Mandriva 2010, #! Crunchbang 9.04.01 Conky-Hardcore - searchOne

  5. #9765
    Join Date
    Jul 2009
    Location
    Germany > Hessen > DA
    Beans
    26

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by searchOne View Post
    Hi all,
    I had the idea to show graphically my virtual desktops (total 4) with a ring (see picture)! The ring is divided into four parts:
    Desktop 1, First Quarter. Desktop 2 is the half-ring, etc.
    Only if I change the desktop, then crashes conky? No idea why!



    The Skript ist londonali1010's:
    http://conky.linux-hardcore.com/?page_id=2800

    and my idea:
    Code:
    ....
    {
            name='desktop',
            arg='',
            max=4,
            bg_colour=0xE3E3E3,
            bg_alpha=0.1,
            fg_colour=0x00BFFF,
            fg_alpha=0.4,
            x=700, y=200,
            radius=60,
            thickness=30,
            start_angle=0,
            end_angle=360
        },
    ....
    When I Conky individually on each desktop views graphically showing me the ring on your right parts, so does it work. But when I change from one desktop to another crash Conky from complete!
    Nobody an idea for my problem?
    64Bit - HP Compaq Presario CQ60-105EG, 4GB RAM, 160GB, NVIDIA GeForce 8200M, AMD Athlon X2 Dual-Core / Mandriva 2009.1, Mandriva 2010, #! Crunchbang 9.04.01 Conky-Hardcore - searchOne

  6. #9766
    Join Date
    Jul 2008
    Location
    Connecticut, U.S.
    Beans
    106
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by searchOne View Post
    Nobody an idea for my problem?
    I gave it some thought but couldn't come up with anything useful. I use compiz and therefore my desktop variable isn't applicable. Sorry m8 .
    Registered Ubuntu User #29430

  7. #9767
    Join Date
    Jul 2009
    Location
    Germany > Hessen > DA
    Beans
    26

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by dmillerct View Post
    I gave it some thought but couldn't come up with anything useful. I use compiz and therefore my desktop variable isn't applicable. Sorry m8 .
    Thanks anyway!

    Then I have to wait until the lua / cairo professional londonali1010 to report!
    64Bit - HP Compaq Presario CQ60-105EG, 4GB RAM, 160GB, NVIDIA GeForce 8200M, AMD Athlon X2 Dual-Core / Mandriva 2009.1, Mandriva 2010, #! Crunchbang 9.04.01 Conky-Hardcore - searchOne

  8. #9768
    Join Date
    Jun 2007
    Beans
    638
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Post your .conkyrc files w/ screenshots

    Conkyrc

    Code:
    use_xft yes
    xftfont HelveticaNeue LT 97 BlackCn:size=50
    minimum_size 160 100
    maximum_width 1280
    update_interval 2
    total_run_times 0
    own_window no
    own_window_transparent no
    own_window_type widget
    own_window_hints undecorate,sticky,skip_taskbar,skip_pager 
    double_buffer yes
    draw_shades no
    draw_outline no
    draw_borders no
    stippled_borders 0
    border_margin 2
    border_width 1
    default_color c1b18e
    #default_shade_color white
    #default_outline_color black
    own_window_colour 7e7777
    alignment top_left
    #alignment top_right
    #alignment bottom_left
    #alignment bottom_right
    gap_x 592
    gap_y 344
    no_buffers yes
    uppercase no
    cpu_avg_samples 2
    net_avg_samples 2
    override_utf8_locale yes
    use_spacer yes
    short_units yes
    imlib_cache_size 0
    lua_load ~/documents/big_batt_ring.lua
    lua_draw_hook_pre ring_stats
    
    TEXT
    ${execi 1800 conkyForecast --location=AEXX0004 --datatype=HT | cut -c1}${offset -3}${execi 1800 conkyForecast --location=AEXX0004 --datatype=HT | cut -c2}${offset -5}${voffset 43}${font HeldustryFTVBasic Black:pixelsize=58}'${voffset -20}${font HelveticaNeue LT 97 BlackCn:pixelsize=24}i${offset -1}s${offset -1}h
    ${voffset -37}${font HelveticaNeue LT 9:black:condensed:pixelsize=20}${execi 3600 aptitude search "~U" | wc -l | tail}
    ${offset 22}${voffset -31}${font HelveticaNeue LT 97 BlackCn:pixelsize=10}updates
    Battery ring 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 129 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.lua
    	lua_draw_hook_pre ring_stats
    	
    Changelog:
    + 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='battery_percent',
    		-- "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='BAT1',
    		-- "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=0xc1b18e,
    		-- "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=0xc1b18e,
    		-- "fg_alpha" is the alpha value of the indicator part of the ring.
    		fg_alpha=0.75,
    		-- "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=640, y=400,
    		-- "radius" is the radius of the ring.
    		radius=75,
    		-- "thickness" is the thickness of the ring, centred around the radius.
    		thickness=3,
    		-- "angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
    		angle=-90
    	},
    }
    
    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(t, pt)
    	if conky_window==nil then return end
    	local w,h=conky_window.width,conky_window.height
    	local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual,w,h)
    	
    	cr=cairo_create(cs)
    	
    	local xc,yc,ring_r,ring_w,angle=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['angle']
    	local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']
    
    	local angle_0=angle*(2*math.pi/360)-math.pi/2
    	local t_arc=t*2*math.pi
    
    	-- Draw background ring
    
    	cairo_arc(cr,xc,yc,ring_r,0,2*math.pi)
    	cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
    	cairo_set_line_width(cr,ring_w)
    	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))
    	cairo_stroke(cr)		
    	
    	cairo_destroy(cr)
    	cr = nil
    end
    
    function conky_cairo_cleanup()
    	cairo_surface_destroy(cs)
    	cs = nil
    end
    
    function conky_ring_stats()
    	local function setup_rings(pt)
    		local str=''
    		local value=0
    		
    		str=string.format('${%s %s}',pt['name'],pt['arg'])
    		if pcall(conky_parse,str) then
    			str = conky_parse(str)
    		else str='0'
    		end
    		
    		value=tonumber(str)
    		pct=value/pt['max']
    		
    		draw_ring(pct,pt)
    	end
    	
    	-- Check that Conky has been running for at least 5s
    	
    	local updates=conky_parse('${updates}')
    	update_num=tonumber(updates)
    	
    	if update_num>5 then
    		for i in pairs(settings_table) do
    			setup_rings(settings_table[i])
    		end
    	end
    end
    Attached Images Attached Images
    Ubuntu User # 17490
    Currently: Fisheye 2, Diana F+, Viv UWS
    Lomografix

  9. #9769
    Join Date
    Aug 2008
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Post your .conkyrc files w/ screenshots

    I tried using the lua script that was given above, and now my conky won't load at all.

    This is the script:

    Code:
    --[[
    Background by londonali1010 (2009)
    
    This script draws a background to the Conky window. It covers the whole of the Conky window, but you can specify rounded corners, if you wish.
    
    To call this script in Conky, use (assuming you have saved this script to ~/scripts/):
    	lua_load ~/scripts/draw_bg.lua
    	lua_draw_hook_pre
    
    Changelog:
    + v1.0 -- Original release (07.10.2009)
    ]]
    
    -- Change these settings to affect your background.
    -- "corner_r" is the radius, in pixels, of the rounded corners. If you don't want rounded corners, use 0.
    
    corner_r=15
    
    -- Set the colour and transparency (alpha) of your background.
    
    bg_colour=006400
    bg_alpha=0.5
    
    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 conky_draw_bg()
    	if conky_window==nil then return end
    	local w=conky_window.width
    	local h=conky_window.height
    	local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, w, h)
    	cr=cairo_create(cs)
    
    	cairo_move_to(cr,corner_r,0)
    	cairo_line_to(cr,w-corner_r,0)
    	cairo_curve_to(cr,w,0,w,0,w,corner_r)
    	cairo_line_to(cr,w,h-corner_r)
    	cairo_curve_to(cr,w,h,w,h,w-corner_r,h)
    	cairo_line_to(cr,corner_r,h)
    	cairo_curve_to(cr,0,h,0,h,0,h-corner_r)
    	cairo_line_to(cr,0,corner_r)
    	cairo_curve_to(cr,0,0,0,0,corner_r,0)
    	cairo_close_path(cr)
    
    	cairo_set_source_rgba(cr,rgb_to_r_g_b(bg_colour,bg_alpha))
    	cairo_fill(cr)
    end
    And this is my conkyrc:

    Code:
        background yes
        use_xft yes
        xftfont 123:size=8
        xftalpha 0.9
        update_interval 2
        total_run_times 0
        own_window yes
        # own_window_type override normal
        own_window_type normal
        own_window_transparent yes
        own_window_colour black
        own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
        on_bottom yes
        double_buffer yes
        minimum_size 250 5
        maximum_width 425
        draw_shades no
        draw_outline no
        draw_borders no
        border_margin 4 
        draw_graph_borders no
        default_color white
        default_shade_color red
        default_outline_color green
        alignment top_right
        gap_x 10
        gap_y 35
        no_buffers yes #no
        uppercase no
        cpu_avg_samples 5
        net_avg_samples 2
        override_utf8_locale yes
        use_spacer left
        top_cpu_separate false
        text_buffer_size 256
    
    lua_load ~/.conkyscript
    	lua_draw_hook_pre
    
        TEXT
    ${font Arial:bold:size=10}${color Tan1}SYSTEM${color DarkSlateGray}${hr 2}
    ${color}${font Arial:size=9}Distro: ${alignr 2}${pre_exec cat /etc/issue.net}
    Gnome Version: ${alignr 2}${color white}${pre_exec gnome-about --gnome-version | head -n 1 | awk '{print $2}'}${font}
    ${color}Kernel: ${alignr}$sysname $kernel 
    Processor: ${alignr}$machine ${alignr}${freq_g cpu0}Ghz
    Uptime: ${alignr}${uptime}
    Load: ${goto 110} Processes: $processes ${alignr 2}Running: $running_processes
    File System: ${alignr 2}${fs_type}
    
    ${font Arial:bold:size=10}${color Tan1}PROCESSORS ${color DarkSlateGray}${hr 2}${color}${font}
    ${execi 1000 less /proc/cpuinfo | grep "model name" | head --lines=1 | cut -c 14-}
    CPU1 ${goto 40}${execi 2 cat /sys/bus/pci/drivers/k8temp/000*/temp1_input | cut -c1,2}°C ${goto 72}${cpu cpu0}% ${cpubar cpu0}
    CPU2 ${goto 40}${execi 2 cat /sys/bus/pci/drivers/k8temp/000*/temp3_input | cut -c1,2}°C ${goto 72}${cpu cpu1}% ${cpubar cpu1}
    
    ${font Arial:bold:size=10}${color Tan1}MEMORY ${color DarkSlateGray}${hr 2}${color}${font}
    MEM${alignc}$mem / $memmax${alignr 2}$memperc%
    $membar
    SWAP${alignc}$swap / $swapmax${alignr 2}$swapperc%
    $swapbar
    
    ${font Arial:bold:size=10}${color Tan1}HDD: ${font}${color}${execi 30 hddtemp /dev/sda | cut -c34-35}°C ${color DarkSlateGray}${hr 2}${color}${font} 
     /${alignc}${fs_used /} / ${fs_size /}${alignr 2}${fs_free_perc /}%
    ${fs_bar /}${if_mounted /home/ross/flash}
    flash ${alignc}${fs_used /home/ross/flash} / ${fs_size /home/ross/flash}${alignr}${fs_free_perc /home/ross/flash}%
    ${fs_bar /home/ross/flash}${endif}${if_mounted /media/disk}
    other drive${alignc}${fs_used /media/disk} / ${fs_size /media/disk}${alignr}${fs_free_perc /media/disk}%
    ${fs_bar /media/disk}${endif}
    
    ${font Arial:bold:size=10}${color Tan1}TOP PROCESSES: CPU ${color DarkSlateGray}${hr 2}${color}${font}
    ${font Arial:bold:size=9}${color blue} NAME ${goto 100} PID ${goto 160} %MEM ${alignr 5} %CPU$font$color
    ${top name 1}${goto 95}${top pid 1}${goto 160}${top mem 1} %${alignr}${top cpu 1} %
    ${top name 2}${goto 95}${top pid 2}${goto 160}${top mem 2} %${alignr}${top cpu 2} %
    ${top name 3}${goto 95}${top pid 3}${goto 160}${top mem 3} %${alignr}${top cpu 3} %
    ${top name 4}${goto 95}${top pid 4}${goto 160}${top mem 4} %${alignr}${top cpu 4} %
    ${top name 5}${goto 95}${top pid 5}${goto 160}${top mem 5} %${alignr}${top cpu 5} %
    
    ${font Arial:bold:size=10}${color Tan1}TOP PROCESSES: MEMORY ${color DarkSlateGray}${hr 2}${color}${font}
    ${font Arial:bold:size=9}${color blue} NAME ${goto 100} PID ${goto 160} %MEM ${alignr 5} %CPU$font$color
    ${top_mem name 1}${goto 95}${top_mem pid 1}${goto 160}${top_mem mem 1} %${alignr}${top_mem cpu 1} %
    ${top_mem name 2}${goto 95}${top_mem pid 2}${goto 160}${top_mem mem 2} %${alignr}${top_mem cpu 2} %
    ${top_mem name 3}${goto 95}${top_mem pid 3}${goto 160}${top_mem mem 3} %${alignr}${top_mem cpu 3} %
    ${top_mem name 4}${goto 95}${top_mem pid 4}${goto 160}${top_mem mem 4} %${alignr}${top_mem cpu 4} %
    ${top_mem name 5}${goto 95}${top_mem pid 5}${goto 160}${top_mem mem 5} %${alignr}${top_mem cpu 5} %
    
    ${if_existing /proc/net/route eth1}${font Arial:bold:size=10}${color Tan1}NETWORK: WIRELESS  ${color darkslategray}${hr 2}${color}${font}${execi 600 rm .myip & wget -O .myip http://www.whatismyip.org/}
    Public IP: ${alignr}${execi 600 cat .myip}
    Local IP: ${alignr}${addr eth1}
    ${color red}Down${alignr}${downspeed eth1}/s
    ${color green}Up${alignr}${upspeed eth1}/s${else}${if_existing /proc/net/route eth0}${font Arial:bold:size=10}${color Tan1}NETWORK: WIRED  ${color DarkSlateGray}${hr 2}${color}${font}${execi 600 rm .myip & wget -O .myip http://www.whatismyip.org/}
    Public IP: ${alignr}${execi 600 cat .myip}
    Local IP: ${alignr}${addr eth0}
    ${color red}Down${alignr}${downspeed eth0}/s
    ${color green}Up${alignr}${upspeed eth0}/s${else}${color}
    ${font Arial:bold:size=10}${color Tan1}${voffset -8}NETWORK: NO CONNECTION${color DarkSlateGray}${hr 2}${endif}${endif}${color}
    
    ${font Arial:bold:size=10}${color Tan1}TRAFFIC STATISTICS  ${color DarkSlateGray}${hr 2}${color}${font}
    ${goto 70}${font Arial:Bold:size=8}${color Red}Download${goto 145}${color green}Upload${goto 205}${color light blue}Total${color}${font}
    Today:${goto 70}${color red}${execi 60 vnstat | grep "today" | awk '{print $2 $3}'}${goto 145}${color green}${execi 30 vnstat | grep "today" | awk '{print $5 $6}'}${goto 205}${color light blue}${execi 30 vnstat | grep "today" | awk '{print $8 $9}'}
    ${color} Yesterday: ${color red}${goto 70}${execi 1000 vnstat | grep "yesterday" | awk '{print $2 $3}'}${goto 145}${color green}${execi 1000 vnstat | grep "yesterday" | awk '{print $5 $6}'}${goto 205}${color light blue}${execi 1000 vnstat | grep "yesterday" | awk '{print $8 $9}'}
    ${color} Week:${goto 70}${color red}${execi 30 vnstat -w | grep "current week" | awk '{print $3 $4}'}${goto 145}${color green}${execi 30 vnstat -w | grep "current week" | awk '{print $6 $7}'}${goto 205}${color light blue}${execi 30 vnstat -w | grep "current week" | awk '{print $9 $10}'}
    ${color} Last Week:${goto 70}${color red}${execi 1000 vnstat -w | grep "last week" | awk '{print $3 $4}'}${goto 145}${color green}${execi 1000 vnstat -w | grep "last week" | awk '{print $6 $7}'}${goto 205}${color light blue}${execi 1000 vnstat -w | grep "last week" | awk '{print $9 $10}'}
    ${color} Month:${goto 70}${color red}${execi 30 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $3 $4}'}${goto 145}${color green}${execi 30 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $6 $7}'}${goto 205}${color light blue}${execi 30 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $9 $10}'}${font}
    ${color}Last Month:${goto 70}${color red}${execi 30 vnstat -m | tail -n 4 | head -n 1 | awk '{print $3 $4}'}${goto 145}${color green}${execi 30 vnstat -m | tail -n 4 | head -n 1 | awk '{print $6 $7}'}${goto 205}${color light blue}${execi 30 vnstat -m | tail -n 4 | head -n 1 | awk '{print $9 $10}'}${font}
    ${offset 2}${color}Session:${goto 69}${color red}${totaldown eth1}${goto 142}${color green}${totalup eth1}
    Do you have any idea why? I'm just trying to give my conky a semi-transparent dark green background.

  10. #9770
    Join Date
    Aug 2008
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Post your .conkyrc files w/ screenshots

    Now I've removed the lua script. Conky terminal output is:
    Code:
    Conky: /home/ross/.conkyrc: 9: config file error
    Conky: /home/ross/.conkyrc: 12: no such configuration: 'on_bottom'
    Conky: statfs '/media/disk': No such file or directory
    Conky: forked to background, pid is 7272
    ross@ross-laptop:~$ 
    Conky: desktop window (12000ac) is subwindow of root window (1a6)
    Conky: window type - normal
    Conky: drawing to created window (0x3800001)
    Conky: drawing to double buffer
    Conky: statfs '/media/disk': No such file or directory
    --2009-10-11 10:24:49--  http://www.whatismyip.org/
    Resolving www.whatismyip.org... 75.147.234.41
    Connecting to www.whatismyip.org|75.147.234.41|:80...
    and it doesn't show up on the desktop. Any suggestions?

Page 977 of 2328 FirstFirst ... 4778779279679759769779789799871027107714771977 ... 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
  •