Page 967 of 2348 FirstFirst ... 4678679179579659669679689699771017106714671967 ... LastLast
Results 9,661 to 9,670 of 23480

Thread: Post your .conkyrc files w/ screenshots

  1. #9661
    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 Bruce M. View Post
    Oh sure, and us non-techie types are supposed to understand what that means?

    I understand y-x ... errr co-ordinates and /2 = 1/2 or 0.5 blah blah, but how do you use it? So width and height divided by 2 would put the cross-hairs dead centre of target ... but ...

    Can you show a sample in a "Lua for Dummies" type post how and where to use it?
    conky_window.width and conky_window.height are variables that tell you how wide and tall a conky window is.

    divide by 2 and you get the 1/2 way point, centering the ring.

    ...not as complicated as you might think

    Code:
    ...
    	{
    		name='battery_percent',
    		arg='BAT0',
    		max=100,
    		bg_colour=0x000000,
    		bg_alpha=0.2,
    		fg_colour=0xFFFFFF,
    		fg_alpha=0.8,
    		x=(conky_window.width / 2), y=(conky_window.height / 2),
    		radius=70,
    		thickness=10,
    		angle=90
    	},
    ...
    Last edited by Crinos512; October 7th, 2009 at 10:52 PM.
    || 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'

  2. #9662
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Crinos512 View Post
    conky_window.width and conky_window.height are variables that tell you how wide and tall a conky window is.

    divide by 2 and you get the 1/2 way point, centering the ring.

    ...not as complicated as you might think

    Code:
    ...
    	{
    		name='battery_percent',
    		arg='BAT0',
    		max=100,
    		bg_colour=0x000000,
    		bg_alpha=0.2,
    		fg_colour=0xFFFFFF,
    		fg_alpha=0.8,
    		x=(conky_window.width / 2), y=(conky_window.height / 2),
    		radius=70,
    		thickness=10,
    		angle=90
    	},
    ...
    See, now I know something is conspiring against me. I see the post (attached) and when I hit reply I see your sample. (attached as well)

    42 ... answer ... 42 ... conky ... towel ... peanuts ... thumb a ride ... mice ... where are the dolphins? ... who cares the "question" is: x=(conky_window.width / 2), y=(conky_window.height / 2),

    CHIMO!
    Bruce

    OH OK.

    EDIT: HEY, now it's there????????
    Attached Images Attached Images
    Last edited by Bruce M.; October 7th, 2009 at 11:05 PM.

  3. #9663
    Join Date
    Jul 2007
    Location
    Bristol, UK
    Beans
    215
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by 5BallJuggler View Post
    Full Screenie and codes.....
    ......Here Ya Go!!!

    You'll also need a ConkyWeather script, I can't seem to find it on my Netbook
    Hi! Another excellent screen! I'm in awe!

    I'd love to know how to get the barcode to work. And the weather. I'm not so well up on Conky but I'm guessing they're fonts from the code, no idea where to get them from or how to install them though.

    Does the weather work in the same way for the symbols?

  4. #9664
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by yknivag View Post
    Hi! Another excellent screen! I'm in awe!

    I'd love to know how to get the barcode to work. And the weather. I'm not so well up on Conky but I'm guessing they're fonts from the code, no idea where to get them from or how to install them though.

    Does the weather work in the same way for the symbols?
    I have no idea about the bar code (Yet) but the weather was written by a countryman of yours: kaivalagi - Conky Weather Forecast Python Script it comes with everything you need, images fonts you name it.

    Have a nice day.
    Bruce

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

    Re: Post your .conkyrc files w/ screenshots

    If any of you could ask the devs one (non-technical) question, what would it be?
    Actually, now that I have given it more thought...

    1. Where are they?

    2. How many of them are there?
    Registered Ubuntu User #29430

  6. #9666
    Join Date
    Sep 2009
    Location
    Santiago, Chile
    Beans
    39
    Distro
    Ubuntu 13.10 Saucy Salamander

    Thumbs down Re: Post your .conkyrc files w/ screenshots

    Ok.. im having serius problems looks like im the only one that is not having those fantastics .. circles..

    this is what im using..
    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 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.lua
        lua_draw_hook_pre ring_stats
        
    Changelog:
    + 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='time',
            -- "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='%I.%M',
            -- "max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
            max=12,
            -- "bg_colour" is the colour of the base ring.
            bg_colour=0xffffff,
            -- "bg_alpha" is the alpha value of the base ring.
            bg_alpha=0.1,
            -- "fg_colour" is the colour of the indicator part of the ring.
            fg_colour=0xffffff,
            -- "fg_alpha" is the alpha value of the indicator part of the ring.
            fg_alpha=0.2,
            -- "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=165, y=170,
            -- "radius" is the radius of the ring.
            radius=50,
            -- "thickness" is the thickness of the ring, centred around the radius.
            thickness=5,
            -- "start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
            start_angle=0,
            -- "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=360
        },
        {
            name='time',
            arg='%M.%S',
            max=60,
            bg_colour=0xffffff,
            bg_alpha=0.1,
            fg_colour=0xffffff,
            fg_alpha=0.4,
            x=165, y=170,
            radius=56,
            thickness=5,
            start_angle=0,
            end_angle=360
        },
        {
            name='time',
            arg='%S',
            max=60,
            bg_colour=0xffffff,
            bg_alpha=0.1,
            fg_colour=0xffffff,
            fg_alpha=0.6,
            x=165, y=170,
            radius=62,
            thickness=5,
            start_angle=0,
            end_angle=360
        },
        {
            name='battery_percent',
            arg='BAT1',
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.1,
            fg_colour=0xffffff,
            fg_alpha=0.6,
            x=165, y=170,
            radius=72,
            thickness=11,
            start_angle=122,
            end_angle=210
        },
        {
            name='memperc',
            arg='',
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.1,
            fg_colour=0xffffff,
            fg_alpha=0.8,
            x=165, y=170,
            radius=83.5,
            thickness=8,
            start_angle=122,
            end_angle=210
        },
        {
            name='time',
            arg='%d',
            max=31,
            bg_colour=0xffffff,
            bg_alpha=0.1,
            fg_colour=0xffffff,
            fg_alpha=0.8,
            x=165, y=170,
            radius=70,
            thickness=5,
            start_angle=212,
            end_angle=360
        },
        {
            name='time',
            arg='%m',
            max=12,
            bg_colour=0xffffff,
            bg_alpha=0.1,
            fg_colour=0xffffff,
            fg_alpha=0.8,
            x=165, y=170,
            radius=76,
            thickness=5,
            start_angle=212,
            end_angle=360
        },
        {
            name='fs_used_perc',
            arg='/',
            max=150,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0xffffff,
            fg_alpha=0.3,
            x=165, y=170,
            radius=108.5,
            thickness=3,
            start_angle=-120,
            end_angle=240
        },
        {
            name='fs_used_perc',
            arg='/',
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0xffffff,
            fg_alpha=0.3,
            x=165, y=170,
            radius=135,
            thickness=50,
            start_angle=-120,
            end_angle=120
        },
    }
    
    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)
    
        -- Draw background ring
    
        cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
        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)        
    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)
            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>1000000 then
            for i in pairs(settings_table) do
                setup_rings(cr,settings_table[i])
            end
        end
    end
    got it from londonali1010 herself (thanks!) and changed the updane_nub to 1000000 following her advice since i tried with 10, 100, 1000 ... ..

    my .conkyrc file (also from her..)

    Code:
    # UBUNTU-CONKY# -- 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_type desktop
    own_window_transparent yes
    own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
    
    border_inner_margin 0
    border_outer_margin 0
    
    minimum_size 1020 600
    maximum_width 1000
    
    alignment tm
    gap_x 10
    gap_y 0
    
    # -- Graphics settings -- #
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders no
    
    # -- Text settings -- #
    use_xft yes
    xftfont Santana:size=24
    xftalpha 0.8
    
    uppercase no
    
    default_color FFFFFF
    
    # -- Lua Load -- #
    lua_load ~/scripts/rings.lua
    lua_draw_hook_pre ring_stats
    
    TEXT
    ${voffset 35}${font Santana:size=50}${alignr}${time %H.%M}${font}
    ${goto 160}${hr 2}
    ${goto 250}${time %A, %d %B %Y}
    result .. it crashes like hell .. and on reboot ... it only shows the time but .. but if i touch any of my carpets .. it disappear !

    if on terminal i killall conky ; conky .. raises errors but inmidiatly crashes and rebot (segementation fault)

    Questions..
    Q1) what im i doing wrong ?? (im sure it is me .. it is not that the script doesnt loveme or something else...)
    Q2) where could i see those errors that shows in terminal ?

    i really need help i want those rings !!
    Regards to you all .

    EDIT: i also edited the .lua file so i won use the CPU part ... still crashes like ... (getting out of adjetives.. ) ..like a lot
    Last edited by Kaizzer; October 7th, 2009 at 11:44 PM. Reason: more info..
    im new to this...(but i am a fast learner) so please bare for me a while.
    =============
    My Newbie Threads ...please help me to learn:
    Conky Compiling 8.04 | Waiting for 9.10 | Errors & Log Files|

  7. #9667
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Kaizzer View Post
    EDIT: i also edited the .lua file so i won use the CPU part ... still crashes like ... (getting out of adjetives.. ) ..like a lot
    Ummmmmmmm do this:
    Code:
    conky -v
    if you don't get these Compiled in features:
    Code:
    0 bruloo@bruloo: ~
    Wed Oct 07, 19:51 $ conky -v
    Conky 1.7.2 compiled Tue Aug 25 10:12:55 UTC 2009 for Linux 2.6.24-24-xen (x86_64)
    
    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
    0 bruloo@bruloo: ~
    Wed Oct 07, 19:51 $
    Update your conky.

    I'm hoping it's that simple.

    Have a nice day.
    Bruce
    Last edited by Bruce M.; October 7th, 2009 at 11:56 PM.

  8. #9668
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    @ 5BallJuggler

    Now appearing at Conky Hardcore: One Code to Call Them All.

    As Jackie Gleason would say:
    "How sweet it is!!!
    Have a nice day.
    Bruce

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

    Re: Post your .conkyrc files w/ screenshots

    After updating to the 1.2v of rings I am getting the following error:

    Code:
    Conky: llua_do_call: function conky_ring_stats execution failed: /home/dmiller/Conky/Scripts/rings.lua:114: attempt to perform arithmetic on local 'sa' (a nil value)
    here is the settings_table I am using in the rings.lua file:

    Code:
    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=0xffffff,
    		-- "bg_alpha" is the alpha value of the base ring.
    		bg_alpha=0,
    		-- "fg_colour" is the colour of the indicator part of the ring.
    		fg_colour=0xffffff,
    		-- "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=87.5,
    		-- "thickness" is the thickness of the ring, centred around the radius.
    		thickness=15
    	},
    	{
    		name='memperc',
    		arg='',
    		max=100,
    		bg_colour=0xffffff,
    		bg_alpha=0.1,
    		fg_colour=0xffffff,
    		fg_alpha=0.5,
    		x=120, y=120,
    		radius=102.5,
    		thickness=5,
    		start_angle=0,
    		end_angle=360
    	},
    	{
    		name='fs_used_perc',
    		arg='/',
    		max=100,
    		bg_colour=0xffffff,
    		bg_alpha=0,
    		fg_colour=0xffffff,
    		fg_alpha=0.5,
    		x=120, y=120,
    		radius=50,
    		thickness=20,
    		start_angle=0,
    		end_angle=360
    	},
    	{
    		name='battery_percent',
    		arg='',
    		max=100,
    		bg_colour=0xffffff,
    		bg_alpha=0.2,
    		fg_colour=0xffffff,
    		fg_alpha=1,
    		x=120, y=120,
    		radius=70,
    		thickness=10,
    		start_angle=0,
    		end_angle=360
    	},
    	{
    		name='wireless_link_qual',
    		arg='wlan0',
    		max=100,
    		bg_colour=0xffffff,
    		bg_alpha=0.2,
    		fg_colour=0xffffff,
    		fg_alpha=1,
    		x=885, y=460,
    		radius=82.0,
    		thickness=8,
    		start_angle=0,
    		end_angle=360
    	},
    
    }
    Here is line 114 in the config:

    Code:
    local angle_0=sa*(2*math.pi/360)-math.pi/2
    It has something to do with the angles, just not sure what.
    Registered Ubuntu User #29430

  10. #9670
    Join Date
    Jul 2007
    Location
    Bristol, UK
    Beans
    215
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Bruce M. View Post
    I have no idea about the bar code (Yet) but the weather was written by a countryman of yours: kaivalagi - Conky Weather Forecast Python Script it comes with everything you need, images fonts you name it.

    Have a nice day.
    Bruce
    Hi Bruce, thanks for the link. I'll have a look.

Page 967 of 2348 FirstFirst ... 4678679179579659669679689699771017106714671967 ... 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
  •