Page 1734 of 2327 FirstFirst ... 7341234163416841724173217331734173517361744178418342234 ... LastLast
Results 17,331 to 17,340 of 23263

Thread: Post your .conkyrc files w/ screenshots

  1. #17331
    Join Date
    Dec 2010
    Location
    Dhaka, Bangladesh
    Beans
    13
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by wlourf View Post
    nice setup, check out this page for circle writing http://thepeachyblog.blogspot.com/20...lewriting.html
    Maybe there are other ways like seen on ubuntu.tu forums :
    http://forum.ubuntu.ru/index.php?topic=63273.255

    hth
    Anyone knows how to make those gauges? I want to set them for cpu usage. I want a niddle to indicate the position, just like the above screenshot.

  2. #17332
    Join Date
    Oct 2009
    Location
    Under a rock
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Icche Ghuri View Post
    Anyone knows how to make those gauges? I want to set them for cpu usage. I want a niddle to indicate the position, just like the above screenshot.
    which guages do you mean?
    and which screenshot?

    the first link is to my conky blog (needs updating badly )
    i dont see any screenshots in the second link... although i do see someone using my conkybar

  3. #17333
    Join Date
    Dec 2010
    Location
    Dhaka, Bangladesh
    Beans
    13
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by mrpeachy View Post
    which guages do you mean?
    and which screenshot?

    the first link is to my conky blog (needs updating badly )
    i dont see any screenshots in the second link... although i do see someone using my conkybar
    This one,


    And yes you're right, second link has no screenshot. Though right now I'm working on this conky_orange script, and getting very close to that.

  4. #17334
    Join Date
    Oct 2009
    Location
    Under a rock
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Icche Ghuri View Post
    This one,


    And yes you're right, second link has no screenshot. Though right now I'm working on this conky_orange script, and getting very close to that.
    whatever link or image you posted doesnt work... i dont see anything

  5. #17335
    Join Date
    Jan 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by mrpeachy View Post
    whatever link or image you posted doesnt work... i dont see anything
    Especially for you ;P
    Attached Images Attached Images
    Linux Debian Sid (Minted) x86_64/3.12.10, Conky 2.0_pre, Xorg 7.7/1.15.0, KDE 4.11.5, Lenovo T61, Intel X3100, HITACHI HTS722010K9SA00 100GB, WDC_WD5000BEVT 500GB
    Linux user No.: 483055 | My Conky Pitstop corner | One4All project

  6. #17336
    Join Date
    Apr 2007
    Beans
    195

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by dk75 View Post
    Any trouble with that? Why?

    1. first attempt (modular):
    one function to draw circle clockwise based on numeric data
    one function to draw circle counter-clockwise
    one function to chose ring draw function based at whatever data table has even index number or not (or you could have one global boolean variable that you will change after every ring drawing and you base your ring direction based on that state)

    2. second attempt (all in one):
    you makes allot of IF's in function to do this same as with attempt No.1
    Okay, so it is possible. I haven't tried. Honest, I'm not a lua guy like you. You pulled my backside out of the fire the last time I attempted lua. Considering the mess my code was in, I somehow doubt that putting it so simply would help me. And, in my upgrade I lost my browser bookmarks, so I have to go get the lua handbook and conky bookmarks back. (Along with about 80 others, from memory.)

    From what I understand of the first one (forgive my over-simplifications.) you mean the "Modular" one is one giant global function, with three local functions in it? And the second one is one giant function that picks which ring does what?

    Y'see, in my head, I know how it should function, but I don't know the code associated with it. I'm thinking I have to draw two surfaces in one function, and use a variable (one or zero) to decide which ring goes to which surface.

    Am I close? Am I dangerous to have this knowledge? What? And how the heck do you use that surface_destroy feature you put into the scripts?

    Honestly? For reasons unknown to me, I understand how mrpeachy's scripts work, and then I feel completely lost when one as advanced as one of yours shows up. I'm absolutely in awe of the work you lua guys do. I'm really not that good. I have tons of ideas and I can remember things easily, and I happen to have a tech support background, but I am by far not the best coder in this thread.

  7. #17337
    Join Date
    Oct 2009
    Location
    Under a rock
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by dk75 View Post
    Especially for you ;P
    Thanks dk75

    well those would be lua generated
    doesn't look like anything too tricky... but perhaps a little time consuming, i assume the poster put a link to the script somewhere on that thread... i just cant read it

  8. #17338
    Join Date
    Oct 2009
    Location
    Under a rock
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    here's a quick attempt at replicating a gauge like the one in the picture




    lua
    Code:
    --lua gauge by mrpeachy based on the work by olgmen @ forum.ubuntu.ru
    --[[call in conkyrc similar to this
    lua_load /home/mcdowall/lua/gauge.lua
    lua_draw_hook_pre draw_fig
    ]]
    require 'cairo'
    function addzero100(num)
    if tonumber(num) < 10 then
    return "00" .. num
    elseif tonumber(num) <100 then
    return "0" .. num
    else
    return num
    end
    end
    
    function string:split(delimiter)
    local result = { }
    local from  = 1
    local delim_from, delim_to = string.find( self, delimiter, from  )
    while delim_from do
    table.insert( result, string.sub( self, from , delim_from-1 ) )
    from  = delim_to + 1
    delim_from, delim_to = string.find( self, delimiter, from  )
    end
    table.insert( result, string.sub( self, from  ) )
    return result
    end
    
    function conky_draw_fig()
    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)
    local updates=tonumber(conky_parse('${updates}'))
    if updates>5 then
    --#########################################################################################################
    --#########################################################################################################
    cx,cy=150,200
    gr=100
    dr=4
    sa=270
    ea=360+30
    divs=20
    cpu=tonumber(conky_parse("${cpu cpu0}"))
    
    for i=0,divs do
    garc=((2*math.pi)/(360))*((((ea-sa)/divs)*(i))+sa)
    gx=0+gr*(math.sin(garc))
    gy=0-gr*(math.cos(garc))
    cairo_arc (cr,cx+gx,cy+gy,dr,0,2*math.pi)
    if (cpu/(100/divs))<(i) then
    cairo_set_source_rgba (cr,1,1,1,1)--base color
    else
    cairo_set_source_rgba (cr,1,0,0,1)--indicator color
    end
    cairo_fill (cr)
    end
    
    c0pr=gr-5--length of pointer
    c0parc=((2*math.pi)/(360))*((((ea-sa)/100)*(cpu))+sa)
    c0px=0+c0pr*(math.sin(c0parc))
    c0py=0-c0pr*(math.cos(c0parc))
    cairo_move_to (cr,cx+c0px,cy+c0py)
    c0r=5--size of middle of pointer
    c0arc=((2*math.pi)/(360))*(((((ea-sa)/100)*(cpu))+sa)-90)
    c0x=0+c0r*(math.sin(c0arc))
    c0y=0-c0r*(math.cos(c0arc))
    cairo_line_to (cr,cx+c0x,cy+c0y)
    cairo_arc_negative (cr,cx,cy,c0r,c0arc+math.pi+((math.pi/180)*90),c0arc+((math.pi/180)*90))
    cairo_line_to (cr,cx+c0px,cy+c0py)
    cairo_set_line_width (cr,0)
    cairo_fill (cr)
    --circlewriting
    text="CPU AVG " .. addzero100(cpu) .. "%"
    font="sans"
    fsize=12
    radi=gr+10
    horiz=cx
    verti=cy
    tred,tgreen,tblue,talpha=1,1,1,1
    start=300
    finish=ea-5
    var1=0
    --call function
    circlewriting(cr, text, font, fsize, radi, horiz, verti, tred, tgreen, tblue, talpha, start, finish, var1)
    --#########################################################################################################
    --#########################################################################################################
    end-- if updates>5
    end-- end main function
    
    function circlewriting(cr, text, font, fsize, radi, horiz, verti, tred, tgreen, tblue, talpha, start, finish, var1)
    local inum=string.len(text)
    range=finish
    deg=(finish-start)/(inum-1)
    degrads=1*(math.pi/180)
    local textcut=string.gsub(text, ".", "%1@@@")
    texttable=string.split(textcut, "@@@")
    for i = 1,inum do
    ival=i
    interval=(degrads*(start+(deg*(i-1))))+var1
    interval2=degrads*(start+(deg*(i-1)))
    txs=0+radi*(math.sin(interval))
    tys=0-radi*(math.cos(interval))
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, fsize);
    cairo_set_source_rgba (cr, tred, tgreen, tblue, talpha);
    cairo_move_to (cr, txs+horiz, tys+verti);
    cairo_rotate (cr, interval2)
    cairo_show_text (cr, (texttable[i]))
    cairo_rotate (cr, -interval2)
    end
    end
    hmmm... me thinks my variables need some explanation... ill get around to it soon i promise
    Last edited by mrpeachy; May 4th, 2011 at 01:10 AM.

  9. #17339
    Join Date
    Dec 2008
    Location
    Up the irons.
    Beans
    59
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Post your .conkyrc files w/ screenshots

    My conky has been simple and to the point. I have only used it to see my real-time bandwidth usage and I typically keep it in the bottom-right corner but after seeing some of the examples in this thread, I think I may make this a bit more visually appealing.

    Code:
    TEXT
    ${color orange}NETWORK (${addr eth0}) ${hr 2}$color
    Down: $color${downspeed eth0} k/s ${alignr}Up: ${upspeed eth0} k/s
    ${downspeedgraph eth0 25,140 000000 ff0000} ${alignr}${upspeedgraph eth0
    25,140 000000 00ff00}$color
    Total: ${totaldown eth0} ${alignr}Total: ${totalup eth0}
    Attached Images Attached Images

  10. #17340
    Join Date
    Jan 2011
    Beans
    0

    Re: Post your .conkyrc files w/ screenshots

    I cant take credit for any of this since I didn't write any of it just pieced it together from other files I have found around the net.

    .conkyrc
    Code:
    lua_load /home/daniel/draw_bg.lua
    lua_draw_hook_pre draw_bg
    
    # Use Xft?
    use_xft yes
    xftfont OFL Sorts Mill Goudy:size=8
    xftalpha 0.8
    text_buffer_size 2048
    
    # 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_transparent yes
    own_window_type normal
    own_window_class conky
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    background no
    
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes
    
    # Minimum size of text area
    minimum_size 180 0
    #maximum_width 200
    
    # Draw shades?
    draw_shades no
    
    # Draw outlines?
    draw_outline yes
    
    # Draw borders around text
    draw_borders no
    
    # Stippled borders?
    stippled_borders 0
    
    # border margins
    border_inner_margin 5
    
    # border width
    border_width 1
    
    # Default colors and also border colors
    default_color white
    default_shade_color black
    default_outline_color black
    own_window_colour black
    color1 black
    
    # Text alignment, other possible values are commented
    #alignment top_left
    alignment top_right
    #alignment bottom_left
    #alignment bottom_right
    
    # Gap between borders of screen and text
    # same thing as passing -x at command line
    gap_x 15
    gap_y 45
    
    # 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 2
    
    # number of net samples to average
    # set to 1 to disable averaging
    net_avg_samples 2
    
    # Force UTF8? note that UTF8 support required XFT
    override_utf8_locale yes
    
    # Add spaces to keep things from moving about?  This only affects certain objects.
    use_spacer none
    
    temperature_unit fahrenheit
    
    
    TEXT
    ${voffset -35}${font OpenLogos:size=105}v${font Goudy Bookletter 1911:style=Bold:size=25}${voffset -60} 11.04
    ${font Goudy Bookletter 1911:style=Bold}SYSTEM${font} ${hr 2}
    ${voffset 2}${font StyleBats:size=16}i${font}   Kernel:  ${alignr}${kernel}
    ${font StyleBats:size=16}A${font}   CPU1: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60}
    ${font StyleBats:size=16}A${font}   CPU2: ${cpu cpu2}% ${alignr}${cpubar cpu2 8,60}
    ${font StyleBats:size=16}g${font}   RAM: $memperc% ${alignr}${membar 8,60}
    ${font StyleBats:size=16}j${font}   SWAP: $swapperc% ${alignr}${swapbar 8,60}
    ${voffset 4}${font Pie charts for maps:size=14}7${font}   ${voffset -5}HD: ${fs_used /}/${fs_size /} ${alignr}${fs_bar 8,60 /}
    ${voffset 4}${font Pie charts for maps:size=14}7${font}   ${voffset -5}HD Temperature: ${alignr}${hddtemp}F
    ${font Webdings:size=16}~${font}  CPU Frequency: ${alignr}${freq_g}Ghz 
    ${font StyleBats:size=16}l${font}  CPU Temperature: ${alignr}${hwmon temp 1}F
    ${font StyleBats:size=16}q${font}   Uptime: ${alignr}${uptime}
    
    ${font Goudy Bookletter 1911:style=Bold}WIRELESS${font} ${hr 2}
    ${voffset 4}${font PizzaDude Bullets:size=14}Z${font}   Signal: ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 8,60 wlan0}
    ${voffset 4}${font PizzaDude Bullets:size=14}O${font}   Up: ${upspeed wlan0} ${alignr}${upspeedgraph wlan0 8,60 000000 000000}
    ${voffset 4}${font PizzaDude Bullets:size=14}U${font}   Down: ${downspeed wlan0} ${alignr}${downspeedgraph wlan0 8,60 000000 000000}
    ${voffset 4}${font PizzaDude Bullets:size=14}N${font}   Upload: ${alignr}${totalup wlan0}
    ${voffset 4}${font PizzaDude Bullets:size=14}T${font}   Download: ${alignr}${totaldown wlan0}
    ${voffset 4}${font PizzaDude Bullets:size=14}a${font}   Local Ip: ${alignr}${addr wlan0}
    ${voffset 4}${font PizzaDude Bullets:size=14}a${font}   External Ip: ${alignr}${execi 3600 wget -O - http://ip.tupeux.com | tail}
    
    ${font Goudy Bookletter 1911:style=Bold}PROCESSES${font} ${hr 2}
    NAME $alignr PID    CPU
    ${top name 1} $alignr ${top pid 1} ${top cpu 1}
    ${top name 2} $alignr ${top pid 2} ${top cpu 2}
    ${top name 3} $alignr ${top pid 3} ${top cpu 3}
    ${top name 4} $alignr ${top pid 4} ${top cpu 4}
    ${top name 5} $alignr ${top pid 5} ${top cpu 5}
    #${top name 6} $alignr ${top pid 6} ${top cpu 6}
    
    ${font Goudy Bookletter 1911:style=Bold}WEATHER${font} ${hr 2}
    Location: ${execi 3600 conkyForecast --location=USMO0914 --datatype=CN --imperial}
    Conditions: ${execi 3600 conkyForecast --location=USMO0914 --datatype=CC --imperial}
    ${font ConkyWeather:size=36}${execi 3600 conkyForecast --location=USMO0914 --datatype=WF --imperial}${font}
    Temp: ${execi 3600 conkyForecast --location=USMO0914 --datatype=HT --imperial}
    
    Extended Forecast
    ${font ConkyWeather:size=36}${execi 3600 conkyForecast --startday=1 --endday=4 --location=USMO0914 --datatype=WF --imperial}${font}
    ${execi 3600 conkyForecast --location=USMO0914 --startday=1 --endday=4 --spaces=15 --datatype=HT --imperial}
    ${execi 3600 conkyForecast --location=USMO0914 --startday=1 --endday=4 --spaces=5 --datatype=DW --imperial}
    ${voffset -45}
    draw_bg.lua
    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=10
     
    -- Set the colour and transparency (alpha) of your background.
     
    bg_colour=0x000000
    bg_alpha=0.10
     
    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
    Attached Images Attached Images
    Last edited by drakejustice; May 4th, 2011 at 03:37 AM.

Page 1734 of 2327 FirstFirst ... 7341234163416841724173217331734173517361744178418342234 ... 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
  •