Page 2217 of 2348 FirstFirst ... 1217171721172167220722152216221722182219222722672317 ... LastLast
Results 22,161 to 22,170 of 23480

Thread: Post your .conkyrc files w/ screenshots

  1. #22161
    Join Date
    Oct 2012
    Beans
    148

    Re: Post your .conkyrc files w/ screenshots

    Here's a screenshot of my fairly basic conky. I compiled manually because by default you can't display the battery power.

    Code:
    # Colors for dark background
    
    # Set to yes if you want Conky to be forked in the background
    background yes
    
    
    # Use Xft?
    use_xft yes
    
    
    # Xft font when Xft is enabled
    #xftfont Trebuchet MS:size=10
    
    
    # Text alpha when using Xft
    xftalpha 0.9
    
    
    # Update interval in seconds
    update_interval 1.0
    update_interval_on_battery 5.0
    
    
    # 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
    
    
    # If own_window is yes, you may use type normal, desktop or override
    # Panel mode seems to keep it from closing when show desktop is clicked
    own_window_type normal
    
    
    # Use pseudo transparency with own_window?
    own_window_transparent yes
    
    
    # If own_window is yes, these window manager hints may be used
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    
    
    # Window color
    # own_window_colour gray
    
    
    # Use conky's argb transparency
    own_window_argb_visual yes
    own_window_argb_value 90
    
    
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes
    
    
    # Minimum size of text area
    #minimum_size 210 480
    minimum_size 210 220
    
    
    # Maximum width
    maximum_width 220
    
    
    # Draw shades?
    draw_shades no
    
    
    # Draw outlines?
    draw_outline no
    
    
    # Draw borders around text
    draw_borders no
    
    
    # Draw borders around graphs
    draw_graph_borders yes
    
    
    # Stippled borders?
    # stippled_borders 8
    
    
    # border margins
    # border_margin 2
    
    
    # border width
    # border_width 1
    
    
    # Default colors and also border colors
    default_color EEEEEC #Default GNOME off-white
    default_shade_color red
    default_outline_color green
    
    
    # Text alignment, other possible values are commented
    #alignment top_left
    alignment top_right
    #alignment bottom_left
    #alignment bottom_right
    #alignment none
    
    
    # Gap between borders of screen and text
    # same thing as passing -x at command line
    gap_x 8
    gap_y 36
    
    
    # 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
    cpu_avg_samples 1
    
    
    # Force UTF8? note that UTF8 support required XFT
    override_utf8_locale no
    
    
    # -- Lua Load -- #
    lua_load ~/Scripts/draw_bg.lua
    lua_draw_hook_pre draw_bg
    
    
    # variable is given either in format $variable or in ${variable}
    # stuff after 'TEXT' will be formatted on screen
    
    
    TEXT
    #${font Ubuntu:style=Bold:size=35}${alignc}${time %l:%M %p}${font Trebuchet MS:size=20}
    #${font Purisa:size=20}${alignc}${color2}${time %b %d, %Y}${font Trebuchet MS:size=10}
    #
    ${font Cantarell Bold:size=7}
    ## System info
    ${goto 6}${font OpenLogos:size=36}u${font Cantarell Bold:size=10}${goto 52}${voffset -37}${goto 60}Ubuntu GNOME 13.04
    ${goto 52}${goto 60}$nodename
    ${goto 52}${goto 60}$kernel${font Cantarell Bold:size=7}
    
    
    #Uptime
    ${goto 16}${font Cantarell Bold:size=9}uptime${font Cantarell Bold:size=10}${goto 65}${voffset -2}$uptime${font Cantarell Bold:size=7}
    
    
    #CPU
    ${goto 16}${font Cantarell Bold:size=9}cpu${goto 65}${font Cantarell Bold:size=10}${voffset -2}${cpu cpu0}%${goto 105}${cpubar 10,100 cpu0}
    #RAM
    ${goto 16}${font Cantarell Bold:size=9}ram${goto 65}${font Cantarell Bold:size=10}${voffset -2}${memperc}%${goto 105}${membar 10,100}${font Cantarell Bold:size=7}
    
    
    #File system
    #${goto 16}${font Cantarell Bold:size=9}home${goto 65}${font Cantarell Bold:size=10}${voffset -2}${fs_used_perc /home}%${goto 105}${fs_bar 10,100 /home}
    #${goto 16}${font Cantarell Bold:size=9}root${goto 65}${font Cantarell Bold:size=10}${voffset -2}${fs_used_perc /}%${goto 105}${fs_bar 10,100 /}${font Cantarell Bold:size=7}
    #
    #Battery, cpu temp, fan speed
    ${goto 16}${font Cantarell Bold:size=9}temp${font Cantarell Bold:size=10}${goto 65}${voffset -2}${acpitemp} deg. C
    ${goto 16}${font Cantarell Bold:size=9}fan${font Cantarell Bold:size=10}${goto 65}${voffset -2}${ibm_fan} RPM${font Cantarell Bold:size=9}
    
    
    ${goto 16}${font Cantarell Bold:size=9}bat${font Cantarell Bold:size=10}${goto 65}${voffset -7}${battery_percent}%
    ${goto 65}${battery_rate} W
    And the lua script:

    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 draw_bg
    
    
    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=45
    
    
    -- Set the colour and transparency (alpha) of your background.
    
    
    bg_colour=0x000000
    bg_alpha=0.9
    
    
    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

  2. #22162
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by montag dp View Post
    Here's a screenshot of my fairly basic conky. I compiled manually because by default you can't display the battery power.
    NICE! Clean clear concise!

    londonali1010's original draw_bg.lua has a memory leak ... but has been fixed by many.

    One fixed version is this:
    Code:
    --[[Background originally by londonali1010 (2009)
        ability to set any size for background mrpeachy 2011
        ability to set variables for bg in conkyrc dk75
    
      the change is that if you set width and/or height to 0
      then it assumes the width and/or height of the conky window
    
    so:
    
    Above and After TEXT  (requires a composite manager or it blinks!)
    
     lua_load ~/wea_conky/draw_bg.lua
     TEXT
     ${lua conky_draw_bg 10 0 0 0 0 0x000000 0.2}
    
    OR Both above TEXT (no composite manager required - no blinking!)
    
     lua_load ~/wea_conky/draw_bg.lua
     lua_draw_hook_pre draw_bg 10 0 0 0 0 0x000000 0.2
     TEXT
    
    Note
    ${lua conky_draw_bg 20 0 0 0 0 0x000000 0.2}
      See below:        1  2 3 4 5 6        7
    
    ${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
    
    covers the whole window and will change if you change the minimum_size setting
    
    1 = 20             corner_radius
    2 = 0             x_position
    3 = 0             y_position
    3 = 0             width
    5 = 0             height
    6 = 0x000000      color
    7 = 0.4           alpha
    
    ######### calendar function ##################################################
    
    then to use it, you activate the calendar function BELOW TEXT like this
    
    ${lua luacal {settings}}
    
    #${lua luacal {x=,y=,tf="",tfs=,tc=,ta=,bf="",bfs=,bc=,ba=,hf="",hfs=,hc=,ha=,sp="",gh=,gt=,gv=,sd=}}
    #    x=x position top left
    #    y=y position top left
    #    tf=title font, eg "mono" must be in quotes
    #    tfs=title font size
    #    tc=title color
    #    ta=title alpha
    #    bf=body font, eg "mono" must be in quotes
    #    bfs=body font size
    #    bc=body color
    #    ba=body alpha
    #    hf=highlight font, eg "mono" must be in quotes
    #    hfs=highlight font size
    #    hc=highlight color
    #    ha=highlight alpha
    #    sp=spacer, eg " " or sp="0"... 0,1 or 2 spaces can help with positioning of non-monospaced fonts
    
    #    gt=gap from title to body
    #    gh=gap horizontal between columns
    #    gv=gap vertical between rows
    #    sd=start day, 0=Sun, 1=Mon
    
    #    hstyle = heading style, 0=just days, 1=date insert
    #    tdf=title date font, eg "mono" must be in quotes
    #    tdfs=title date font size
    #    tdc=title date color
    #    tda=title date alpha
    
    # test line
    -- ${lua luacal {x=10,y=100,tf="Purisa",tfs=24,tc=0xf67e16,ta=1,bf="First Order",bfs=26,bc=0xecd32a,ba=1,hf="Purisa",hfs=18,hc=0xf67e16,ha=1,sp=" ",gh=40,gt=25,gv=20,sd=0,hstyle=1,tdf="First Order",tdfs=28,tdc=0xff0000,tda=1}}
    
    
    ]]
    
    require 'cairo'
    local    cs, cr = nil
    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(r,x,y,w,h,color,alpha)
    if conky_window == nil then return end
    if cs == nil then cairo_surface_destroy(cs) end
    if cr == nil then cairo_destroy(cr) 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)
    w=w
    h=h
    if w=="0" then w=tonumber(conky_window.width) end
    if h=="0" then h=tonumber(conky_window.height) end
    cairo_set_source_rgba (cr,rgb_to_r_g_b(color,alpha))
    --top left mid circle
    local xtl=x+r
    local ytl=y+r
    --top right mid circle
    local xtr=(x+r)+((w)-(2*r))
    local ytr=y+r
    --bottom right mid circle
    local xbr=(x+r)+((w)-(2*r))
    local ybr=(y+r)+((h)-(2*r))
    --bottom right mid circle
    local xbl=(x+r)
    local ybl=(y+r)+((h)-(2*r))
    -----------------------------
    cairo_move_to (cr,xtl,ytl-r)
    cairo_line_to (cr,xtr,ytr-r)
    cairo_arc(cr,xtr,ytr,r,((2*math.pi/4)*3),((2*math.pi/4)*4))
    cairo_line_to (cr,xbr+r,ybr)
    cairo_arc(cr,xbr,ybr,r,((2*math.pi/4)*4),((2*math.pi/4)*1))
    cairo_line_to (cr,xbl,ybl+r)
    cairo_arc(cr,xbl,ybl,r,((2*math.pi/4)*1),((2*math.pi/4)*2))
    cairo_line_to (cr,xtl-r,ytl)
    cairo_arc(cr,xtl,ytl,r,((2*math.pi/4)*2),((2*math.pi/4)*3))
    cairo_close_path(cr)
    cairo_fill (cr)
    ------------------------------------------------------------
    cairo_surface_destroy(cs)
    cairo_destroy(cr)
    return ""
    end
    -- ###### calendar function ##################################################
    function conky_luacal(caltab) -- {x=,y=,tf="",tfs=,tc=,ta=,bf="",bfs=,bc=,ba=,hf="",hfs=,hc=,ha=,sp="",gt=,gh=,gv=,sd=,hstyle=,tdf=,tdfs=,tdc=,tda=}
    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)
    --############################################################################
    if caltab.x==nil then
    caltab=loadstring("return" .. caltab)()
    end
    local cal_x=caltab.x
    local cal_y=caltab.y
    local tfont=caltab.tf		or "mono"
    local tfontsize=caltab.tfs	or 12
    local tc=caltab.tc			or 0xffffff
    local ta=caltab.ta			or 1
    local bfont=caltab.bf		or "mono"
    local bfontsize=caltab.bfs	or 12
    local bc=caltab.bc			or 0xffffff
    local ba=caltab.ba			or 1
    local hfont=caltab.hf		or "mono"
    local hfontsize=caltab.hfs	or 12
    local hc=caltab.hc			or 0xff0000
    local ha=caltab.ha			or 1
    local spacer=caltab.sp		or " "
    local gaph=caltab.gh		or 20
    local gapt=caltab.gt		or 15
    local gapl=caltab.gv		or 15
    local sday=caltab.sd		or 0
    local hstyle=caltab.hstyle	or 0
    --convert colors
    --local font=string.gsub(font,"_"," ")
    local tred,tgreen,tblue,talpha=rgb_to_r_g_b(tc,ta)
    --main body text color
    local bred,bgreen,bblue,balpha=rgb_to_r_g_b(bc,ba)
    --highlight text color
    local hred,hgreen,hblue,halpha=rgb_to_r_g_b(hc,ha)
    --############################################################################
    --calendar calcs
    local year=os.date("%G")
    local today=tonumber(os.date("%d"))
    local t1 = os.time( {    year=year,month=03,day=01,hour=00,min=0,sec=0} );
    local t2 = os.time( {    year=year,month=02,day=01,hour=00,min=0,sec=0} );
    local feb=(os.difftime(t1,t2))/(24*60*60)
    local monthdays={ 31, feb, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }
    local day=tonumber(os.date("%w"))+1-sday
    local day_num = today
    local remainder=day_num % 7
    local start_day=day-(day_num % 7)
    if start_day<0 then start_day=7+start_day end
    local month=os.date("%m")
    local mdays=monthdays[tonumber(month)]
    local x=mdays+start_day
    local dnum={}
    local dnumh={}
    if mdays+start_day<36 then
    dlen=35
    plen=29
    else
    dlen=42
    plen=36
    end
    for i=1,dlen do
        if i<=start_day then
        dnum[i]="  "
        else
        dn=i-start_day
            if dn=="nil" then dn=0 end
            if dn<=9 then dn=(spacer .. dn) end
            if i>x then dn="" end
            dnum[i]=dn
            dnumh[i]=dn
            if dn==(spacer .. today) or dn==today then
            dnum[i]=""
            end
            if dn==(spacer .. today) or dn==today then
            dnumh[i]=dn
            place=i
            else dnumh[i]="  "
            end
        end
    end--for
    cairo_select_font_face (cr, tfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, tfontsize);
    cairo_set_source_rgba (cr,tred,tgreen,tblue,talpha)
    local extents=cairo_text_extents_t:create()
    tolua.takeownership(extents)
    if hstyle==0 then
        if tonumber(sday)==0 then
        dys={"SU","MO","TU","WE","TH","FR","SA"}
        else
        dys={"MO","TU","WE","TH","FR","SA","SU"}
        end
        --draw calendar titles
    elseif hstyle==1 then
        if tonumber(sday)==0 then
        dys={"SU","MO"," ","  ","  ","FR","SA"}
        cairo_text_extents(cr,"MO",extents)
        local s=extents.x_advance+gaph
        local f=gaph*5
        local tdfont=caltab.tdf        or "mono"
        local tdfontsize=caltab.tdfs    or 12
        local tdc=caltab.tdc        or 0xffffff
        local tda=caltab.tda        or 1
        cairo_select_font_face (cr, tdfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
        cairo_set_font_size (cr, tdfontsize);
        local tdred,tdgreen,tdblue,tdalpha=rgb_to_r_g_b(tdc,tda)
        cairo_set_source_rgba (cr,tdred,tdgreen,tdblue,tdalpha)
        local insert=os.date("%b %y")
        cairo_text_extents(cr,insert,extents)
        local w=extents.x_advance
        cairo_move_to (cr, cal_x+((s+f)/2)-(w/2), cal_y)
        cairo_show_text (cr,insert)
        cairo_stroke (cr)
        else
        dys={"MO","TU"," ","  ","  ","SA","SU"}
        cairo_text_extents(cr,"TU",extents)
        local s=extents.x_advance+gaph
        local f=gaph*5
        local tdfont=caltab.tdf        or "mono"
        local tdfontsize=caltab.tdfs    or 12
        local tdc=caltab.tdc        or 0xffffff
        local tda=caltab.tda        or 1
        cairo_select_font_face (cr, tdfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
        cairo_set_font_size (cr, tdfontsize);
        local tdred,tdgreen,tdblue,tdalpha=rgb_to_r_g_b(tdc,tda)
        cairo_set_source_rgba (cr,tdred,tdgreen,tdblue,tdalpha)
        local insert=os.date("%b %y")
        cairo_text_extents(cr,insert,extents)
        local w=extents.x_advance
        cairo_move_to (cr, cal_x+((s+f)/2)-(w/2), cal_y)
        cairo_show_text (cr,insert)
        cairo_stroke (cr)
        end
    end
    --draw calendar titles
    for i=1,7 do
    cairo_select_font_face (cr, tfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, tfontsize);
    cairo_set_source_rgba (cr,tred,tgreen,tblue,talpha)
    cairo_move_to (cr, cal_x+(gaph*(i-1)), cal_y)
    cairo_show_text (cr, dys[i])
    cairo_stroke (cr)
    end
    --draw calendar body
    cairo_select_font_face (cr, bfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, bfontsize);
    cairo_set_source_rgba (cr,bred,bgreen,bblue,balpha)
    for i=1,plen,7 do
    local fn=i
        for i=fn,fn+6 do
        cairo_move_to (cr, cal_x+(gaph*(i-fn)),cal_y+gapt+(gapl*((fn-1)/7)))
        cairo_show_text (cr, dnum[i])
        cairo_stroke (cr)
        end
    end
    --highlight
    cairo_select_font_face (cr, hfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, hfontsize);
    cairo_set_source_rgba (cr,hred,hgreen,hblue,halpha)
    for i=1,plen,7 do
    local fn=i
        for i=fn,fn+6 do
        cairo_move_to (cr, cal_x+(gaph*(i-fn)),cal_y+gapt+(gapl*((fn-1)/7)))
        cairo_show_text (cr, dnumh[i])
        cairo_stroke (cr)
        end
    end
    --############################################################################
    caltab=nil
    dlen=nil
    plen=nil
    cairo_destroy(cr)
    cairo_surface_destroy(cs)
    cr=nil
    return ""
    end
    -- end main function #########################################################
    bit bigger, it has a lua calendar built in as well.

    I need to edit the TODAY number
    Attached Images Attached Images
    Last edited by Sector11; July 19th, 2013 at 02:36 AM. Reason: image not showing - spelling

  3. #22163
    Join Date
    Oct 2012
    Beans
    148

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Sector11 View Post
    NICE! Clean clear concise!

    londonali1010's original draw_bg.lua has a memory leak ... but has been fixed by many.

    ...

    bit bigger, it has a lua calendar built in as well.

    I need to edit the TODAY number
    Thanks! For awhile there I had stopped using conky because my original one (which I did spend a significant amount of time on) just didn't look neat enough for me. I decided simpler is better now, for me anyway.

    Thanks also for the heads-up about the memory leak with the lua script. I haven't noticed a problem with it, but I just replaced it in any case.

    I like yours too! I've been thinking some time I might like to have gauges instead of bars on mine, but for now I will keep it simple.
    Last edited by montag dp; July 19th, 2013 at 03:00 AM.

  4. #22164
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by montag dp View Post
    Thanks! For awhile there I had stopped using conky because my original one (which I did spend a significant amount of time on) just didn't look neat enough for me. I decided simpler is better now, for me anyway.

    Thanks also for the heads-up about the memory leak with the lua script. I haven't noticed a problem with it, but I will fix it.
    I'm not lua fluent but I think if you add these:
    Code:
    cairo_destroy(cr)
    cairo_surface_destroy(cs)
    "near the end of the script you have" someplace it will plug the leak

  5. #22165
    Join Date
    Oct 2012
    Beans
    148

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Sector11 View Post
    I'm not lua fluent but I think if you add these:
    Code:
    cairo_destroy(cr)
    cairo_surface_destroy(cs)
    "near the end of the script you have" someplace it will plug the leak
    Thanks. I did a ninja edit while you were posting.

    I just took your lua script and removed the calendar stuff, and adjusted the call in my conkyrc accordingly. It is working fine, but interestingly, apparently the corner radius is calculated differently. On my old one I had this set to 45, but on with this one I had to change it to 20 for it to be about the same as before.

  6. #22166
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by montag dp View Post
    Thanks. I did a ninja edit while you were posting.

    I just took your lua script and removed the calendar stuff, and adjusted the call in my conkyrc accordingly. It is working fine, but interestingly, apparently the corner radius is calculated differently. On my old one I had this set to 45, but on with this one I had to change it to 20 for it to be about the same as before.
    ninja's good ... can't fight that logic.

    Glad to have helped.

  7. #22167
    Join Date
    Jan 2008
    Beans
    130

    Re: Post your .conkyrc files w/ screenshots

    Code:
    --	name="exec",
    --	arg="sensors | grep "temp1" | cut -c15-20",
    That didn't work Sector11. But thanks for trying. Is there a better way of retrieving the cpu temp that would be more compatible with lua?

    Ubuntu 12.04LTS with Conky-all v1.8.1-6

  8. #22168
    Join Date
    Jan 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    It is fully compatible with LUA but not with script you are using.
    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

  9. #22169
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by davesbrain View Post
    Code:
    --	name="exec",
    --	arg="sensors | grep "temp1" | cut -c15-20",
    That didn't work Sector11. But thanks for trying. Is there a better way of retrieving the cpu temp that would be more compatible with lua?

    Ubuntu 12.04LTS with Conky-all v1.8.1-6
    Here's a working script that gets temperatures through "hwmon" in a lua script right here on Ubuntu, by mjjohanson.

    I'm in the process of building it here to test it.

    EDIT

    Well it works here:
    Code:
     19 Jul 13 | 14:03:25 ~
        $ sensen
    acpitz-virtual-0
    Adapter: Virtual device
    temp1:        +30.0°C  (crit = +110.0°C)
    
    k10temp-pci-00c3
    Adapter: PCI adapter
    temp1:        +28.8°C  (high = +70.0°C)
    
    f71862fg-isa-0a00
    Adapter: ISA adapter
    +3.3V:        +3.44 V  
    in1:          +1.35 V  
    in2:          +1.51 V  
    in3:          +0.85 V  
    in4:          +0.00 V  
    in5:          +0.00 V  
    in6:          +0.00 V  
    3VSB:         +3.41 V  
    Vbat:         +2.85 V  
    fan1:        1992 RPM
    fan2:           0 RPM  ALARM
    fan3:           0 RPM  ALARM
    temp1:        +38.0°C  (high = +85.0°C, hyst = +81.0°C)
                           (crit = +70.0°C, hyst = +66.0°C)  sensor = transistor
    temp2:        +33.0°C  (high = +85.0°C, hyst = +81.0°C)
                           (crit = +100.0°C, hyst = +96.0°C)  sensor = thermistor
    temp3:       +127.0°C  (high = +70.0°C, hyst = +68.0°C)  ALARM (CRIT)
                           (crit = +85.0°C, hyst = +83.0°C)  sensor = transistor
    
    Sensors:   System Temperatures: cpu: 38.0C mobo: 33.0C gpu: 0.0:42C 
               Fan Speeds (in rpm): cpu: 1992 fan-2: 0 fan-3: 0 
     
     19 Jul 13 | 14:09:17 ~
        $
    I prefer the 'platform method' because at times 'hwmon' loads in a different order.

    The beauty of Linux: We has options! {yea yea, I know ,grammatically incorrect --- but fun!}

    Here's what worked for me:

    Code:
    name='platform',      arg='f71882fg.2560 temp 1',  --cpu
    name='platform',      arg='f71882fg.2560 temp 2',  --mobo
    name='platform',      arg='f71882fg.2560 temp 3',  -- alarm (never changes)
    name='platform',      arg='f71882fg.2560 fan 1',  -- cpu fan
    name='hwmon',         arg='0 temp 1', -- acpitz (never changes)
    name='hwmon',         arg='1 temp 1', -- k10temp (never changes)
    name='hwmon',         arg='2 temp 1', see platform
    name='hwmon',         arg='2 temp 2', see platform
    name='hwmon',         arg='2 temp 3', see platform
    
    name='nvidia',        arg='temp', -- GPU temp
    name='hddtemp',       arg='/dev/sda',  -- ummm ... the sun????
    Also you might want to check out the conky ppa and upgrade your conky to version 1.9. Thanks stinkeye.
    Last edited by Sector11; July 19th, 2013 at 06:53 PM.

  10. #22170
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Good to be back ...

    Clean:


    Used a bit - working on a conky:


    Welcome back everyone!

Page 2217 of 2348 FirstFirst ... 1217171721172167220722152216221722182219222722672317 ... 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
  •