Page 1263 of 2325 FirstFirst ... 2637631163121312531261126212631264126512731313136317632263 ... LastLast
Results 12,621 to 12,630 of 23245

Thread: Post your .conkyrc files w/ screenshots

  1. #12621
    Join Date
    May 2009
    Location
    Michigan
    Beans
    156
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Post your .conkyrc files w/ screenshots

    I accomplished my Batman Beyond look by way of three custom Conky files, which I shall post if there is sufficient interest.
    Attached Images Attached Images
    Linux systems are like LEGOs :
    they are infinitely customizable
    and limited only by a user's imagination.


  2. #12622
    Join Date
    Sep 2009
    Location
    the land downunder
    Beans
    53
    Distro
    Ubuntu

    Re: Post your .conkyrc files w/ screenshots

    hey guys am looking for a simple (conky's version of simple) way to replace the bars with rings. 1 for 1 replace, not a group of nested rings.
    i have hacked at conky for weeks but cant get my head around it. *grumble.....complex codeing no prob......@#!$%&?!? conky....ooooh brick wall* *blink blink* what was i saying?!?.... oh yeah could you help me ?
    where in the code do i insert the call?


    Conkyrc
    Code:
    background yes
    update_interval 1.0
    total_run_times 0
    
    own_window yes
    
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
    minimum_size 300
    maximum_width 200
    alignment top_right
    
    use_xft yes
    xftfont HandelGotDLig:size=8
    xftalpha 0.1
    uppercase no
    override_utf8_locale yes
    use_spacer yes
    text_buffer_size 256
    
    default_color 0C7B7B
    default_shade_color 333333
    default_outline_color 00ff00
    
    draw_shades yes
    draw_outline no
    draw_borders no
    
    no_buffers yes
    cpu_avg_samples 2
    net_avg_samples 2
    
    # This is the number of times Conky will update before quitting.
    # Set to zero to run forever.
    total_run_times 0
    
    draw_graph_borders yes
    stippled_borders 0
    border_margin 0
    border_width 0
    
    # set to yes if you want all text to be in uppercase
    uppercase no
    
    # colours
    color1 white
    
    # cream
    color2 D2B16A
    
    # cyan
    color3 0C7B7B
    
    # green
    color4 00ff00
    
    # red
    color5 F352A9
    
    #dark cyan
    color6 074C4C
    
    #grey
    color7 6b6b6b
    
    #orange
    color8 FF8F05
    
    #yellow
    color9 F1BC49
    
    # -- Lua load -- #
    lua_load ~/.conky-scripts/rings-v1.2.1.lua
    lua_draw_hook_pre ring_stats
    
    
    
    TEXT
    ${voffset -35}${offset 55}${color}${font OpenLogos:size=100}$font
    ${voffset -55}${color}${hr 1}${color}test
    
    
    
    ${voffset 10}${color}${hr 1}
    ${color}${font bold:size=10}UpTime:${alignr}$uptime
    ${voffset -5}${color}${hr 1}
    #------- start of meter code -------
    ${color}${font bold:size=11}CPU Core 1:${font bold:size=8}
    Clock: ${freq 1}MHz${alignr}
    ${color}${cpu cpu1}% ${cpubar cpu1}
    
    
    
    
    ${color}${font bold:size=11}RAM:${font bold:size=8}
    $mem / $memmax
    $memperc% ${membar}${color}
    
    ${color}${font bold:size=11}Ubuntu:${font bold:size=8}
    ${fs_used /} / ${fs_size /}${alignr}Temp: ${color9}${execi 120 nc localhost 7634 | cut -c101-102 ;}°C
    ${color}${fs_used_perc /}% ${fs_bar /}
    
    ${font bold:size=11}DATA:${font bold:size=8}
    ${fs_used /media/DATA} / ${fs_size /media/DATA}${alignr}Temp: ${color9}${execi 120 nc localhost 7634 | cut -c101-102 ;}°C
    ${color}${fs_used_perc /media/DATA}% ${fs_bar /media/DATA}
    
    ${font bold:size=11}VERBATIM:${font bold:size=8}
    ${fs_used /media/VERBATIM} / ${fs_size /media/VERBATIM}${alignr}
    ${color}${fs_used_perc /media/VERBATIM}% ${fs_bar /media/VERBATIM}
    
    ${font bold:size=11}AKITS:${font bold:size=8}
    ${fs_used /media/AKITS} / ${fs_size /media/AKITS}${alignr}T
    ${color}${fs_used_perc /media/AKITS}% ${fs_bar /media/AKITS}
    # ------- end of meter code
    
    #${if_running rhythmbox}${execp conkyRhythmbox --template=/usr/share/conkyrhythmbox/example/conkyRhythmbox.template -n}      
    #${else}${color}${hr 1}
    
    #${endif}
    and the ring code:

    Code:
    --[[
    Ring Meters by londonali1010 (2009) 
    << Modified by Crinos512 with inspiration from Proxess >>
    <<< Modified some more by dmllerct >>>
     
    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 ~/.conky-scripts/rings-v1.2.1.lua
        lua_draw_hook_pre ring_stats
     
    Changelog:
    + v1.3 -- Added color_background to set colors to background ring as opposed to indicator ring -dmillerct (24.11.2009)
    + v1.2.1 -- Fixed minor bug that caused script to crash if conky_parse() returns a nil value (20.10.2009)
    + 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)
    ]]
            -- 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'.
            -- "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.
            -- "color_coding" is the variable that defines if there's a colour state level
            -- "coding_direction" simply indicates if it's a countdown (false) or a status (true)
            -- "color_backgroud" is a true / false value to determie if the background ring is what recieves the color_coding value as opposed to the foreground ring
            -- "warning" is the value that defines the state of the warning
            -- "warning_colour" is the value that defines the state of the warning
            -- "warning_alpha" is the alpha value of the indicator part of the ring during the state of the warning.
            -- "danger" is the value that defines the state of the danger
            -- "danger_colour" is the value that defines the state of the danger
            -- "danger_alpha" is the alpha value of the indicator part of the ring during the state of the danger.
    
    settings_table = {
        {
            name='cpu',        
            arg='cpu0',        
            max=100,        
            bg_colour=0xFFFFFF,        
            bg_alpha=0.0,        
            fg_colour=0xFFFFFF,        
            fg_alpha=0.8,        
            x=120, y=120,
            radius=65.5,
            thickness=15,
            start_angle=90,
            end_angle=450,
            colour_coding=false,
            coding_direction=false,
            color_background=false,
            warning=75,
            warning_colour=0xFFFF00,
            warning_alpha=0.8,
            danger=85,
            danger_colour=0xCC0000,
            danger_alpha=0.8
    
        },
        {
            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=90,
            end_angle=450,
            colour_coding=false,
            coding_direction=true,
            color_background=false,
            warning=60,
            warning_colour=0xFFFF00,
            warning_alpha=0.5,
            danger=85,
            danger_colour=0xCC0000,
            danger_alpha=0.5
        },
        {
            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=90,
            end_angle=450,
            colour_coding=true,
            coding_direction=true,
            color_background=false,
            warning=60,
            warning_colour=0xFF9900,
            warning_alpha=0.5,
            danger=85,
            danger_colour=0xCC0000,
            danger_alpha=0.5
        },
        {
            name='battery_percent',
            arg='',
            max=100,
            bg_colour=0x3366FF,
            bg_alpha=0.6,
            fg_colour=0xffffff,
            fg_alpha=1,
            x=120, y=120,
            radius=70,
            thickness=10,
            start_angle=90,
            end_angle=450,
            colour_coding=false,
            coding_direction=false,
            color_background=true,
            warning=75,
            warning_colour=0xFF9900,
            warning_alpha=1,
            danger=25,
            danger_colour=0xCC0000,
            danger_alpha=1
        },
        {
            
            name='wireless_link_qual_perc',
            arg='wlan0',
            max=100,
            bg_colour=0x000000,
            bg_alpha=0.3,
            fg_colour=0x007FFF,
            fg_alpha=0.5,
            x=100, y=125,
            radius=85,
            thickness=20,
            start_angle=-58,
            end_angle=58,
            colour_coding=true,
            coding_direction=false,
            warning=75,
            warning_colour=0x007FFF,
            warning_alpha=0.3,
            danger=50,
            danger_colour=0x007FFF,
            danger_alpha=0.1
    
        },
        {
            name='wireless_link_qual',
            arg='wlan0',
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.1,
            fg_colour=0xffffff,
            fg_alpha=1,
            x=120, y=460,
            radius=75.0,
            thickness=8,
            start_angle=90,
            end_angle=450,
            colour_coding=true,
            coding_direction=false,
            color_background=false,
            warning=20,
            warning_colour=0xFF9900,
            warning_alpha=0.8,
            danger=10,
            danger_colour=0xCC0000,
            danger_alpha=0.8
        },
        {
            name='upspeedf',
            arg='eth0',
            max=10000,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0xffffff,
            fg_alpha=1,
            x=120, y=460,
            radius=95.0,
            thickness=20,
            start_angle=290,
            end_angle=340,
            colour_coding=true,
            coding_direction=false,
            color_background=false,
            warning=75,
            warning_colour=0xFFFFFF,
            warning_alpha=0.3,
            danger=50,
            danger_colour=0xFFFFFF,
            danger_alpha=0.1
        },
        {
            name='downspeedf',
            arg='eth0',
            max=10000,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0xffffff,
            fg_alpha=1,
            x=120, y=460,
            radius=95.0,
            thickness=20,
            start_angle=200,
            end_angle=250,
            colour_coding=true,
            coding_direction=false,
            color_background=false,
            warning=75,
            warning_colour=0xFFFFFF,
            warning_alpha=0.3,
            danger=50,
            danger_colour=0xFFFFFF,
            danger_alpha=0.1
        },
        {
            name='wdownspeedf',
            arg='wlan0',
            max=1000,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0xffffff,
            fg_alpha=1,
            x=120, y=460,
            radius=95.0,
            thickness=20,
            start_angle=110,
            end_angle=160,
            colour_coding=true,
            coding_direction=false,
            color_background=false,
            warning=75,
            warning_colour=0xFFFFFF,
            warning_alpha=0.3,
            danger=50,
            danger_colour=0xFFFFFF,
            danger_alpha=0.1
        },
        {
            name='wupspeedf',
            arg='wlan0',
            max=1000,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0xffffff,
            fg_alpha=1,
            x=120, y=460,
            radius=95.0,
            thickness=20,
            start_angle=20,
            end_angle=70,
            colour_coding=true,
            coding_direction=false,
            color_background=false,
            warning=75,
            warning_colour=0xFFFFFF,
            warning_alpha=0.3,
            danger=50,
            danger_colour=0xFFFFFF,
            danger_alpha=0.1
        },
        {
            name='pppupspeedf',
            arg='ppp0',
            max=10000,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0xffffff,
            fg_alpha=1,
            x=120, y=460,
            radius=95.0,
            thickness=20,
            start_angle=200,
            end_angle=250,
            colour_coding=true,
            coding_direction=false,
            color_background=false,
            warning=75,
            warning_colour=0xFFFFFF,
            warning_alpha=0.3,
            danger=50,
            danger_colour=0xFFFFFF,
            danger_alpha=0.1
        },
        {
            name='pppdownspeedf',
            arg='ppp0',
            max=10000,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0xffffff,
            fg_alpha=1,
            x=120, y=460,
            radius=95.0,
            thickness=20,
            start_angle=200,
            end_angle=250,
            colour_coding=true,
            coding_direction=false,
            color_background=false,
            warning=75,
            warning_colour=0xFFFFFF,
            warning_alpha=0.3,
            danger=50,
            danger_colour=0xFFFFFF,
            danger_alpha=0.1
        },
        {
            name='acpitemp',
            arg='',
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.1,
            fg_colour=0xffffff,
            fg_alpha=1,
            x=120, y=290,
            radius=45.0,
            thickness=8,
            start_angle=90,
            end_angle=450,
            colour_coding=true,
            coding_direction=true,
            color_background=false,
            warning=65,
            warning_colour=0xFFFF00,
            warning_alpha=1,
            danger=80,
            danger_colour=0xCC0000,
            danger_alpha=1
        },
    }
    
     
    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)
        
        local wn, dn=pt['warning'], pt['danger']
        local cc, cd, wa, wc, da, dc, cb=pt['colour_coding'], pt['coding_direction'], pt['warning_alpha'], pt['warning_colour'], pt['danger_alpha'], pt['danger_colour'], pt['color_background']
    
        local str=''
        local value=0
    
        str=string.format('${%s %s}',pt['name'],pt['arg'])
        str=conky_parse(str)
        value=tonumber(str)
        
        -- Draw background ring
        cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
        cairo_set_line_width(cr,ring_w)
        if cb == false then
            cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
        else
            if cb == true then
                if value <= wn and value > dn then
                    cairo_set_source_rgba(cr,rgb_to_r_g_b(wc,wa))
                elseif value <= dn then
                    cairo_set_source_rgba(cr,rgb_to_r_g_b(dc,da))
                else
                    cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
                end
            else
                if value >= dn then
                    cairo_set_source_rgba(cr,rgb_to_r_g_b(dc,da))
                elseif value >= wn then
                    cairo_set_source_rgba(cr,rgb_to_r_g_b(wc,wa))
                else
                    cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
                end
            end
        end
        cairo_stroke(cr)
    
        -- Draw indicator ring
        cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
        if cc == false then
            cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
        else
            if cd == true then
                if value >= wn and value < dn then
                    cairo_set_source_rgba(cr,rgb_to_r_g_b(wc,wa))
                elseif value >= dn then
                    cairo_set_source_rgba(cr,rgb_to_r_g_b(dc,da))
                else
                    cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
                end
            else
                if value <= dn then
                    cairo_set_source_rgba(cr,rgb_to_r_g_b(dc,da))
                elseif value <= wn then
                    cairo_set_source_rgba(cr,rgb_to_r_g_b(wc,wa))
                else
                    cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
                end
            end
        end
        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)
            if value == nil then value = 0 end
            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>5 then
            for i in pairs(settings_table) do
                setup_rings(cr,settings_table[i])
            end
        end
    end
    Deja Moo: The feeling you've heard this bullsh*t before.

  3. #12623
    Join Date
    May 2010
    Location
    Toronto, Canada
    Beans
    0
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by dk75 View Post
    This is working for me in the terminal
    Code:
    #!/usr/bin/env python
    import os,webbrowser
    webbrowser.get('lynx')
    lynxcmd = "lynx -nonumbers -dump http://scores.espn.go.com/mlb/standings | egrep -i -A6 American\ League"
    data = os.popen(lynxcmd).read()
    print data
    Thanks DK75 for the help.. although there is still a problem with getting it to work with conky. The output works in the terminal.
    Anyways heres a more detailed description of the problem with images.
    In the .conkyrc file:
    .
    .
    .
    TEXT
    ${color F8F8FF}MLB ${hr 2}$color
    ${texeci 7200 lynx -nonumbers -dump http://scores.espn.go.com/mlb/standings | egrep -A6 "American League"}

    OUTPUT:


    As you can see the column don't line up properly. I'm thinking a tab function in each line should solve the problem, but not sure how to implement it.

  4. #12624
    Join Date
    Aug 2007
    Beans
    2

    Re: Post your .conkyrc files w/ screenshots

    Hi Halflifez,

    This made two tabbed columns - pid and cpu - starting from the right border :

    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}

    As far as I know the $alignr ignores the length of te names starting from the left, making nicely spaced columns.

    Regards, B.
    Last edited by basvos; May 13th, 2010 at 12:31 PM.

  5. #12625
    Join Date
    Apr 2010
    Location
    UK
    Beans
    17

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by miegiel View Post
    I know it's not what you asked for, but here's my battery one liner. Also says stuff like "Battery Charged" "No Battery Present"

    Code:
    # You can find info on the stuff above TEXT here : http://conky.sourceforge.net/config_settings.html
    # You can find info on the stuff below TEXT here : http://conky.sourceforge.net/variables.html
    #
    minimum_size 324 1
    gap_x 2
    gap_y 2
    alignment tr
    update_interval 10.0
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders no
    uppercase no
    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    own_window_colour black
    double_buffer yes
    use_xft yes
    xftfont Radio Space Bold:size=12
    default_color 333333
    
    TEXT
    ${alignr}${if_match "$battery" != "not present"}${battery_percent}% ${if_match "${exec cat /proc/acpi/battery/BAT0/state | grep charged | awk '{print $3}'}" != "charged"} ${exec cat /proc/acpi/battery/BAT0/state | grep capacity: | awk '{print $3 $4}'}  ${exec cat /proc/acpi/battery/BAT0/state | grep rate: | awk '{print $3 $4}'}  ${battery_time}${else}Battery Charged${endif}${else}No Battery Present${endif}
    Excellent! I didn't know about that file! I can just write a python script to convert the info in /proc/acpi/battery/BAT1/state. Awesome... screens to follow...

  6. #12626
    Join Date
    May 2009
    Beans
    9
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Post your .conkyrc files w/ screenshots

    Nothing special about mine but thanks for all the great info in this thread.

    Code:
    background yes
    use_xft yes
    xftfont augie=8
    xftalpha 1
    text_buffer_size 2048
    update_interval 1.0
    total_run_times 0
    own_window yes
    own_window_transparent yes
    own_window_type override
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
    minimum_size 240 5
    maximum_width 240
    draw_shades no
    draw_outline no
    draw_borders no
    border_width 1
    draw_graph_borders yes
    default_color FFC1C1
    default_shade_color black
    default_outline_color white
    alignment top_right
    gap_x 8
    gap_y 8
    no_buffers yes
    uppercase no
    cpu_avg_samples 2
    net_avg_samples 2
    override_utf8_locale yes
    use_spacer none
    short_units yes
    
    
    
    
    
    
    
    
    
    TEXT
    
    #weather
    ${color}${voffset -10}${goto 180}${font ConkyWeather:style=Bold:size=40}${execi 600 conkyForecast --location=LOCA1234 --datatype=WF}${font}
    ${voffset -50}${color FF8000}${font Weather:size=40}y${font}  ${voffset -38}${font augie:size=32}${execi 600 conkyForecast --location=LOCA1234 --datatype=HT --imperial}${goto 140}${voffset -10}${font augie:size=10}${execi 600 conkyForecast --location=LOCA1234 --datatype=HT}${font}
    
    ${color}${voffset 0}${font augie:size=8}${alignc 36}${execpi 600 conkyForecast --location=LOCA1234 --datatype=DW --startday=1 --shortweekday} ${alignc 8}${execpi 600 conkyForecast --location=LOCA1234 --datatype=DW --startday=2 --shortweekday} ${alignc -29}${execpi 600 conkyForecast --location=LOCA1234 --datatype=DW --startday=3 --shortweekday} ${alignc -64}${execpi 600 conkyForecast --location=LOCA1234 --datatype=DW --startday=4 --shortweekday}
    ${voffset 0}${alignc 75}${font ConkyWeather:size=28}${execpi 600 conkyForecast --location=LOCA1234 --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
    ${voffset 0}${font augie:size=7}${goto 35}${execpi 600 conkyForecast --location=LOCA1234 --datatype=HT --imperial --startday=1 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=LOCA1234 --datatype=LT --imperial --startday=1 --hideunits --centeredwidth=3} ${alignc -12}${execpi 600 conkyForecast --location=LOCA1234 --datatype=HT --imperial --startday=2 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=LOCA1234 --datatype=LT --imperial --startday=2 --hideunits --centeredwidth=3} ${alignc -38}${execpi 600 conkyForecast --location=LOCA1234 --datatype=HT --imperial --startday=3 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=LOCA1234 --datatype=LT --imperial --startday=3 --hideunits --centeredwidth=3} ${alignr 38}${execpi 600 conkyForecast --location=LOCA1234 --datatype=HT --imperial --startday=4 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=LOCA1234 --datatype=LT --imperial --startday=4 --hideunits --centeredwidth=3}
    
    ${goto 20}${color FF8000}${font augie:size=8}Wind: ${color}${execi 600 conkyForecast --location=LOCA1234 --datatype=WS --imperial}${font augie:size=8}${goto 140}${color FF8000}${font augie:size=8}Humidity: ${color}${execi 600 conkyForecast --location=LOCA1234 --datatype=HM}
    
    ${color FF8000}${font Pie charts for maps:size=14}x${font augie:size =8} System ${color}${stippled_hr 2}
    ${color CD3700}${cpugraph 18,115 444444 CD3700 cpu1}${alignr}${cpugraph 18,115 444444 CD3700 cpu2}
    ${color}${voffset -24}${goto 15}${font StyleBats:size=16}A${font augie:size=8}${voffset -1}  CPU1: ${cpu cpu1}% ${goto 140}${voffset -5}${font StyleBats:size=16}A${font augie:size=8}${voffset -1}  CPU2: ${cpu cpu2}% 
    ${color CD3700}${goto 25}${cpugauge cpu1 30,70}${goto 86}${font augie:size=8}${color}${execi 30 sensors | grep "Core 0" | cut -d "+" -f2 | cut -c1-6}${goto 150}${color CD3700}${cpugauge cpu2 30,70}${voffset -30}${goto 210}${font augie:size=8}${color}${execi 30 sensors | grep "Core 1" | cut -d "+" -f2 | cut -c1-6}
    
    ${color CD3700}${membar 18,115 fe9d9d 8b0000}${alignr}${swapbar 18,115 fdd68f ffa500}
    ${color}${voffset -30}${goto 15}${font StyleBats:size=16}k${font augie:size=8}${voffset -1}  RAM: $memperc% ${goto 140}${voffset -5}${font StyleBats:size=16}b${font augie:size=8}${voffset -1}  SWAP: $swapperc% 
    ${color FF8000}${font augie:style=Bold:size=8}           Name            PID  CPU MEM${font radio space:size=7}
            ${color CDB7B5}${goto 25}${top name 1}${goto 120}${color}${top pid 1}${goto 150}${top cpu 1}${goto 180}${top mem 1}
            ${color CDB7B5}${goto 25}${top name 2}${goto 120}${color}${top pid 2}${goto 150}${top cpu 2}${goto 180}${top mem 2}
            ${color CDB7B5}${goto 25}${top name 3}${goto 120}${color}${top pid 3}${goto 150}${top cpu 3}${goto 180}${top mem 3}
    ${color FF8000}${font augie:style=Bold:size=8}${alignc}Mem usage${font radio space:size=7}
        ${color CDB7B5}${goto 25}${top_mem name 1}${goto 120}${color}${top_mem pid 1}${goto 150}${top_mem cpu 1}${goto 180}${top_mem mem 1}
        ${color CDB7B5}${goto 25}${top_mem name 2}${goto 120}${color}${top_mem pid 2}${goto 150}${top_mem cpu 2}${goto 180}${top_mem mem 2}
        ${color CDB7B5}${goto 25}${top_mem name 3}${goto 120}${color}${top_mem pid 3}${goto 150}${top_mem cpu 3}${goto 180}${top_mem mem 3}
    ${font augie:size=8}${color FF8000}${alignc}Fans:
    ${color}${font augie:size =8}${voffset 0}${goto 50}${execi 30 sensors | grep fan1: | cut -c11-17}${goto 100}${execi 30 sensors | grep "fan3:" | cut -c11-17}${goto 150}${execi 30 sensors | grep "fan4:" | cut -c11-17}
    ${color FF8000}${font Pie charts for maps:size=14}7${font augie:size =8} HD ${color}${stippled_hr 2}
    ${color CD3700}$alignc${fs_bar 12,200 /}
    ${color}${font augie:size=8}${voffset -27}${goto 28}Root $alignc ${fs_used /} / ${fs_size /}${goto 180}${fs_used_perc /}%
    ${color CD3700}$alignc${fs_bar 12,200 /home}
    ${color}${font augie:size=8}${voffset -18}${goto 28}Home $alignc ${fs_used /home} / ${fs_size /home}${goto 180}${fs_used_perc /home}%
    ${color CD3700}$alignc${fs_bar 12,200 /media/F}
    ${color}${font augie:size=8}${voffset -18}${goto 28}F $alignc ${fs_used /media/F} / ${fs_size /media/F}${goto 180}${fs_used_perc /media/F}%
    ${color CD3700}$alignc${fs_bar 12,200 /media/H}
    ${color}${font augie:size=8}${voffset -18}${goto 28}H${alignc}${fs_used /media/H} / ${fs_size /media/H}${goto 180}${fs_used_perc /media/H}%
    ${color CD3700}$alignc${fs_bar 12,200 /media/G}
    ${color}${font augie:size=8}${voffset -18}${goto 28}G${alignc}${fs_used /media/sda6} / ${fs_size /media/sda6}${goto 180}${fs_used_perc /media/sda6}%
    
    ${color}${goto 50}${font augie:size=8}320GB: ${hddtemp /dev/sda}°C${font augie:size=8}    1TB: ${hddtemp /dev/sdb}°C   
    ${color}${goto 50}${font augie:size=8}640GB: ${hddtemp /dev/sdc}°C${font augie:size=8}   GPU: ${execi 10 nvidia-settings -q gpucoretemp |grep '):' | cut -d ' ' -f 6,6 | sed -e 's/.\{1\}$//'}°C
    ${color FF8000}${font PizzaDude Bullets:size=16}p${font augie:size =8} Network ${color}${stippled_hr 2}
    ${color CDB7B5}${font augie:style=Bold:size=8}${execi 1800 conkyEmail --mailinfo=3 --servertype=IMAP --servername=imap.googlemail.com --username=xxxxx@gmail.com --xxxxx --ssl} New gMail(s):
    
    ${color CD3700}${downspeedgraph eth0 20,115 444444 CD3700}${goto 130}${upspeedgraph eth0 20,115 444444 CD3700}
    ${color}${voffset -32}${goto 15}${font PizzaDude Bullets:size=16}r ${font augie:size =8}${downspeed eth0}${goto 140}${voffset -2}${font PizzaDude Bullets:size=16}v ${font augie:size =8}${voffset 2}${upspeed eth0}
    ${color FF8000}${goto 15}${font PizzaDude Bullets:size=16}S ${font augie:size =8}${totaldown eth0}${goto 140}${font PizzaDude Bullets:size=16}M ${font augie:size =8}${totalup eth0} 
    
    
    ${color}${voffset -10} ${color}${font augie:size=14}$alignc${time %A %d }
    ${color FF8000}${font augie:size=50}$alignc${time %H:%M}
    ${color}${font StyleBats:size=18}P${font augie:size =8}Uptime: ${goto 135}$uptime
    Attached Images Attached Images
    Last edited by cariboo; May 14th, 2010 at 03:40 AM. Reason: Remove huge inline image and replace with attachment

  7. #12627
    Join Date
    May 2010
    Location
    Toronto, Canada
    Beans
    0
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by basvos View Post
    Hi Halflifez,

    This made two tabbed columns - pid and cpu - starting from the right border :

    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}

    As far as I know the $alignr ignores the length of te names starting from the left, making nicely spaced columns.

    Regards, B.
    Been trying to implement it into the conky code, but cannot seem to get it to work. Have been looking around though, and "awk" using the "\t" function. It helps a bit in aligning the second row, but the rest still way off centred. This is because some numbers are double digits and others are single.

    Here's the code I've been working on:

    TEXT

    ${texeci 7200 lynx -nonumbers -dump http://scores.espn.go.com/mlb/standings | egrep -A6 "American League" | awk '{gsub(" "," \t");print}'| awk '{gsub("EAST","EAST \t");print}' | awk '{gsub("Tampa Bay","Tampa Bay\t");print}'| awk '{gsub("NY Yankees","NY Yankees\t ");print}'| awk '{gsub("Toronto","Toronto\t ");print}'| awk '{gsub("Boston ","Boston\t ");print}'| awk '{gsub("Baltimore ","Baltimore\t ");print}'}}

  8. #12628
    Join Date
    Nov 2009
    Location
    Assen, Netherlands
    Beans
    14
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Post your .conkyrc files w/ screenshots

    I have this (little) problem:

    Whenever I start or restart the computer conky comes up with a shaded background and the programs I start are overlayed with conky. Only when I open .conkyrc and save it conky stays in the background.
    Conky is in Startup Applications with: conky -q -d

    Code:
    This is my conkyrc:
    # UBUNTU-CONKY
    # A comprehensive conky script, configured for use on
    # Ubuntu / Debian Gnome, without the need for any external scripts.
    
    
    #font 5x7      # X font when Xft is disabled, you can pick one with program xfontsel
    #font 6x10
    #font 7x13
    #font 8x13
    #font 9x15
    #font Serif:size=6
    #font -*-*-*-*-*-*-35-*-*-*-*-*-*-*
    
    
    use_xft yes  # Use Xft?
    on_bottom yes  # Set conky on the bottom of all other applications
    xftfont Bitstream Vera Sans Mono:size=7  # Xft font when Xft is enabled
    xftalpha 10  # Text alpha when using Xft
    
    # out_to_console no  # Print everything to stdout?
    # out_to_console no  # Print everything to console?
    #mail_spool $MAIL  # mail spool
    
    update_interval .5  # Update interval in seconds
    total_run_times 0  # This is the number of times Conky will update before quitting. # Set to zero to run forever.
    own_window yes  # Create own window instead of using desktop (required in nautilus)
    own_window_type override  # If own_window is yes, you may use type normal, desktop or overide
    own_window_transparent yes  # Use pseudo transparency with own_window?
    
    #own_window_colour  # If own_window_transparent is set to no, you can set the background colour here
    
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager  # If own_window is yes, these window
                                                                       # manager hints may be used
    double_buffer yes  # Use double buffering (reduces flicker, may not work for everyone)
    #no_buffers yes
    minimum_size 400 10  # Minimum size of text area
    maximum_width 450  # Maximum width
    draw_shades no  # Draw shades?
    draw_outline no  # Draw outlines?
    draw_borders no  # Draw borders around text
    
    #stippled_borders  # Stippled borders?
    
    border_inner_margin 4  # border margins
    border_outer_margin 4
    border_width 10  # border width
    draw_graph_borders yes  # Draw graph. borders
    default_color white  # Default colors and also border colors
    default_shade_color black
    default_outline_color black
    #alignment top_left  # Text alignment, other possible values are commented
    alignment top_right
    #alignment bottom_left
    #alignment bottom_right
    #alignment none
    gap_x 10  # Gap between borders of screen and text, same thing as passing -x at command line
    gap_y 48
    no_buffers yes  # Subtract file system buffers from used memory?
    uppercase no  # set to yes if you want all text to be in uppercase
    short_units yes  #Shortens units to a single character (kiB->k, GiB->G, etc.)
    cpu_avg_samples 4  # number of cpu samples to average. Set to 1 to disable averaging
    net_avg_samples 2  # number of net samples to average, set to 1 to disable averaging
    override_utf8_locale no  # Force UTF8? note that UTF8 support required XFT
    use_spacer right  # Add spaces to keep things from moving about?  This only affects certain objects.
    
    # variable is given either in format $variable or in ${variable}. Latter
    # allows characters right after the variable and must be used in network
    # stuff because of an argument
    
    # stuff after 'TEXT' will be formatted on screen ##################################################
    
    TEXT
    # ---> System block <--- #
    $color
    ${color orange}SYSTEM ${stippled_hr 2}$color
    
    $nodename $sysname $kernel on $machine
    
    Hostname: ${color #dd3e00}$nodename
    
    ${color green}${time %A,} ${color }${time %e %B %G} ${color ddaa00}${time %H:%M:%S} ${alignr}${color lightgrey}Uptime: ${color #ddaa00}${uptime}
    
    
    # ---> CPU block <--- #
    ${color orange}CPU ${stippled_hr 2}$color
    
    ${color }${tab 20}AMD Phenom II X4 920 ${color lightgrey} Freqency: ${color ddaa00}${freq_g cpu0} ${color }Ghz
    
    CPU1 ${cpu cpu1}%${alignr} CPU2 ${cpu cpu2}%${alignr}
    ${cpugraph 15,140 0a5413 ff0000 cpu1 scale -l}${alignr}${cpugraph 15,140 330525 ffff00 cpu2 scale -l}
    CPU3 ${cpu cpu3}%${alignr} CPU4 ${cpu cpu4}%${alignr}
    ${cpugraph 15,140 5c0943 00ff00 cpu3 scale -l}${alignr}${cpugraph 15,140 5c0943 002bff cpu4 scale -l}
    
    ${color lightgrey}Load: ${color yellow}${loadavg}    ${color lightgrey}Proc Running: ${color cyan}${running_processes} ${color lightgrey}Proc Sleeping: ${color lightblue}${processes}
    
    
    # ---> Memory block <--- #
    ${color orange}MEMORY ${stippled_hr 2}$color
    
    RAM: ${color ddaa00}$mem / $memmax ${color cyan} $memperc%${color }${alignr}Swap: ${color grey} $swapperc%
    ${color cyan}${membar 15,140 2}$color${alignr}${color grey}${swapbar 15,140 6}${color}
    
    ${color }Top Memory Process: ${alignr}${color yellow}${top_mem name 1}${color cyan}${top_mem mem 1}${color} %
    
    
    # ---> Disk block <--- #
    ${color orange}DISK FREE ${stippled_hr 2}$color
    
    root     : ${color fe6c6c}${fs_bar 15,140 /} ${color} ${fs_used /} / ${fs_size /} ${color fe6c6c}${fs_free_perc /}%${color}
    download : ${color orange}${fs_bar 15,140 /media/download} ${color} ${fs_used /media/download} / ${fs_size /media/download} ${color orange}${fs_free_perc /media/download}%${color}
    disk 2   : ${color fdfe6c}${fs_bar 15,140 /media/Disk 2} ${color} ${fs_used /media/Disk 2} / ${fs_size /media/Disk 2} ${color fdfe6c}${fs_free_perc /media/Disk 2}%${color}
    reserve  : ${color 6ffe6c}${fs_bar 15,140 /media/Reserve} ${color} ${fs_used /media/Reserve} / ${fs_size /media/Reserve} ${color 6ffe6c}${fs_free_perc /media/Reserve}%${color}
    reserve 2: ${color 6c7bfe}${fs_bar 15,140 /media/Reserve 2} ${color} ${fs_used /media/Reserve 2} / ${fs_size /media/Reserve 2} ${color 6c7bfe}${fs_free_perc /media/Reserve 2}%${color}
    elements : ${color fe6cf8}${fs_bar 15,140 /media/Elements} ${color} ${fs_used /media/Elements} / ${fs_size /media/Elements} ${color fe6cf8}${fs_free_perc /media/Elements}%${color}
    
    ${color }  Hard disk IO: ${diskio_read} ${alignr}Hard disk IO: ${diskio_write}
    ${color }R ${diskiograph_read 15,140 3e3d39 04fb14 scale -l} ${alignr}${color }W ${diskiograph_write 15,140 3e3d39 fb0407 scale -l}
    
    
    # ---> Network block <--- #
    ${color orange}NETWORK (${addr eth0}) ${stippled_hr 2}$color
    
    Down: ${downspeed eth0}/s ${alignr}Up: ${upspeed eth0}/s
    ${downspeedgraph eth0 15,140 3e3d39 ff0000 scale -l} ${alignr}${upspeedgraph eth0 
    15,140 3e3d39 00ff00 scale -l}$color
    Total: ${totaldown eth0} ${alignr}Total: ${totalup eth0}
    
    Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768 
    61000 count}${alignr}Total: ${tcp_portmon 1 65535 count}
    
    
    # ---> Media block <--- # 
    ${color orange}MEDIA ${stippled_hr 2}$color
    ${if_running rhythmbox}
    ${color lightgrey}Rhythmbox
    ${color ffe7ba}Title : ${color 2499ff}${execi 20 rhythmbox-client --no-start --print-playing-format "%tt"}
    ${color ffe7ba}Album : ${color 2499ff}${execi 20 rhythmbox-client --no-start --print-playing-format "%at"}$alignr${color ffe7ba} CD:${color 2499ff}${execi 20 rhythmbox-client --no-start --print-playing-format "%aN"}
    ${color ffe7ba}Artist: ${color 2499ff}${execi 20 rhythmbox-client --no-start --print-playing-format "%aa"}$alignr${color ffe7ba}Track:${color 2499ff}${execi 20 rhythmbox-client --no-start --print-playing-format "%tN"}
    ${color #ffe7ba}Time: ${color 9acd32}${execi 1 rhythmbox-client --no-start --print-playing-format "%te / %td"}$alignr${color ffe7ba}Year: ${color 2499ff}${execi 20 rhythmbox-client --no-start --print-playing-format "%ay"}
    ${color 9acd32}${execbar sh /home/elendil/conky/rhythmboxbar.sh}
    ${else}
    ${color1}Rhythmbox not playing 
    $endif
    ${color lightgrey}Audacious
    ${color 2499ff}${exec audtool playlist-position}. ${exec audtool current-song}
    ${color ffe7ba}Time: ${color 9acd32}${exec audtool current-song-output-length}/${exec audtool current-song-length}
    ${color 9acd32}${execbar expr 100 \* $(audtool --current-song-output-length-seconds) \/ $(audtool --current-song-length-seconds)}
    What am I doing wrong?
    And what is the use/meaning of "xftalpha"?

    Thanks in advance!

  9. #12629
    Join Date
    May 2010
    Location
    Australia
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Post your .conkyrc files w/ screenshots

    elendilnl

    Try the attached bash-script to start conky with a delay.
    Copy it to you /home/"your user-name" and point startup applications to it.
    I trust you are using Gnome... and note the hidden . file name
    Attached Files Attached Files

  10. #12630
    Join Date
    Nov 2009
    Location
    Assen, Netherlands
    Beans
    14
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by bra|10n View Post
    elendilnl

    Try the attached bash-script to start conky with a delay.
    Copy it to you /home/"your user-name" and point startup applications to it.
    I trust you are using Gnome... and note the hidden . file name
    Thanks for the script my friend.
    As I'm a relative newbie I take it that I have to make this script executable?

Page 1263 of 2325 FirstFirst ... 2637631163121312531261126212631264126512731313136317632263 ... 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
  •