Page 1240 of 2325 FirstFirst ... 2407401140119012301238123912401241124212501290134017402240 ... LastLast
Results 12,391 to 12,400 of 23245

Thread: Post your .conkyrc files w/ screenshots

  1. #12391
    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 tmusquiez View Post
    oh heh i just made it a black wallpaper.

    Else it looks like this

    http://i41.tinypic.com/25au5he.png
    Change "background yes" to "background no"
    Registered Ubuntu User #29430

  2. #12392
    Join Date
    Jul 2007
    Location
    The U. S. of A.
    Beans
    163
    Distro
    Kubuntu Development Release

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by tmusquiez View Post
    oh heh i just made it a black wallpaper.

    Else it looks like this

    http://i41.tinypic.com/25au5he.png
    What Windows manager are you using? also do you have compositing enabled?
    || 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'

  3. #12393
    Join Date
    Jul 2007
    Location
    The U. S. of A.
    Beans
    163
    Distro
    Kubuntu Development Release

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by dmillerct View Post
    Change "background yes" to "background no"
    This is a common misconception.

    background (yes/no) refers to the process running in the background.
    Last edited by Crinos512; April 11th, 2010 at 09:35 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'

  4. #12394
    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

    if you are running a system with KDE (such as Kubuntu) you could find this link helpful:

    http://conky.linux-hardcore.com/?page_id=2326
    || 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'

  5. #12395
    Join Date
    Apr 2010
    Beans
    1

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Crinos512 View Post
    What Windows manager are you using? also do you have compositing enabled?
    I've only had kubuntu for a week so I have no idea how to tell.

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

    Re: Post your .conkyrc files w/ screenshots

    I use xubuntu and ubuntu, but wasn't there something odd with kubuntu and transparency?

  7. #12397
    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 miegiel View Post
    I use xubuntu and ubuntu, but wasn't there something odd with kubuntu and transparency?
    Yes, Kubuntu's Plasma layer sits between the X Desktop and your windows. setting the wallpaper changes the Plasma Layer, but not the X Desktop that Conky tries to mimic for (psudo-)"transparancy".

    This will be addressed (or has been, if you are using the alpha) in Conky 1.8.0.

    || 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'

  8. #12398
    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 Crinos512 View Post
    Yes, Kubuntu's Plasma layer sits between the X Desktop and your windows. setting the wallpaper changes the Plasma Layer, but not the X Desktop that Conky tries to mimic for (psudo-)"transparancy".

    This will be addressed (or has been, if you are using the alpha) in Conky 1.8.0.

    btw... 1.8.0 can be gotten by adding this repo to your sources:

    https://launchpad.net/~norsetto/+archive/ppa

    running the following command will do so but be forewarned that 1.8.0 is a release candidate...

    sudo add-apt-repository ppa:norsetto/ppa
    || 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'

  9. #12399
    Join Date
    Nov 2007
    Location
    Germany
    Beans
    3

    Re: Post your .conkyrc files w/ screenshots

    Hello opai



    The Wallpaper can you here download

    conkyrc
    PHP Code:
    use_xft yes
    xftfont Liberation Sans
    :size=8
    update_interval 1
    total_run_times 0
    double_buffer yes
    no_buffers yes
    text_buffer_size 1024
    own_window yes
    own_window_colour 3D3D3D
    own_window_type override
    own_window_transparent yes
    own_window_hints undecorated
    ,below,sticky,skip_taskbar,skip_pager
    own_window_class conky
    minimum_size 185 0 
    cpu_avg_samples 2
    maximum_width 185 
    net_avg_samples 2
    use_spacer none
    draw_shades no
    draw_outline no
    #border_margin 10 
    draw_borders no
    draw_graph_borders no
    border_inner_margin 0
    border_outer_margin 0

    #Ändern der Standardfarbe bei dunklen HintergrÃŒnden
    default_color 7A7AD7
    #Ändern der Standardfarbe bei hellen HintergrÃŒnden
    #default_color black

    color0 7A7AD7
    color1 FF0000
    color2 7A7AD7
    color3 7A7AD7
    color4 7A7AD7

    alignment tr
    uppercase no
    text_buffer_size 4096
    imlib_cache_size 0

    #minimum_size 1340 20
    #gap_x 20
    #Einstellung wenn conky oben
    gap_y 30
    #Einstellung wenn conky unten
    #gap_y 380

    # â€” Lua Load â€” #
    lua_load /home/gehrandt/.conky/conky_widgets.lua
    lua_draw_hook_pre widgets





    TEXT














    ${color4}SYSTEM ${hr 2}
    ${
    voffset 2}${color0}${font OpenLogos:size=16}J${font}${color3}     Kernel: ${alignr}${color2}${kernel}${color3}
    ${
    color0}${font StyleBats:size=16}A${font}${color3}   CPU1: ${font Liberation Sans:style=Bold:size=8}${color1}${cpu cpu1}%${color3}${font} ${alignr}${color2}${cpubar cpu1 8,60}${color3}
    ${
    color0}${font StyleBats:size=16}A${font}${color3}   CPU2: ${font Liberation Sans:style=Bold:size=8}${color1}${cpu cpu2}%${color3}${font} ${alignr}${color2}${cpubar cpu2 8,60}${color3}
    ${
    color0}${font StyleBats:size=16}g${font}${color3}   RAM: ${font Liberation Sans:style=Bold:size=8}${color1}$memperc%${color3}${font} ${alignr}${color2}${membar 8,60}${color3}











    ${
    color0}${font StyleBats:size=16}q${font}${color3}   Uptime: ${alignr}${color2}${uptime}${color3}
    ${
    color0}${font StyleBats:size=16}l${font}${color3}   Processes: ${color2}${alignr 13}CPU${alignr}Mem${color3}
             ${
    top name 1}${font Liberation Sans:style=Bold:size=8}${color1} ${alignr 10}${top cpu 1}${alignr }${top mem 1}${color3}${font}
             ${
    top name 2}${font Liberation Sans:style=Bold:size=8}${color1} ${alignr 10}${top cpu 2}${alignr }${top mem 2}${color3}${font}
    ${
    color4}DATE ${hr 2}
    ${
    alignc 45}${color2}${font Arial Black:size=30}${time %H:%M}${font}${color3}
    ${
    voffset 4}${color0}${font RsbillsDng:size=20}O${font}${color3}${voffset -4}${font Liberation Mono:size=8}${execpi 10800 DJS=`date +%_d`; cal sed 's/^/${alignc} /' sed s/$DJS "/" "'${font Liberation Mono:style=bold:size=8}${color1}'"$DJS"'${color3}${font}${font Liberation Mono:size=8}'" "/}${font}${font}
    ${
    color4}NETWORK ${hr 2}
    ${
    if_existing /proc/net/route wlan0}
    ${
    voffset -6}${color0}${font PizzaDude Bullets:size=14}O${font}${color3}   Up:      ${font Liberation Sans:style=Bold:size=8}${color1}${upspeed wlan0}${color3}${fontkb/${alignr}${upspeedgraph wlan0 8,60 ff0000 00ff00}
    ${
    voffset 4}${color0}${font PizzaDude Bullets:size=14}U${font}${color3}   Down: ${font Liberation Sans:style=Bold:size=8}${color1}${downspeed wlan0}${color3}${fontkb/${alignr}${downspeedgraph wlan0 8,60 ff0000 00ff00}
    ${
    voffset 4}${color0}${font PizzaDude Bullets:size=14}N${font}${color3}   Upload:   ${alignr}${totalup wlan0}
    ${
    voffset 4}${color0}${font PizzaDude Bullets:size=14}T${font}${color3}   Download: ${alignr}${totaldown wlan0}
    ${
    voffset 4}${color0}${font PizzaDude Bullets:size=14}a${font}${color3}   Local ip: ${alignr}${color2}${addr wlan0}${color3}
    ${else}${
    if_existing /proc/net/route eth0}
    ${
    voffset -6}${color0}${font PizzaDude Bullets:size=14}O${font}${color3}   Up:      ${font Liberation Sans:style=Bold:size=8}${color1}${upspeed eth0}${color3}${fontkb/${alignr}${upspeedgraph eth0 8,60 ff0000 00ff00}
    ${
    voffset 4}${color0}${font PizzaDude Bullets:size=14}U${font}${color3}   Down: ${font Liberation Sans:style=Bold:size=8}${color1}${downspeed eth0}${color3}${fontkb/${alignr}${downspeedgraph eth0 8,60 ff0000 00ff00}
    ${
    voffset 4}${color0}${font PizzaDude Bullets:size=14}N${font}${color3}   Upload:   ${alignr}${color2}${totalup eth0}${color3}
    ${
    voffset 4}${color0}${font PizzaDude Bullets:size=14}T${font}${color3}   Download: ${alignr}${color2}${totaldown eth0}${color3}
    ${
    voffset 4}${color0}${font PizzaDude Bullets:size=14}a${font}${color3}   Local ip: ${alignr}${color2}${addr eth0}${color3}
    ${endif}${else}${
    voffset 4}${color0}${font PizzaDude Bullets:size=12}4${font}${color3}   Network Unavailable
    ${endif} 
    conkyw
    PHP Code:
    use_xft yes
    xftfont terminus
    :size=8
    xftalpha 0.8
    font Zekton
    :size=8
    #font nasalization:size=8
    override_utf8_locale yes
    update_interval 20
    total_run_times 0
    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_hints undecorated
    ,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
    no_buffers yes
    use_spacer none
    default_color 7A7AD7

    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders no

    uppercase no
    border_inner_margin 0
    border_outer_margin 0

    alignment bl
    text_buffer_size 6144
    #minimum_size 200 200
    gap_y 670
    gap_x 5
    imlib_cache_size 0
    short_units yes
    pad_percents 2

    TEXT
    ${execpi 1800 python2.5 /usr/share/conkyforecast/conkyForecast.py --location=GMXX1336 --template=/home/gehrandt/.conky/weather-9.template
    conkyrss
    PHP Code:
    use_xft yes
    xftfont Liberation Sans
    :size=10
    override_utf8_locale yes
    update_interval 1
    total_run_times 0
    double_buffer yes
    no_buffers yes
    text_buffer_size 1024
    own_window yes
    own_window_colour 3D3D3D
    own_window_type override
    own_window_transparent yes
    own_window_hints undecorated
    ,below,sticky,skip_taskbar,skip_pager
    own_window_class conky
    minimum_size 285 0 
    cpu_avg_samples 2
    maximum_width 575 
    net_avg_samples 2
    use_spacer none
    draw_shades no
    draw_outline no
    #border_margin 10 
    draw_borders no
    draw_graph_borders no
    border_inner_margin 0
    border_outer_margin 0

    gap_y 170
    gap_x 5

    #Ändern der Standardfarbe bei dunklen HintergrÃŒnden
    default_color 7A7AD7
    #Ändern der Standardfarbe bei hellen HintergrÃŒnden
    #default_color black

    alignment tl
    uppercase no
    text_buffer_size 4096
    imlib_cache_size 0


    TEXT




    ${voffset 15}${color3}/ Tagesschau /${color}
    ${
    rss [url]http://www.tagesschau.de/xml/rss2[/url] 10 item_title 0}
    ${rss [url]http://www.tagesschau.de/xml/rss2[/url] 10 item_title 1}
    ${rss [url]http://www.tagesschau.de/xml/rss2[/url] 10 item_title 2}
    ${rss [url]http://www.tagesschau.de/xml/rss2[/url] 10 item_title 4}
    ${rss [url]http://www.tagesschau.de/xml/rss2[/url] 10 item_title 5}

    ${voffset 15}${color3}/ Heise Security /${color}
    ${
    rss [url]http://rss.feedsportal.com/c/32407/f/463925/index.rss[/url] 10 item_title 0}
    ${rss [url]http://rss.feedsportal.com/c/32407/f/463925/index.rss[/url] 10 item_title 1}
    ${rss [url]http://rss.feedsportal.com/c/32407/f/463925/index.rss[/url] 10 item_title 2}
    ${rss [url]http://rss.feedsportal.com/c/32407/f/463925/index.rss[/url] 10 item_title 4}
    ${rss [url]http://rss.feedsportal.com/c/32407/f/463925/index.rss[/url] 10 item_title 5}

    ${voffset 15}${color3}/ SearchSecurity /${color}
    ${
    rss [url]http://www.searchsecurity.de/rss/news.xml[/url] 10 item_title 0}
    ${rss [url]http://www.searchsecurity.de/rss/news.xml[/url] 10 item_title 1}
    ${rss [url]http://www.searchsecurity.de/rss/news.xml[/url] 10 item_title 2}
    ${rss [url]http://www.searchsecurity.de/rss/news.xml[/url] 10 item_title 4}
    ${rss [url]http://www.searchsecurity.de/rss/news.xml[/url] 10 item_title 5}

    ${voffset 15}${color3}/ Physik Blog /${color}
    ${
    rss [url]http://www.physik-blogger.de/feed/[/url] 10 item_title 0}
    ${rss [url]http://www.physik-blogger.de/feed/[/url] 10 item_title 1}
    ${rss [url]http://www.physik-blogger.de/feed/[/url] 10 item_title 2}
    ${rss [url]http://www.physik-blogger.de/feed/[/url] 10 item_title 4}
    ${rss [url]http://www.physik-blogger.de/feed/[/url] 10 item_title 5} 

    conky_widgets.lua
    PHP Code:
    --[[
    Conky Widgets by londonali1010 (2009)

    This script is meant to be a "shell" to hold a suite of widgets for use in Conky.

    To configure:
    Copy the widget's code block (will be framed by --(( WIDGET NAME )) and --(( END WIDGET NAME )), with "[" instead of "(") somewhere between "require 'cairo'" and "function conky_widgets()", ensuring not to paste into another widget's code block
    To call the widgetadd the following just before the last "end" of the entire script:
        
    cr cairo_create(cs)
        
    NAME_OF_FUNCTION(crOPTIONS)
        
    cairo_destroy(cr)
    Replace OPTIONS with the options for your widget (should be specified in the widget's code block) 

    Call this script in Conky using the following before TEXT (assuming you save this script to ~/scripts/conky_widgets.lua):
        lua_load /home/gehrandt/.conky/conky_widgets.lua
        lua_draw_hook_pre widgets
        
    Changelog:
    + v1.0 -- Original release (17.10.2009)
    ]]

    require '
    cairo'

    --[[ AIR CLOCK WIDGET ]]
    --[[ Options (xc, yc, size):
        "xc" and "yc" are the x and y coordinates of the centre of the clock, in pixels, relative to the top left of the Conky window
        "size" is the total size of the widget, in pixels ]]

    function air_clock(cr, xc, yc, size)
        local offset = 0
        
        shadow_width = size * 0.03
        shadow_xoffset = 0
        shadow_yoffset = size * 0.01
        
        if shadow_xoffset >= shadow_yoffset then
            offset = shadow_xoffset
        else offset = shadow_yoffset
        end
        
        local clock_r = (size - 2 * offset) / (2 * 1.25)
            
        show_seconds=true
        
        -- Grab time
        
        local hours=os.date("%I")
        local mins=os.date("%M")
        local secs=os.date("%S")
        
        secs_arc=(2*math.pi/60)*secs
        mins_arc=(2*math.pi/60)*mins
        hours_arc=(2*math.pi/12)*hours+mins_arc/12
        
        -- Drop shadow
        
        local ds_pat=cairo_pattern_create_radial(xc+shadow_xoffset,yc+shadow_yoffset,clock_r*1.25,xc+shadow_xoffset,yc+shadow_yoffset,clock_r*1.25+shadow_width)
        cairo_pattern_add_color_stop_rgba(ds_pat,0,0,0,0,0)  -- ,0,0,0,0.2
        cairo_pattern_add_color_stop_rgba(ds_pat,0,0,0,0,0) -- ,1,0,0,0,0
        
        cairo_move_to(cr,0,0)
        cairo_line_to(cr,conky_window.width,0)
        cairo_line_to(cr,conky_window.width, conky_window.height)
        cairo_line_to(cr,0,conky_window.height)
        cairo_close_path(cr)
        cairo_new_sub_path(cr)
        cairo_arc(cr,xc,yc,clock_r*1.25,0,2*math.pi)
        cairo_set_source(cr,ds_pat)
        cairo_set_fill_rule(cr,CAIRO_FILL_RULE_EVEN_ODD)
        cairo_fill(cr)
        
        -- Glassy border
        
        cairo_arc(cr,xc,yc,clock_r*1.25,0,2*math.pi)
        cairo_set_source_rgba(cr,0,0,0,0) -- ,0.5,0.5,0.5,0.2
        cairo_set_line_width(cr,1)
        cairo_stroke(cr)
        
        local border_pat=cairo_pattern_create_linear(xc,yc-clock_r*1.25,xc,yc+clock_r*1.25)
        
        cairo_pattern_add_color_stop_rgba(border_pat,0,0,0,0,0) -- ,0,1,1,1,0.7
        cairo_pattern_add_color_stop_rgba(border_pat,0,0,0,0,0) -- ,0.3,1,1,1,0
        cairo_pattern_add_color_stop_rgba(border_pat,0,0,0,0,0) -- ,0.5,1,1,1,0
        cairo_pattern_add_color_stop_rgba(border_pat,0,0,0,0,0) -- ,0.7,1,1,1,0
        cairo_pattern_add_color_stop_rgba(border_pat,0,0,0,0,0) -- ,1,1,1,1,0.7
        cairo_set_source(cr,border_pat)
        cairo_arc(cr,xc,yc,clock_r*1.125,0,2*math.pi)
        cairo_close_path(cr)
        cairo_set_line_width(cr,clock_r*0.25)
        cairo_stroke(cr)
        
        -- Set clock face
        
        cairo_arc(cr,xc,yc,clock_r,0,2*math.pi)
        cairo_close_path(cr)
        
        local face_pat=cairo_pattern_create_radial(xc,yc-clock_r*0.75,0,xc,yc,clock_r)
        
        cairo_pattern_add_color_stop_rgba(face_pat,0,0,0,0,0)        -- ,0,1,1,1,0.9
        cairo_pattern_add_color_stop_rgba(face_pat,0,0,0,0,0)      -- ,0.5,1,1,1,0.9
        cairo_pattern_add_color_stop_rgba(face_pat,0,0,0,0,0)  -- ,1,0.9,0.9,0.9,0.9
        cairo_set_source(cr,face_pat)
        cairo_fill_preserve(cr)
        cairo_set_source_rgba(cr,0,0,0,0) -- ,0.5,0.5,0.5,0.2
        cairo_set_line_width(cr, 1)
        cairo_stroke (cr)
        
        -- Draw hour hand
        
        xh=xc+0.7*clock_r*math.sin(hours_arc)
        yh=yc-0.7*clock_r*math.cos(hours_arc)
        cairo_move_to(cr,xc,yc)
        cairo_line_to(cr,xh,yh)
        
        cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
        cairo_set_line_width(cr,5)
        cairo_set_source_rgba(cr,0,0,0,0.8) -- ,0,0,0,0.4
        cairo_stroke(cr)
        
        -- Draw minute hand
        
        xm=xc+0.9*clock_r*math.sin(mins_arc)
        ym=yc-0.9*clock_r*math.cos(mins_arc)
        cairo_move_to(cr,xc,yc)
        cairo_line_to(cr,xm,ym)
        
        cairo_set_line_width(cr,3)
        cairo_stroke(cr)
        
        -- Draw seconds hand
        
        if show_seconds then
            xs=xc+0.9*clock_r*math.sin(secs_arc)
            ys=yc-0.9*clock_r*math.cos(secs_arc)
            cairo_move_to(cr,xc,yc)
            cairo_line_to(cr,xs,ys)
        
            cairo_set_line_width(cr,1)
            cairo_stroke(cr)
        end
    end

    --[[ END AIR CLOCK WIDGET ]]

    --[[ RING WIDGET ]]
    --[[ Options (name, arg, max, bg_colour, bg_alpha, xc, yc, radius, thickness, start_angle, end_angle):
        "name" is the type of stat to display; you can choose from '
    cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
        "arg" is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, '
    cpu0' would be the argument. If you would not use an argument in the Conky variable, use ''.
        "max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
        "bg_colour" is the colour of the base ring.
        "bg_alpha" is the alpha value of the base ring.
        "fg_colour" is the colour of the indicator part of the ring.
        "fg_alpha" is the alpha value of the indicator part of the ring.
        "x" and "y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.
        "radius" is the radius of the ring.
        "thickness" is the thickness of the ring, centred around the radius.
        "start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
        "end_angle" is the ending angle of the ring, in degrees, clockwise from top. Value can be either positive or negative, but must be larger (e.g. more clockwise) than start_angle. ]]

    function ring(cr, name, arg, max, bgc, bga, fgc, fga, xc, yc, r, t, sa, ea)
        local function rgb_to_r_g_b(colour,alpha)
            return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
        end
        
        local function draw_ring(pct)
            local angle_0=sa*(2*math.pi/360)-math.pi/2
            local angle_f=ea*(2*math.pi/360)-math.pi/2
            local pct_arc=pct*(angle_f-angle_0)

            -- Draw background ring

            cairo_arc(cr,xc,yc,r,angle_0,angle_f)
            cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
            cairo_set_line_width(cr,t)
            cairo_stroke(cr)
        
            -- Draw indicator ring

            cairo_arc(cr,xc,yc,r,angle_0,angle_0+pct_arc)
            cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
            cairo_stroke(cr)
        end
        
        local function setup_ring()
            local str = ''
            local value = 0
            
            str = string.format('
    ${%%s}', name, arg)
            str = conky_parse(str)
            
            value = tonumber(str)
            if value == nil then value = 0 end
            pct = value/max
            
            draw_ring(pct)
        end    
        
        local updates=conky_parse('
    ${updates}')
        update_num=tonumber(updates)
        
        if update_num>5 then setup_ring() end
    end

    --[[ END RING WIDGET ]]

    --[[ GRADIENT RING WIDGET ]]
    --[[ Options (name, arg, max, colour, alpha, x, y, inner_radius, outer_radius, frac, thickness, start_angle, end_angle):
            "name" is the type of stat to display; you can choose from '
    cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
            "arg" is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, '
    cpu0' would be the argument. If you would not use an argument in the Conky variable, use ''.
            "max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
            "fg_colour" is the colour of the ring.
            "fg_alpha" is the alpha value of the ring.
            "x" and "y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.
            "inner_radius" is the inner radius of the ring.
            "outer_radius" is the outer radius of the ring.  
            "frac" determines the extent of the gradient around the ring - 2 implies the gradient fades halfway around the ring, 4 equals a quarter of the way, etc...      
            "thickness" is the thickness of the ring, centred around the radius.
            "start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
            "end_angle" is the ending angle of the ring, in degrees, clockwise from top. Value can be either positive or negative, but must be larger (e.g. more clockwise) than start_angle. ]]
         
    function gradient_ring(cr, name, arg, max, fgc, fga, xc, yc, ring_i, ring_o, frac, t, sa, ea)
            local function rgb_to_r_g_b(colour,alpha)
                return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
            end
         
            local function draw_gradient_ring(pct)
                local angle_0=sa*(2*math.pi/360)-math.pi/2
                local angle_f=ea*(2*math.pi/360)-math.pi/2
                local pct_arc=pct*(angle_f-angle_0)
         
                for i = 1,max/frac do
                    cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga*i/max)) --for flat shading of bars
            
                    --local pat=cairo_pattern_create_linear(xc-ring_i*math.sin(angle_0+t_arc+2*math.pi*i/max),yc+ring_i*math.cos(angle_0+t_arc+2*math.pi*i/max),xc-ring_o*math.sin(angle_0+t_arc+2*math.pi*i/max),yc+ring_o*math.cos(angle_0+t_arc+2*math.pi*i/max))
                    --cairo_pattern_add_color_stop_rgba(pat,0,rgb_to_r_g_b(fgc,0))
                    --cairo_pattern_add_color_stop_rgba(pat,1,rgb_to_r_g_b(fgc,fga*i/max))
                    --cairo_set_source(cr,pat) -- for gradient shading of bars
            
                    cairo_move_to(cr,xc-ring_i*math.cos(angle_0+pct_arc+2*math.pi*i/max),yc-ring_i*math.sin(angle_0+pct_arc+2*math.pi*i/max))
                    cairo_line_to(cr,xc-ring_o*math.cos(angle_0+pct_arc+2*math.pi*i/max),yc-ring_o*math.sin(angle_0+pct_arc+2*math.pi*i/max))
        
                    cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
                    cairo_set_line_width(cr,t)
                    cairo_stroke(cr)
                end
            end
         
            local function setup_gradient_ring()
                local str = ''
                local value = 0
         
                str = string.format('
    ${%%s}', name, arg)
                str = conky_parse(str)
         
                value = tonumber(str)
                if value == nil then value = 0 end
                pct = value/max
         
                draw_gradient_ring(pct)
            end    
         
            local updates=conky_parse('
    ${updates}')
            update_num=tonumber(updates)
         
            if update_num>5 then setup_gradient_ring() end
        end
         
    --[[ END GRADIENT RING WIDGET ]]

    --[[ PIE WIDGET ]]
    --[[ xc,yc - center of the pie
         r - radius of the pie ]]

    function pie_rings (xc, yc, r)

        pat = cairo_pattern_create_radial (xc, yc, 0.2*r, xc,  yc, r);
        cairo_pattern_add_color_stop_rgba (pat, 0.1, 1, 1, 1, 0);
        cairo_pattern_add_color_stop_rgba (pat, 1.0, 1, 1, 1, 0.3);
        cairo_set_source (cr, pat);
        cairo_arc (cr, xc, yc, r, 0, 2 * math.pi);
        cairo_fill (cr);
        cairo_pattern_destroy (pat);


        cairo_set_font_size (cr, 10)
        cairo_select_font_face (cr, "LCDMono",
                    CAIRO_FONT_SLANT_NORMAL,
                    CAIRO_FONT_WEIGHT_NORMAL)    
        cairo_set_line_width (cr, 2.0)

        -- Show total mem usage
        local str1 = conky_parse(string.format('
    ${mem}'))
        local str2 = string.match(str1, "(%d+)")
        local str3 = string.match(str1, "(%a+)")

        cairo_set_source_rgba(cr, 1, 1, 1, 1)
        cairo_move_to (cr, xc-9, yc-1)
        cairo_show_text (cr, str2)
        cairo_move_to (cr, xc-9, yc+9)
        cairo_show_text (cr, str3)
        cairo_stroke(cr)

        -- Get top mem usage
        local str1 = conky_parse(string.format('
    ${mem}'))
        local mem = tonumber(string.match(str1, "(%d+)"))
        local str1 = conky_parse(string.format('
    ${memperc}'))
        local mempct = tonumber(string.match(str1, "(%d+)"))
        
        -- Draw pie
        local angle = -90
        local angle2 = 0
        local tro = 4        -- Text rotational offset (degrees)
        local maxprocesses = 7
        local maxstrlen = 8

        for process = 1, maxprocesses do

            cairo_save(cr)
        
            -- Get top process memory usage
            local str2 = conky_parse(string.format('
    ${top_mem mem %i}', tonumber(process)))
            local mem_process = tonumber(str2)
            if mem_process == nil then mem_process = 0 end
        local procpct = mem_process / mempct
            angle2 = angle + (procpct*360)

            if angle2 > 260 then
                cairo_restore(cr)
                break
            end    

            -- Get top process name
            local str2 = conky_parse(string.format('
    ${top_mem name %i', tonumber(process)))
            local index = string.find(str2,' ')
            
            if (index == nil) then
                cairo_restore(cr)
                break
            elseif (index > maxstrlen) then
                str2 = string.sub(str2, 0, maxstrlen)
            end

            -- Draw pie outline
            cairo_set_source_rgba(cr, 1, 1, 1, 0.2)        
            cairo_arc_negative (cr, xc, yc, 0.2*r, angle2*(math.pi/180), angle*(math.pi/180));            
            cairo_arc (cr, xc, yc, r, angle*(math.pi/180), angle2*(math.pi/180));    
    --        cairo_close_path(cr)
            cairo_stroke(cr)

            -- Draw text
            cairo_set_source_rgba(cr, 1, 1, 1, 1)    
            cairo_move_to(cr, xc, yc)
            cairo_rotate(cr, (angle2-((angle2-angle)/2)+tro)*(math.pi/180))
    --        cairo_show_text (cr, '    '..(procpct*100))
            if (index > maxstrlen) then
                cairo_show_text (cr, '      '..str2..'
    ..')
            else
                cairo_show_text (cr, '      '..str2)
            end        

            angle = angle2 + 3

            cairo_stroke(cr)
            cairo_restore(cr)
        end

        if (angle < 264) then
            angle2 = 267
            cairo_set_source_rgba(cr, 1, 1, 1, 0.2)    
            cairo_arc_negative (cr, xc, yc, 0.2*r, angle2*(math.pi/180), angle*(math.pi/180));
            cairo_arc (cr, xc, yc, r, angle*(math.pi/180), angle2*(math.pi/180));    
    --        cairo_close_path(cr)
            cairo_stroke(cr)
            
            if ((angle2 - angle) > 20) then
                cairo_set_source_rgba(cr, 1, 1, 1, 0.5)    
                cairo_move_to(cr, xc, yc)
                cairo_rotate(cr, (angle2-((angle2-angle)/2)+tro+2)*(math.pi/180))
                cairo_show_text (cr, '      '..'
    other')
                cairo_stroke(cr)
            end
        end
    end
    --[[ END PIE WIDGET ]]

    function conky_widgets()
        if conky_window == nil then return end
        local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
        
        cr = cairo_create(cs)
        air_clock(cr, 90, 90, 200) -- options: xc, yc, size
        cairo_destroy(cr)
        
        cr = cairo_create(cs)
        ring(cr, '
    time', '+%S', 60, 0xE3E3E3, 0, 0xFFFF00, 0.7, 90, 90, 70, 4, 0, 360) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle
        cairo_destroy(cr)
        
        cr = cairo_create(cs)
        ring(cr, '
    time', '+%M', 60, 0xE3E3E3, 0.1, 0x00CD00, 0.7, 90, 90, 64, 7, 0, 360) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle
        cairo_destroy(cr)
        
        cr = cairo_create(cs)
        ring(cr, '
    time', '+%H', 24, 0xE3E3E3, 0.2, 0xffffff, 0.7, 90, 90, 53, 14, 0, 360) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle
        cairo_destroy(cr)
        
        cr = cairo_create(cs)
        ring(cr, '
    battery_percent', 'BAT0', 100, 0xFF0000, 0.4, 0xFFFF00, 0, 90, 90, 80, 14, 0, 180) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle
        cairo_destroy(cr)
        
        cr = cairo_create(cs)
        ring(cr, '
    battery_percent', 'BAT0', 100, 0xFF0000, 0.8, 0xFFFF00, 0, 90, 90, 75, 4, 180, 360) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle
        cairo_destroy(cr)
        
        cr = cairo_create(cs)
        ring(cr, '
    battery_percent', 'BAT0', 100, 0xFF0000, 0.8, 0xFFFF00, 0, 90, 90, 86, 2, 180, 360) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle
        cairo_destroy(cr)

       cr = cairo_create(cs)
        local w = conky_window.width
        local h = conky_window.height

        r = 75
        xc = 90
        yc = 360
        
        local updates=conky_parse('
    ${updates}')
        update_num=tonumber(updates)
        
        if update_num>5 then
            pie_rings(xc, yc, r)
        end

            cairo_destroy(cr)

    end 
    weather-9.template is from searchOne, this here:
    http://ubuntuforums.org/showpost.php...postcount=1819
    Last edited by beidiefische; April 12th, 2010 at 09:45 AM.

  10. #12400
    Join Date
    Jul 2005
    Location
    The Netherlands
    Beans
    209
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Post your .conkyrc files w/ screenshots

    Isn't Conky 1.8.0 in Lucid repositories or in the Conky Hardcore PPA? I'm pretty sure that's the Conky version I have. I'll give it a look when I get home.

    Are there any examples around of how to use RGBA ou ARGB in Conky 1.8.0?
    Laptop: i7 4800MQ 2.7GHz (~3.7GHz); 2x 4GB Kingston HyperX Genesis 1600MHz; Nvidia 780M 4GB; Crucial M4 256GB SSD; Ubuntu 14.04 LTS x64 and Windows 8.1 x64.
    Ubuntu #8076 / Linux #429448

Page 1240 of 2325 FirstFirst ... 2407401140119012301238123912401241124212501290134017402240 ... 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
  •