Page 952 of 2296 FirstFirst ... 4528529029429509519529539549621002105214521952 ... LastLast
Results 9,511 to 9,520 of 22959

Thread: Post your .conkyrc files w/ screenshots

  1. #9511
    Join Date
    Feb 2009
    Location
    UK
    Beans
    129
    Distro
    Ubuntu

    Re: Post your .conkyrc files w/ screenshots

    @Chronon: YES! That's exactly the problem! Thanks for explaining it better than I did

    I can probably make a better ring clock where the rings match the hands, but for the time being, the issue is because I'm drawing the time rings the same way as all the other rings...
    - 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 -

  2. #9512
    Join Date
    Jul 2009
    Location
    Germany > Hessen > DA
    Beans
    26

    Re: Post your .conkyrc files w/ screenshots

    Hello londonali1010,
    i have a Problem with your new Skript "rings.lua".
    I have copied the script from here
    http://conky.linux-hardcore.com/?page_id=2800

    The rings are not indicated and this message comes in the terminal:

    Code:
    search@Genius:~$ conky -c /home/search/.conkyrc
    Conky: llua_load: /home/search/conky/lua/rings.lua:87: '}' expected (to close '{' at line 83) near 'bg_colour'
    Conky: desktop window (13f) is root window
    Conky: window type - normal
    Conky: drawing to created window (0x2400001)
    Conky: drawing to double buffer
    Conky: llua_do_call: function conky_ring_stats execution failed: attempt to call a nil value
    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

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

    Re: Post your .conkyrc files w/ screenshots

    Can you please post what's on line 87, but let's do it over on the troubleshooting thread...http://ubuntuforums.org/showthread.php?t=1280453
    - 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. #9514
    Join Date
    Jul 2009
    Location
    Germany > Hessen > DA
    Beans
    26

    Re: Post your .conkyrc files w/ screenshots

    Sorry, the Script:
    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.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='cpu',
            -- "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='cpu0',
            -- "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=0xCDCDC1,
            -- "bg_alpha" is the alpha value of the base ring.
            bg_alpha=0.5,
            -- "fg_colour" is the colour of the indicator part of the ring.
            fg_colour=0xFF0000,
            -- "fg_alpha" is the alpha value of the indicator part of the ring.
            fg_alpha=0.8,
            -- "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=120, y=120,
            -- "radius" is the radius of the ring.
            radius=81,
            -- "thickness" is the thickness of the ring, centred around the radius.
            thickness=10,
            -- "angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
            angle=90
        },
        {
            name='cpu',
            arg='cpu1',
            max=100,
            bg_colour=0xCDCDC1,
            bg_alpha=0.5,
            fg_colour=0xFF0000,
            fg_alpha=0.5,
            x=120, y=120,
            radius=93,
            thickness=10,
            angle=90
        },
        {
            name='memperc',
            arg='',
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0x1E90FF,
            fg_alpha=0.5,
            x=120, y=120,
            radius=102.5,
            thickness=5,
            angle=90
        },
        {
            name='fs_used_perc',
            arg='/',
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.1,
            fg_colour=0x00FF00,
            fg_alpha=0.5,
            x=120, y=120,
            radius=58,
            thickness=10,
            angle=90
        },
        {
            name='battery_percent',
            arg='BAT0',
            max=100
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0xFFFF00,
            fg_alpha=1,
            x=120, y=120,
            radius=70,
            thickness=10,
            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'])
            str=conky_parse(str)
            
            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
    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. #9515
    Join Date
    Oct 2007
    Location
    Oregon, USA
    Beans
    1,534

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by londonali1010 View Post
    @Chronon: YES! That's exactly the problem! Thanks for explaining it better than I did

    I can probably make a better ring clock where the rings match the hands, but for the time being, the issue is because I'm drawing the time rings the same way as all the other rings...
    Not at all. Thanks for your work on this. It seems that this could become an addictive pastime.

    I do have a couple of ideas of ways to restructure things, but as I mentioned I am quite a newbie with Lua (and am busy with other things as well). It would probably take me a bit of time to do a proper fix. I do feel like I know much more about it than I did a few hours ago, though.

    Now that I have discovered conky (and Lua scripting) I will have to come up with something creative to do with this.

  6. #9516
    Join Date
    Jul 2009
    Location
    Germany > Hessen > DA
    Beans
    26

    Re: Post your .conkyrc files w/ screenshots

    Hello together,
    I have changed my first idea with conky/lua something else, and, in addition, have made a Conky-lua-circel-clock, see on the top right!

    Completely outside (yellow) are the seconds, then in green come the minutes and the grey one are the hours. Minutes and seconds are counted as usual in 60 unities, however, the hours are indicated at 24 hours of format, therefore, 12 is indicated below!
    To compare I have left the analogous clock!



    If one has an idea like me the horizontal stroke $ {hr2} can delimit!?

    .conkyrc:
    Code:
    background no
    use_xft yes
    xftfont terminus:size=8
    xftalpha 0.2
    update_interval 1
    total_run_times 0
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    own_window_class conky
    #own_window_colour gray
    double_buffer yes
    no_buffers yes
    cpu_avg_samples 2
    net_avg_samples 2
    #use_spacer right
    use_spacer none
    #border_width 2
    #draw_borders yes
    draw_shades no
    draw_outline no
    draw_borders no
    default_color white
    #default_shade_color Black
    #default_outline_color Orange
    # Alignment
    #alignment top_left
    #alignment top_right
    #alignment bottom_left
    #alignment bottom_right
    alignment tl
    uppercase no
    text_buffer_size 2048
    imlib_cache_size 0
    minimum_size 1330 10
    #gap_x 10
    gap_y 10
    # — Lua Load — #
    lua_load ~/conky/lua/rings.lua
    lua_draw_hook_pre ring_stats
    
    TEXT
    ${voffset 25}${font Zekton:size=50}${goto 500}${time %H:%M:%S}${voffset -4}
    ${voffset -58}${goto 173}${color 1E90FF}${hr 2}${offset -200}${font Zekton:size=10}${color}
    ${voffset -50}${goto 240}${time %A}${voffset -6}${font Zekton:size=14} ${time %d %B %Y}${font Zekton:size=10}
    ${voffset 10}${goto 240}Conky ${conky_version}   ${goto 500}Kernel: ${kernel} 
    ${goto 240}${exec whoami} @ $nodename $machine   ${goto 500}Uptime: ${uptime}
    ${goto 240}Gesamt: ${desktop_number} - ${desktop}
    ${voffset -100}${goto 800}${font DTPDingbats:size=18}${color green}C${font Zekton:size=12}${downspeed wlan0}${color}
    
    ${voffset -15}${goto 800}${font DTPDingbats:size=18}${color red}D${font Zekton:size=12}${upspeed wlan0}${color}
    ${font}
    ${voffset -100}
    ${goto 90}${color 1E90FF}RAM: ${memperc}%
    ${goto 90}${color FF0000}CPU-1: ${cpu cpu0}%
    ${goto 90}${color FF0000}CPU-2: ${cpu cpu1}%
    ${goto 90}${color FFFF00}BAT: ${battery_percent BAT0}%
    ${goto 90}${color 00FF00}Disk: ${fs_used_perc /}%${color}
    ${goto 1225}${voffset -130}${font KL1MonoCase:size=12}0
    ${goto 1220}${voffset 100}12 
    ${voffset -100}${goto 920}${font Zekton:Bold:size=28}\#! 9.04.01
    ${font LiberationMono:Bold:size=12}
    ${voffset -45}${color 1E90FF}${execpi 600 cal -m | head -2 | sed -n '1p' | sed 's/^/${goto 910} /'}${color}
    ${font LiberationMono:Bold:size=10}
    ${voffset -15}${execpi 60 DJS=`date +%_d`; cal -m | sed '1d' | sed '/./!d' | sed 's/$/                     /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${goto 920} /' | sed /" $DJS "/s/" $DJS "/" "'${color orange}'"$DJS"'${color}'" "/}
    ${voffset -430}
    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.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='cpu',
            -- "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='cpu0',
            -- "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=0xCDCDC1,
            -- "bg_alpha" is the alpha value of the base ring.
            bg_alpha=0.5,
            -- "fg_colour" is the colour of the indicator part of the ring.
            fg_colour=0xFF0000,
            -- "fg_alpha" is the alpha value of the indicator part of the ring.
            fg_alpha=0.8,
            -- "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=120, y=120,
            -- "radius" is the radius of the ring.
            radius=81,
            -- "thickness" is the thickness of the ring, centred around the radius.
            thickness=10,
            -- "angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
            angle=90
        },
        {
            name='cpu',
            arg='cpu1',
            max=100,
            bg_colour=0xCDCDC1,
            bg_alpha=0.5,
            fg_colour=0xFF0000,
            fg_alpha=0.5,
            x=120, y=120,
            radius=93,
            thickness=10,
            angle=90
        },
        {
            name='memperc',
            arg='',
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0x1E90FF,
            fg_alpha=0.5,
            x=120, y=120,
            radius=102.5,
            thickness=5,
            angle=90
        },
        {
            name='fs_used_perc',
            arg='/',
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.1,
            fg_colour=0x00FF00,
            fg_alpha=0.5,
            x=120, y=120,
            radius=58,
            thickness=10,
            angle=90
        },
        {
            name='battery_percent',
            arg='BAT0',
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0xFFFF00,
            fg_alpha=1,
            x=120, y=120,
            radius=70,
            thickness=10,
            angle=90
        },
        {
            name='time',
            arg='+%S',
            max=60,
            bg_colour=0xE3E3E3,
            bg_alpha=0.1,
            fg_colour=0xFFFF00,
            fg_alpha=0.7,
            x=1235, y=120,
            radius=70,
            thickness=4,
            angle=0
        },
        {
            name='time',
            arg='+%M',
            max=60,
            bg_colour=0xE3E3E3,
            bg_alpha=0.1,
            fg_colour=0x00CD00,
            fg_alpha=0.7,
            x=1235, y=120,
            radius=64,
            thickness=7,
            angle=0 
        },
        {
            name='time',
            arg='+%H',
            max=24,
            bg_colour=0xE3E3E3,
            bg_alpha=0.1,
            fg_colour=0xffffff,
            fg_alpha=0.7,
            x=1235, y=120,
            radius=52,
            thickness=14,
            angle=0 
        },
    }
    
    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'])
            str=conky_parse(str)
            
            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
    Greeting
    Stefan
    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

  7. #9517
    Join Date
    Dec 2007
    Location
    USA
    Beans
    112
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by londonali1010 View Post
    @PhoHammer -- Try and downloading the script directly from Conky Hardcore! I've packaged it and posted a link so you can download it directly as a .tar.gz (just to make sure!).
    It works!! Thanks londonali1010!!!!!

  8. #9518
    Join Date
    Sep 2009
    Beans
    3

    Wink minimalistic conky setup



    Minimalistic Conky setup (yes - there is such a thing)
    that's a custom rss feed and a weather forecast on the right.
    segmented circle in the middle - visualisation screenlet and icons top-most-middle are minimized windows.. oh and there's a tiny analog clock on top of the wallpaper. (only the stuff on the right and the clock are conky)
    ps: normal quality screenshot - http://img33.imageshack.us/img33/717/desktopas.jpg.


    i know the thread title says 'post your .conkyrc' but you obviously can tell how simple mine is and how frivolous that would be so im not going to make you scroll through another set of banal configs.
    so the reason im posting here is because im absolutely astonished how most of the layouts are basicly cluster-***** of information and stats.. im saying if conky can display 5 million different things on it's desktop it doesn't mean that it has to. that's what im trying to illustrate with this post.


  9. #9519
    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 dcclabough View Post
    sorry for the ugly coding, but it was a little here, little there with about 300 separate killall conky... conky commands typed.

    anyone know why the disk usage bar for the fat32 drive 'M3D1A' isn't accurate?

    [CODE...]
    instead of
    Code:
    ${fs_bar 8,60 '/media/m3d1a'}
    try
    Code:
    ${fs_bar 8,60 /media/m3d1a/}
    or
    Code:
    ${fs_bar 8,60 /media/m3d1a}

  10. #9520
    Join Date
    Feb 2007
    Location
    CO, USA
    Beans
    13
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Smile Re: Post your .conkyrc files w/ screenshots

    try
    Code:
    ${fs_bar 8,60 /media/m3d1a/}
    worked like a charm... thank you much miegiel

Page 952 of 2296 FirstFirst ... 4528529029429509519529539549621002105214521952 ... 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
  •