Page 1877 of 2348 FirstFirst ... 877137717771827186718751876187718781879188719271977 ... LastLast
Results 18,761 to 18,770 of 23480

Thread: Post your .conkyrc files w/ screenshots

  1. #18761
    Join Date
    Jul 2010
    Location
    Ubuntu Land
    Beans
    53
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by wlourf View Post
    Ok, I see, then try up instead down :
    Code:
    if f:read() == "up" then

    I tried local f = io.open('/sys/class/net/wlan0/operstate

    if f:read() == "down" then

    and
    local f = io.open('/sys/class/net/easytether0/operstate

    if f:read() == "up" then


    neither gives errors but the bar is still being drawn.

    I wonder if i of io.open which is not used anywhere else in the script is causing the problem?
    Eee Pc 1215N notebook-12in Screen-Ubnutu 12.10
    Dual core 1.8 Atom
    2 gig DDR3
    Nvidia Ion(Yes it works,even have HDMI out working)

  2. #18762
    Join Date
    Aug 2009
    Location
    East of Atlantic
    Beans
    81
    Distro
    Ubuntu

    Re: Post your .conkyrc files w/ screenshots

    you want to draw the bar when operstate is down, right ? so try the inverse :

    Code:
    local f = io.open('/sys/class/net/wlan0/operstate
    
    if f:read() == "up" then
    Code:
    local f = io.open('/sys/class/net/easytether0/operstate
    
    if f:read() == "down" then

  3. #18763
    Join Date
    Jul 2010
    Location
    Ubuntu Land
    Beans
    53
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by wlourf View Post
    you want to draw the bar when operstate is down, right ? so try the inverse :

    Code:
    local f = io.open('/sys/class/net/wlan0/operstate
    
    if f:read() == "up" then
    Code:
    local f = io.open('/sys/class/net/easytether0/operstate
    
    if f:read() == "down" then

    I want to stop the bar from being draw when wlan0 is down.

    no matter whether I set the connection to wlan0 up or down,easytether up or down the bar is still being drawn.
    Eee Pc 1215N notebook-12in Screen-Ubnutu 12.10
    Dual core 1.8 Atom
    2 gig DDR3
    Nvidia Ion(Yes it works,even have HDMI out working)

  4. #18764
    Join Date
    Jan 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Net device status check function
    Code:
    function netDEV(_dev)
       local _netSTATE
       local _net = io.open('/sys/class/net/'.._dev..'/operstate')
       if _net then
          _netSTATE = _net:read()
          _net:close()
       else return nil
       end
       if _netSTATE == "down" then return nil else return 0 end
    end
    usage:
    Code:
    if netDEV('eth1') then print("up") else print("down") end
    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

  5. #18765
    Join Date
    Jul 2010
    Location
    Ubuntu Land
    Beans
    53
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by dk75 View Post
    Net device status check function
    Code:
    function netDEV(_dev)
       local _netSTATE
       local _net = io.open('/sys/class/net/'.._dev..'/operstate')
       if _net then
          _netSTATE = _net:read()
          _net:close()
       else return nil
       end
       if _netSTATE == "down" then return nil else return 0 end
    end
    usage:
    Code:
    if netDEV('eth1') then print("up") else print("down") end

    I tried this but I guess I did not put it in the proper place in the script because I get errors.Again way over my head with Lua,
    Eee Pc 1215N notebook-12in Screen-Ubnutu 12.10
    Dual core 1.8 Atom
    2 gig DDR3
    Nvidia Ion(Yes it works,even have HDMI out working)

  6. #18766
    Join Date
    Jan 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    That is because your whole LUA script is not right.

    Normally, if you want to drive a nail, you take a hammer and a nail and do the thing. But you do the thing before getting a hammer.
    Your script works only because main LUA loop is inside the Conky and 5 first loop of your script isn't executed, but function it's needed is loaded to memory and then is used lately.

    Change that behavior of yours, make sub-functions first and only after that use them in main function at the end.

    Code:
    --[[ this script combines the background drawing lua (originally by londonali1010, modified by VinDSL)
    with a script that emulates only the gradient bars portion of the script by wlourf
    call in conkyrc above TEXT like so
    lua_load /path to file/filename.lua
    lua_draw_hook_pre draw_lua
    ]]
    require 'cairo'
    
    function conky_draw_lua()--main loop (this is not right)
       if conky_window == nil then return end
       local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
       cr = cairo_create(cs)
       local updates=tonumber(conky_parse('${updates}'))
       if updates>5 then
          --#########################################################################################################
          --#########################################################################################################
          --background setup -- make sure this comes first-----------
          settings={--CONKY BACKGROUND
    		corner_r=50,--corner radius
    		bg_color={0x222222,0.9},--color and alpha inside {}
    		bg_height=-2,--negative number reduces height of bg
    		w=conky_window.width,
    		h=conky_window.height,
    		};background(settings)
          --end background setup-------------------------------------
    
          bar_adjust=-20
    
          --bar setup------------------------------------------------
          settings={--BATTERY GRAPH BATTERY
    		number=tonumber(conky_parse("${battery_percent}")),--conky object to read
    		number_max=100,--max value of conky object
    		bar_startx=41,--x coordinate
    		bar_starty=152+bar_adjust,--y coordinate
    		divisions=45,--number of blocks
    		div_width=2,--horizontal size
    		div_height=6,--vertical size
    		div_gap=1,--space between bits
    		bg_color={0xFFFFFF,0.25},--background color, color and alpha inside {}
    		st_color={0xFF0000,1},--start color for gradient, green
    		end_color={0x00FF00,1},--end color for gradient
    		mid_color={0xFFFF00,1},--middle color for gradient, yellow
    		};bars(settings)
          --copy and paste above for new bar-------------------------
          --bar setup------------------------------------------------
          settings={--CPU GRAPH CPU1
    		number=tonumber(conky_parse("${cpu cpu1}")),
    		number_max=100,
    		bar_startx=42,
    		bar_starty=188+bar_adjust,
    		divisions=45,
    		div_width=2,
    		div_height=6,
    		div_gap=1,
    		bg_color={0xFFFFFF,0.25},
    		st_color={0x00FF00,1},
    		mid_color={0xFFFF00,1},
    		end_color={0xFF0000,1},
    		};bars(settings)
          --copy and paste above for new bar-------------------------
          --bar setup------------------------------------------------
          settings={--CPU GRAPH CPU2
    		number=tonumber(conky_parse("${cpu cpu2}")),
    		number_max=100,
    		bar_startx=42,
    		bar_starty=210+bar_adjust,
    		divisions=45,
    		div_width=2,
    		div_height=6,
    		div_gap=1,
    		bg_color={0xFFFFFF,0.25},
    		st_color={0x00FF00,1},
    		mid_color={0xFFFF00,1},
    		end_color={0xFF0000,1},
    		};bars(settings)
          --copy and paste above for new bar-------------------------
          --bar setup------------------------------------------------
          settings={--MEMPERC GRAPH
    		number=tonumber(conky_parse("${memperc}")),
    		number_max=100,
    		bar_startx=40,
    		bar_starty=330+bar_adjust,
    		divisions=45,
    		div_width=2,
    		div_height=6,
    		div_gap=1,
    		bg_color={0xFFFFFF,0.25},
    		st_color={0x00FF00,1},
    		mid_color={0xFFFF00,1},
    		end_color={0xFF0000,1},
    		};bars(settings)
          --copy and paste above for new bar-------------------------
          --bar setup------------------------------------------------
          settings={--BOOT FILESYSTEM USED GRAPH
    		number=tonumber(conky_parse("${fs_used_perc /boot}")),
    		number_max=100,
    		bar_startx=57,
    		bar_starty=400+bar_adjust,
    		divisions=40,
    		div_width=2,
    		div_height=6,
    		div_gap=1,
    		bg_color={0xFFFFFF,0.25},
    		st_color={0x00FF00,1},
    		mid_color={0xFFFF00,1},
    		end_color={0xFF0000,1},
    		};bars(settings)
          --copy and paste above for new bar-------------------------
          --bar setup------------------------------------------------
          settings={--ROOT FILESYSTEM USED GRAPH
    		number=tonumber(conky_parse("${fs_used_perc /}")),
    		number_max=100,
    		bar_startx=58,
    		bar_starty=425+bar_adjust,
    		divisions=40,
    		div_width=2,
    		div_height=6,
    		div_gap=1,
    		bg_color={0xFFFFFF,0.25},
    		st_color={0x00FF00,1},
    		mid_color={0xFFFF00,1},
    		end_color={0xFF0000,1},
    		};bars(settings)
          --copy and paste above for new bar-------------------------
          --bar setup------------------------------------------------
          settings={--HOME FILESYSTEM USED GRAPH
    		number=tonumber(conky_parse("${fs_used_perc /home}")),
    		number_max=100,
    		bar_startx=63,
    		bar_starty=450+bar_adjust,
    		divisions=38,
    		div_width=2,
    		div_height=6,
    		div_gap=1,
    		bg_color={0xFFFFFF,0.25},
    		st_color={0x00FF00,1},
    		mid_color={0xFFFF00,1},
    		end_color={0xFF0000,1},
    		};bars(settings)
          --copy and paste above for new bar-------------------------
          --bar setup------------------------------------------------
          settings={--SWAP FILESYSTEM USED GRAPH
    		number=tonumber(conky_parse("${swapperc}")),
    		number_max=100,
    		bar_startx=63,
    		bar_starty=475+bar_adjust,
    		divisions=38,
    		div_width=2,
    		div_height=6,
    		div_gap=1,
    		bg_color={0xFFFFFF,0.25},
    		st_color={0x00FF00,1},
    		mid_color={0xFFFF00,1},
    		end_color={0xFF0000,1},
    		};bars(settings)
          --copy and paste above for new bar-------------------------
          --bar setup------------------------------------------------
          settings={--WIRELESS NETWORK GRAPH
    		number=tonumber(conky_parse("${wireless_link_qual wlan0}")),
    		number_max=100,
    		bar_startx=42,
    		bar_starty=523+bar_adjust,
    		divisions=45,
    		div_width=2,
    		div_height=6,
    		div_gap=1,
    		bg_color={0xFFFFFF,0.25},
    		st_color={0xFF0000,1},
    		end_color={0x00FF00,1},
    		mid_color={0xFFFF00,1},
    		};if netDEV('wlan0') then bars(settings) end
          --copy and paste above for new bar-------------------------
          --#########################################################################################################
          --#########################################################################################################
       end-- if updates>5
       cairo_destroy(cr)
       cairo_surface_destroy(cs)
       cr=nil
    end-- end main function
    
    function rgb_to_r_g_b(col_a)
       return ((col_a[1] / 0x10000) % 0x100) / 255., ((col_a[1] / 0x100) % 0x100) / 255., (col_a[1] % 0x100) / 255., col_a[2]
    end
    
    function bars(t)
       local bar_startx=t.bar_startx
       local bar_starty=t.bar_starty
       local divisions=t.divisions
       local div_width=t.div_width
       local div_height=t.div_height
       local div_gap=t.div_gap
       local br,bg,bb,ba=rgb_to_r_g_b(t.bg_color)
       local sr,sg,sb,sa=rgb_to_r_g_b(t.st_color)
       local mr,mg,mb,ma=rgb_to_r_g_b(t.mid_color)
       local er,eg,eb,ea=rgb_to_r_g_b(t.end_color)
       if t.number==nil then number=0 else number=t.number end
       local number_max=t.number_max
       local number_divs=(number/number_max)*divisions
       cairo_set_line_width (cr,div_width)
       for i=1,divisions do
          if i<(divisions/2) and i<=number_divs then
             colr=((mr-sr)*(i/(divisions/2)))+sr
             colg=((mg-sg)*(i/(divisions/2)))+sg
             colb=((mb-sb)*(i/(divisions/2)))+sb
             cola=((ma-sa)*(i/(divisions/2)))+sa
          elseif i>=(divisions/2) and i<=number_divs then
             colr=((er-mr)*((i-(divisions/2))/(divisions/2)))+mr
             colg=((eg-mg)*((i-(divisions/2))/(divisions/2)))+mg
             colb=((eb-mb)*((i-(divisions/2))/(divisions/2)))+mb
             cola=((ea-ma)*((i-(divisions/2))/(divisions/2)))+ma
          else
             colr=br
             colg=bg
             colb=bb
             cola=ba
          end
          cairo_set_source_rgba (cr,colr,colg,colb,cola)
          cairo_move_to (cr,bar_startx+((div_width+div_gap)*i-1),bar_starty)
          cairo_rel_line_to (cr,0,div_height)
          cairo_stroke (cr)
       end
    end--function bars
    
    function background(t)
       local corner_r=t.corner_r
       local br,bg,bb,ba=rgb_to_r_g_b(t.bg_color)
       local v=t.bg_height
       local h=t.h
       local w=t.w
       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+v-corner_r)
       cairo_curve_to(cr,w,h+v,w,h+v,w-corner_r,h+v)
       cairo_line_to(cr,corner_r,h+v)
       cairo_curve_to(cr,0,h+v,0,h+v,0,h+v-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,br,bg,bb,ba)
       cairo_fill(cr)
    end--function background
    
    function netDEV(_dev)
       local _netSTATE
       local _net = io.open('/sys/class/net/'.._dev..'/operstate')
       if _net then
          _netSTATE = _net:read()
          _net:close()
       else return nil
       end
       if _netSTATE == "down" then return nil else return 0 end
    end--function for net device checking
    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

  7. #18767
    Join Date
    May 2007
    Beans
    13

    Re: Post your .conkyrc files w/ screenshots

    here is my screenshot. i followed this setup. if weather forecast doesn't work, you need to patch python script, see here how to.

    i used two conkys. add 'own_window_argb_visual yes' for real transparency.
    Attached Images Attached Images
    Last edited by hrvooje; October 28th, 2011 at 11:06 PM.

  8. #18768
    Join Date
    Jul 2010
    Location
    Ubuntu Land
    Beans
    53
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by dk75 View Post
    That is because your whole LUA script is not right.

    Normally, if you want to drive a nail, you take a hammer and a nail and do the thing. But you do the thing before getting a hammer.
    Your script works only because main LUA loop is inside the Conky and 5 first loop of your script isn't executed, but function it's needed is loaded to memory and then is used lately.

    Change that behavior of yours, make sub-functions first and only after that use them in main function at the end.

    Code:
    --[[ this script combines the background drawing lua (originally by londonali1010, modified by VinDSL)
    with a script that emulates only the gradient bars portion of the script by wlourf
    call in conkyrc above TEXT like so
    lua_load /path to file/filename.lua
    lua_draw_hook_pre draw_lua
    ]]
    require 'cairo'
    
    function conky_draw_lua()--main loop (this is not right)
       if conky_window == nil then return end
       local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
       cr = cairo_create(cs)
       local updates=tonumber(conky_parse('${updates}'))
       if updates>5 then
          --#########################################################################################################
          --#########################################################################################################
          --background setup -- make sure this comes first-----------
          settings={--CONKY BACKGROUND
            corner_r=50,--corner radius
            bg_color={0x222222,0.9},--color and alpha inside {}
            bg_height=-2,--negative number reduces height of bg
            w=conky_window.width,
            h=conky_window.height,
            };background(settings)
          --end background setup-------------------------------------
    
          bar_adjust=-20
    
          --bar setup------------------------------------------------
          settings={--BATTERY GRAPH BATTERY
            number=tonumber(conky_parse("${battery_percent}")),--conky object to read
            number_max=100,--max value of conky object
            bar_startx=41,--x coordinate
            bar_starty=152+bar_adjust,--y coordinate
            divisions=45,--number of blocks
            div_width=2,--horizontal size
            div_height=6,--vertical size
            div_gap=1,--space between bits
            bg_color={0xFFFFFF,0.25},--background color, color and alpha inside {}
            st_color={0xFF0000,1},--start color for gradient, green
            end_color={0x00FF00,1},--end color for gradient
            mid_color={0xFFFF00,1},--middle color for gradient, yellow
            };bars(settings)
          --copy and paste above for new bar-------------------------
          --bar setup------------------------------------------------
          settings={--CPU GRAPH CPU1
            number=tonumber(conky_parse("${cpu cpu1}")),
            number_max=100,
            bar_startx=42,
            bar_starty=188+bar_adjust,
            divisions=45,
            div_width=2,
            div_height=6,
            div_gap=1,
            bg_color={0xFFFFFF,0.25},
            st_color={0x00FF00,1},
            mid_color={0xFFFF00,1},
            end_color={0xFF0000,1},
            };bars(settings)
          --copy and paste above for new bar-------------------------
          --bar setup------------------------------------------------
          settings={--CPU GRAPH CPU2
            number=tonumber(conky_parse("${cpu cpu2}")),
            number_max=100,
            bar_startx=42,
            bar_starty=210+bar_adjust,
            divisions=45,
            div_width=2,
            div_height=6,
            div_gap=1,
            bg_color={0xFFFFFF,0.25},
            st_color={0x00FF00,1},
            mid_color={0xFFFF00,1},
            end_color={0xFF0000,1},
            };bars(settings)
          --copy and paste above for new bar-------------------------
          --bar setup------------------------------------------------
          settings={--MEMPERC GRAPH
            number=tonumber(conky_parse("${memperc}")),
            number_max=100,
            bar_startx=40,
            bar_starty=330+bar_adjust,
            divisions=45,
            div_width=2,
            div_height=6,
            div_gap=1,
            bg_color={0xFFFFFF,0.25},
            st_color={0x00FF00,1},
            mid_color={0xFFFF00,1},
            end_color={0xFF0000,1},
            };bars(settings)
          --copy and paste above for new bar-------------------------
          --bar setup------------------------------------------------
          settings={--BOOT FILESYSTEM USED GRAPH
            number=tonumber(conky_parse("${fs_used_perc /boot}")),
            number_max=100,
            bar_startx=57,
            bar_starty=400+bar_adjust,
            divisions=40,
            div_width=2,
            div_height=6,
            div_gap=1,
            bg_color={0xFFFFFF,0.25},
            st_color={0x00FF00,1},
            mid_color={0xFFFF00,1},
            end_color={0xFF0000,1},
            };bars(settings)
          --copy and paste above for new bar-------------------------
          --bar setup------------------------------------------------
          settings={--ROOT FILESYSTEM USED GRAPH
            number=tonumber(conky_parse("${fs_used_perc /}")),
            number_max=100,
            bar_startx=58,
            bar_starty=425+bar_adjust,
            divisions=40,
            div_width=2,
            div_height=6,
            div_gap=1,
            bg_color={0xFFFFFF,0.25},
            st_color={0x00FF00,1},
            mid_color={0xFFFF00,1},
            end_color={0xFF0000,1},
            };bars(settings)
          --copy and paste above for new bar-------------------------
          --bar setup------------------------------------------------
          settings={--HOME FILESYSTEM USED GRAPH
            number=tonumber(conky_parse("${fs_used_perc /home}")),
            number_max=100,
            bar_startx=63,
            bar_starty=450+bar_adjust,
            divisions=38,
            div_width=2,
            div_height=6,
            div_gap=1,
            bg_color={0xFFFFFF,0.25},
            st_color={0x00FF00,1},
            mid_color={0xFFFF00,1},
            end_color={0xFF0000,1},
            };bars(settings)
          --copy and paste above for new bar-------------------------
          --bar setup------------------------------------------------
          settings={--SWAP FILESYSTEM USED GRAPH
            number=tonumber(conky_parse("${swapperc}")),
            number_max=100,
            bar_startx=63,
            bar_starty=475+bar_adjust,
            divisions=38,
            div_width=2,
            div_height=6,
            div_gap=1,
            bg_color={0xFFFFFF,0.25},
            st_color={0x00FF00,1},
            mid_color={0xFFFF00,1},
            end_color={0xFF0000,1},
            };bars(settings)
          --copy and paste above for new bar-------------------------
          --bar setup------------------------------------------------
          settings={--WIRELESS NETWORK GRAPH
            number=tonumber(conky_parse("${wireless_link_qual wlan0}")),
            number_max=100,
            bar_startx=42,
            bar_starty=523+bar_adjust,
            divisions=45,
            div_width=2,
            div_height=6,
            div_gap=1,
            bg_color={0xFFFFFF,0.25},
            st_color={0xFF0000,1},
            end_color={0x00FF00,1},
            mid_color={0xFFFF00,1},
            };if netDEV('wlan0') then bars(settings) end
          --copy and paste above for new bar-------------------------
          --#########################################################################################################
          --#########################################################################################################
       end-- if updates>5
       cairo_destroy(cr)
       cairo_surface_destroy(cs)
       cr=nil
    end-- end main function
    
    function rgb_to_r_g_b(col_a)
       return ((col_a[1] / 0x10000) % 0x100) / 255., ((col_a[1] / 0x100) % 0x100) / 255., (col_a[1] % 0x100) / 255., col_a[2]
    end
    
    function bars(t)
       local bar_startx=t.bar_startx
       local bar_starty=t.bar_starty
       local divisions=t.divisions
       local div_width=t.div_width
       local div_height=t.div_height
       local div_gap=t.div_gap
       local br,bg,bb,ba=rgb_to_r_g_b(t.bg_color)
       local sr,sg,sb,sa=rgb_to_r_g_b(t.st_color)
       local mr,mg,mb,ma=rgb_to_r_g_b(t.mid_color)
       local er,eg,eb,ea=rgb_to_r_g_b(t.end_color)
       if t.number==nil then number=0 else number=t.number end
       local number_max=t.number_max
       local number_divs=(number/number_max)*divisions
       cairo_set_line_width (cr,div_width)
       for i=1,divisions do
          if i<(divisions/2) and i<=number_divs then
             colr=((mr-sr)*(i/(divisions/2)))+sr
             colg=((mg-sg)*(i/(divisions/2)))+sg
             colb=((mb-sb)*(i/(divisions/2)))+sb
             cola=((ma-sa)*(i/(divisions/2)))+sa
          elseif i>=(divisions/2) and i<=number_divs then
             colr=((er-mr)*((i-(divisions/2))/(divisions/2)))+mr
             colg=((eg-mg)*((i-(divisions/2))/(divisions/2)))+mg
             colb=((eb-mb)*((i-(divisions/2))/(divisions/2)))+mb
             cola=((ea-ma)*((i-(divisions/2))/(divisions/2)))+ma
          else
             colr=br
             colg=bg
             colb=bb
             cola=ba
          end
          cairo_set_source_rgba (cr,colr,colg,colb,cola)
          cairo_move_to (cr,bar_startx+((div_width+div_gap)*i-1),bar_starty)
          cairo_rel_line_to (cr,0,div_height)
          cairo_stroke (cr)
       end
    end--function bars
    
    function background(t)
       local corner_r=t.corner_r
       local br,bg,bb,ba=rgb_to_r_g_b(t.bg_color)
       local v=t.bg_height
       local h=t.h
       local w=t.w
       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+v-corner_r)
       cairo_curve_to(cr,w,h+v,w,h+v,w-corner_r,h+v)
       cairo_line_to(cr,corner_r,h+v)
       cairo_curve_to(cr,0,h+v,0,h+v,0,h+v-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,br,bg,bb,ba)
       cairo_fill(cr)
    end--function background
    
    function netDEV(_dev)
       local _netSTATE
       local _net = io.open('/sys/class/net/'.._dev..'/operstate')
       if _net then
          _netSTATE = _net:read()
          _net:close()
       else return nil
       end
       if _netSTATE == "down" then return nil else return 0 end
    end--function for net device checking

    Thank you sir it's working now.
    Eee Pc 1215N notebook-12in Screen-Ubnutu 12.10
    Dual core 1.8 Atom
    2 gig DDR3
    Nvidia Ion(Yes it works,even have HDMI out working)

  9. #18769
    Join Date
    Apr 2011
    Beans
    11

    Re: Post your .conkyrc files w/ screenshots

    No changes to my conky, but I got it working in 11.10
    Good enough for now.

    Can I played with my conky until I needed glasses!

  10. #18770
    Join Date
    Dec 2009
    Location
    MT
    Beans
    43
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Post your .conkyrc files w/ screenshots

    I am having issues with my conky. I just today updated from 11.04 to 11.10, and now my entire conky setup is out of whack:



    Here is my .conkyrc:

    Code:
    # conky configuration
    # edited by Mark Buck (Kaivalagi) <m_buck@hotmail.com>
    
    # set to yes if you want Conky to be forked in the background
    background yes
    
    # X font when Xft is disabled, you can pick one with program xfontsel
    #font 5x7
    #font 6x10
    #font 7x13
    #font 8x13
    #font 9x15
    #font *mintsmild.se*
    #font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
    
    # Use Xft?
    use_xft yes
    
    # Xft font when Xft is enabled
    xftfont DejaVuSansMono:size=9
    
    # Text alpha when using Xft
    xftalpha 0.8
    
    # Update interval in seconds
    update_interval 1.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 no
    
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes
    
    # Minimum size of text area
    maximum_width 265
    
    # Draw shades?
    draw_shades no
    
    # Draw outlines?
    draw_outline no
    
    # Draw borders around text
    draw_borders no
    draw_graph_borders yes
    
    # Stippled borders?
    stippled_borders 8
    
    # border margins
    border_inner_margin 0
    
    # border width
    #border_width 0
    
    # Default colors and also border colors
    default_color white
    default_shade_color black
    default_outline_color black
    default_bar_size 10 180
    
    # own window options
    own_window        yes
    own_window_transparent    yes
    own_window_type        override
    own_window_hints    undecorated,below,sticky,skip_taskbar,skip_pager
    
    # Text alignment
    alignment mr
    
    # Gap between borders of screen and text
    # same thing as passing -x at command line
    gap_x 5
    gap_y 0
    
    # Subtract file system buffers from used memory?
    no_buffers yes
    
    # set to yes if you want all text to be in uppercase
    uppercase no
    
    # number of cpu samples to average
    # set to 1 to disable averaging
    cpu_avg_samples 5
    
    # number of net samples to average
    # set to 1 to disable averaging
    net_avg_samples 5
    
    # Force UTF8? note that UTF8 support required XFT
    override_utf8_locale yes
    
    # Add spaces to keep things from moving about?  This only affects certain objects.
    use_spacer right
    
    # colours
    color1 white
    # light blue
    color2 6892C6
    # orange
    #E77320
    color3 FFA500
    # green
    color4 78BF39
    # red
    color5 CC0000
    # yellow
    color6 FFFF00
    
    text_buffer_size 2048
    
    # 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
    
    pad_percents 2
    short_units
    #seti_dir /var/lib/boinc-client
    
    # stuff after 'TEXT' will be formatted on screen
    
    #lua_load ~/ConkyScripts/draw_bg.lua
    #lua_draw_hook_pre draw_bg
    
    TEXT
    ${goto 45}${font F25 Bank Printer:size=40}${color1}${time %H:%M}${voffset 12}${font F25 Bank Printer:size=7}${execpi 3600 ~/ConkyScripts/date.sh}${goto 20}${voffset 22}${execpi 3600 ~/ConkyScripts/calendar.sh}
    $stippled_hr
    ${execpi 900 conkyForecast --location=USCO0066 --imperial --template=~/ConkyScripts/conkyForecast.template}${voffset -4}$stippled_hr
    ${font}${color3}CPU1${goto 123}${color1}${hwmon temp 1}C${color3}${alignr 2}CPU2${color1}
    #${font}${color3}CPU1${color3}${alignr 2}CPU2${color1}
    ${cpugraph cpu1 25,130 CC0000 FFFF00}${alignr 2}${cpugraph cpu2 25,130 FFFF00 CC0000}
    ${voffset -29}${goto 3}${cpu cpu1}%${alignr 5}${cpu cpu2}%${voffset 8}
    RAM:   ${color3}${membar 10,180}${color1} ${memperc}%
    ${voffset 2}Root:  ${color3}${voffset -7}${fs_bar 20,180 /} ${voffset 7}${color1}${fs_used_perc /}% ${goto 53}${voffset -20}${color1}${fs_used /}/${fs_size /}
    ${voffset 10}Home:  ${color3}${voffset -7}${fs_bar 20,180 /home} ${voffset 7}${color1}${fs_used_perc /home}% ${goto 53}${voffset -20}${color1}${fs_used /home}/${fs_size /home}${if_mounted /media/Media}
    ${voffset 10}Media: ${color3}${voffset -7}${fs_bar 20,180 /media/Media} ${voffset 7}${color1}${fs_used_perc /media/Media}% ${goto 53}${voffset -20}${color1}${fs_used /media/Media}/${fs_size /media/Media}${endif}${if_mounted /media/SDHC8}
    ${voffset 10}USB:   ${color3}${voffset -7}${fs_bar 20,180 /media/SDHC8} ${voffset 7}${color1}${fs_used_perc /media/SDHC8}% ${goto 53}${voffset -20}${color1}${fs_used /media/SDHC8}/${fs_size /media/SDHC8}${endif}
    $stippled_hr
    ${color3}I:${color1}${addr eth1}${color3}${alignr 2}E:${color1}${execi 900 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'}
    ${color3}Up:${color1}${totalup eth1}${alignr 2}${color3}Down:${color1}${totaldown eth1}
    ${upspeedgraph eth1 25,130 CC0000 FFFF00 -l}${alignr 2}${downspeedgraph eth1 25,130 FFFF00 CC0000 -l}
    ${voffset -29}${goto 3}${upspeed eth1}${alignr 3}${downspeed eth1}${voffset 3}${color1}
    $stippled_hr
    ${execpi 5 perl ~/ConkyScripts/boinc.pl}${execpi 3600 ~/ConkyScripts/sunmoon.sh}
    It was last modified back on May 01, 2011.

    Can someone help me figure out how to get it fixed?
    “Humanity must rise above the earth, to the top of the atmosphere and beyond. For only then will we understand the world in which we live.”
    -Socrates-
    http://www.overviewinstitute.org

Page 1877 of 2348 FirstFirst ... 877137717771827186718751876187718781879188719271977 ... 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
  •