Page 1978 of 2328 FirstFirst ... 978147818781928196819761977197819791980198820282078 ... LastLast
Results 19,771 to 19,780 of 23277

Thread: Post your .conkyrc files w/ screenshots

  1. #19771
    Join Date
    Aug 2009
    Location
    Beachside, Florida
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by bartos View Post
    Fooling around with lua bars





    test.lua
    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
    
    I really like that conky! Since my system is the same basically, I thought I could just copy and past this and it would work.
    I was replacing my existing conky. But, then I noticed the above line in red in test.lua.
    I managed to install Lua 5.1.4

    Code:
    cavsfan@cavsfan-desktop:~$ luac -v
    Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio
    I am curious. Do I need to install liblua5.1-0-dev too and all that comes with it.
    Then how do I make up the file in red above?

    Thanks bartos for any help that you would be willing to offer! I think that is a pretty cool conky!

    Here is my current conky minus the weather at the bottom right here.
    Last edited by Cavsfan; May 12th, 2012 at 11:03 PM. Reason: added botton line
    Creating a Custom Maintenance Free GRUB2 Screen Community Wiki
    Creating a Custom Maintenance Free GRUB2 Screen on Arch Linux
    Intel Core2 Quad Q9550 2.84 GHz, NVIDIA GeForce 9800 GT, Mobo: MSI model: G31M3-L V2(MS-7529)

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

    Re: Post your .conkyrc files w/ screenshots

    @Cavsfan

    what do you get when you typr
    Code:
    conky -v
    in a terminal?

    you dont need any specific lua files, but you DO need an up to date conky with lua bindings

  3. #19773
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Cavsfan View Post
    I really like that conky! Since my system is the same basically, I thought I could just copy and past this and it would work.
    I was replacing my existing conky. But, then I noticed the above line in red in test.lua.
    I managed to install Lua 5.1.4

    Code:
    cavsfan@cavsfan-desktop:~$ luac -v
    Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio
    I am curious. Do I need to install liblua5.1-0-dev too and all that comes with it.
    Then how do I make up the file in red above?

    Thanks bartos for any help that you would be willing to offer! I think that is a pretty cool conky!

    Here is my current conky minus the weather at the bottom right here.
    bartos - if I may ...

    If you have the same fonts installed and have a 4 core CPU that conky complete with the LUA script should work ... with some minor mods.

    No need to install LUA devs. BUT:
    Code:
    conky --version
    needs to end like this:
    Code:
      * Lua
    
      Lua bindings:
       * Cairo
       * Imlib2
    
      19:27:33 ~
             $
    No conky is 100% guaranteed to work on every system.

    The line you quoted in red refers to where you copy the LUA script and it refers to the lines above TEXT in the conky (mrpeachy must have told me 20 times about that until it sunk in) like this:

    Code:
    lua_load /home/sector11/conky/bartos.test.lua
    lua_draw_hook_pre draw_lua
    
    TEXT
    as mine is in /home/sector11/conky/ the line needed is:
    Code:
    /home/sector11/conky/bartos.test.lua
    You can get that test.lua in bartos post just under his conky code.

    and at the end you see he uses two lines with "update-notifier" - thank dk75 for that little trick.

    You'll need to install it:
    Code:
    sudo apt-get install update-notifier
    bartos's conky on my system:

    Free Image Hosting by imgbox.com
    Notice that "CPU 0", I only have three cores, so it's a repeat of CPU 3

    bartos made a nice conky! I like it
    Last edited by Sector11; May 13th, 2012 at 12:06 AM.

  4. #19774
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by mrpeachy View Post
    @Cavsfan

    what do you get when you typr
    Code:
    conky -v
    in a terminal?

    you dont need any specific lua files, but you DO need an up to date conky with lua bindings
    I get called to the phone and you beat me to the punch.

  5. #19775
    Join Date
    Sep 2007
    Location
    house
    Beans
    79
    Distro
    Lubuntu Development Release

    Re: Post your .conkyrc files w/ screenshots

    bartos - if I may ...
    Of course. Thats why we have so many people here to help.

    Cavsfan Just stay away from conky version 1.8.1-6. It has a problem with gnome-keyring.
    Like Sector11 said, your lua version is ok
    you could remove or comment out ## the lua load and draw lines in conky and make sure the basic conky come up then try lua bars.

    I like your weather. which one is it.
    Geek by nature, Linux by choice

  6. #19776
    Join Date
    Mar 2009
    Location
    Singapore
    Beans
    88
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by mrpeachy View Post
    indeed yes (fun fact, i wrote that script )
    Good to know!
    Quote Originally Posted by mrpeachy View Post
    easiest way to do it would be to add a setting to each setup....
    ...that should do it
    And it did, thanks - as long as the battery is 100% full.
    What I was really after was a way for the bar to stay green until it got down to a certain cut-off point, and then revert to yellow/red. You pointed me in the right direction though, and after a little bit of tinkering I figured it out:
    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()
    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=30,--corner radius
    bg_color={0x222222,0.5},--color and alpha inside {}
    bg_height=-67,--negative number reduces height of bg
    w=conky_window.width,
    h=conky_window.height,
    };background(settings)
    --end background setup-------------------------------------
    --Line 1 settings
    local a_arg=conky_parse('${cpu}')
    local a_thick=10
    local a_red=0
    local a_green=0
    local a_blue=0
    local a_alpha=1
    local a_start=10
    --line 1 settings end  
    local a_num=tonumber(a_arg)
    --line 1 background
    
    --line 1 title
    cairo_rotate (cr,0*math.pi/180)
    cairo_show_text (cr, "CPU");
    cairo_rotate (cr, -90*math.pi/180)
    
    bar_adjust=-2
    
    --bar setup------------------------------------------------
    settings={--CPU GRAPH CPU
    number=tonumber(conky_parse("${cpu cpu0}")),--conky object to read
    number_max=100,--max value of conky object
    bar_startx=-258,--x coordinate
    bar_starty=13+bar_adjust,--y coordinate
    divisions=45,--number of blocks
    div_width=1,--horizontal size
    div_height=20,--vertical size
    div_gap=1,--space between bits
    bg_color={0xFFFFFF,0.25},--background color, color and alpha inside {}
    st_color={0x00FF00,1},--start color for gradient, green
    mid_color={0xFFFF00,1},--middle color for gradient, yellow
    end_color={0xFF0000,1},--end color for gradient
    };bars(settings)
    --
    --
    settings={--CPU GRAPH MEMORY
    number=tonumber(conky_parse("${memperc}")),--conky object to read
    number_max=100,--max value of conky object
    bar_startx=-271,--x coordinate
    bar_starty=53+bar_adjust,--y coordinate
    divisions=45,--number of blocks
    div_width=1,--horizontal size
    div_height=20,--vertical size
    div_gap=1,--space between bits
    bg_color={0xFFFFFF,0.25},--background color, color and alpha inside {}
    st_color={0x00FF00,1},--start color for gradient, green
    mid_color={0xFFFF00,1},--middle color for gradient, yellow
    end_color={0xFF0000,1},--end color for gradient
    };bars(settings)
    --
    --
    settings={--CPU GRAPH FILESPACE ROOT
    number=tonumber(conky_parse("${fs_used_perc /}")),--conky object to read
    number_max=100,--max value of conky object
    bar_startx=-284,--x coordinate
    bar_starty=93+bar_adjust,--y coordinate
    divisions=45,--number of blocks
    div_width=1,--horizontal size
    div_height=20,--vertical size
    div_gap=1,--space between bits
    bg_color={0xFFFFFF,0.25},--background color, color and alpha inside {}
    st_color={0x00FF00,1},--start color for gradient, green
    mid_color={0xFFFF00,1},--middle color for gradient, yellow
    end_color={0xFF0000,1},--end color for gradient
    };bars(settings)
    --
    --
    settings={--CPU GRAPH FILESPACE HOME
    number=tonumber(conky_parse("${fs_used_perc /home}")),--conky object to read
    number_max=100,--max value of conky object
    bar_startx=-297,--x coordinate
    bar_starty=133+bar_adjust,--y coordinate
    divisions=45,--number of blocks
    div_width=1,--horizontal size
    div_height=20,--vertical size
    div_gap=1,--space between bits
    bg_color={0xFFFFFF,0.25},--background color, color and alpha inside {}
    st_color={0x00FF00,1},--start color for gradient, green
    mid_color={0xFFFF00,1},--middle color for gradient, yellow
    end_color={0xFF0000,1},--end color for gradient
    };bars(settings)
    --
    --
    settings={--CPU GRAPH BATTERY
    number=tonumber(conky_parse("${battery_percent BAT1}")),--conky object to read
    number_max=100,--max value of conky object
    bar_startx=-310,--x coordinate
    bar_starty=173+bar_adjust,--y coordinate
    divisions=45,--number of blocks
    div_width=1,--horizontal size
    div_height=20,--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
    mid_color={0xFFFF00,1},--middle color for gradient, yellow
    end_color={0x00FF00,1},--end color for gradient
    --additional setting
    make_full_green=1,--set 1 to make bar green when full, 0 to have color gradient
    --additional setting
    };bars(settings)
    --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)
    --additional line
    local allgreen=t.make_full_green
    --additional line
    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
    --additional line
    local number_change=t.number_max*0.6
    --additional line
    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
    --additional lines
    if allgreen==1 and number>=number_change then
    if i<(divisions/2) and i<=number_divs then
    colr=((mr-sr)*(i/(divisions/2)))+er
    colg=((mg-sg)*(i/(divisions/2)))+eg
    colb=((mb-sb)*(i/(divisions/2)))+eb
    cola=((ma-sa)*(i/(divisions/2)))+ea
    elseif i>=(divisions/2) and i<=number_divs then
    colr=((er-mr)*((i-(divisions/2))/(divisions/2)))+er
    colg=((eg-mg)*((i-(divisions/2))/(divisions/2)))+eg
    colb=((eb-mb)*((i-(divisions/2))/(divisions/2)))+eb
    cola=((ea-ma)*((i-(divisions/2))/(divisions/2)))+ea
    else
    colr=br
    colg=bg
    colb=bb
    cola=ba
    end
    end
    --additional lines
    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
    Thanks again!

  7. #19777
    Join Date
    Aug 2009
    Location
    Beachside, Florida
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by bartos View Post
    Of course. Thats why we have so many people here to help.

    Cavsfan Just stay away from conky version 1.8.1-6. It has a problem with gnome-keyring.
    Like Sector11 said, your lua version is ok
    you could remove or comment out ## the lua load and draw lines in conky and make sure the basic conky come up then try lua bars.

    I like your weather. which one is it.
    Thanks all! I have everything mentioned. The conky and lua. I have conky version

    Code:
    cavsfan@cavsfan-desktop:~$ conky --version
    Conky 1.8.0 compiled Fri Apr 23 10:42:08 UTC 2010 for Linux 2.6.24-27-server (x86_64)
    Not sure what the Linux 2.6.24-27-server (x86_64) is listed for as I do not have a server nor that kernel.
    My kernel is 2.6.32-41-generic

    I have every thing I believe except the contents of that file:
    lua_load /path to file/filename.lua

    My weather was coming from weather.com but, it went away a week or so ago as they must have finally disabled it.
    I just commented the weather out.

    If I could figure out how to make that file or the contents of it I think I could get it to work.
    Thanks!
    Creating a Custom Maintenance Free GRUB2 Screen Community Wiki
    Creating a Custom Maintenance Free GRUB2 Screen on Arch Linux
    Intel Core2 Quad Q9550 2.84 GHz, NVIDIA GeForce 9800 GT, Mobo: MSI model: G31M3-L V2(MS-7529)

  8. #19778
    Join Date
    Aug 2009
    Location
    Beachside, Florida
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Post your .conkyrc files w/ screenshots

    Am I right in thinking this is just a comment in the top of test.lua?

    --[[ 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 ]]
    Creating a Custom Maintenance Free GRUB2 Screen Community Wiki
    Creating a Custom Maintenance Free GRUB2 Screen on Arch Linux
    Intel Core2 Quad Q9550 2.84 GHz, NVIDIA GeForce 9800 GT, Mobo: MSI model: G31M3-L V2(MS-7529)

  9. #19779
    Join Date
    Aug 2009
    Location
    Beachside, Florida
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Post your .conkyrc files w/ screenshots

    With barto's .conkyrc and test.lua (unchanged by me).
    This is what I get:




    The top line scrolls across. They whole thing is maybe 4 inches high.
    Creating a Custom Maintenance Free GRUB2 Screen Community Wiki
    Creating a Custom Maintenance Free GRUB2 Screen on Arch Linux
    Intel Core2 Quad Q9550 2.84 GHz, NVIDIA GeForce 9800 GT, Mobo: MSI model: G31M3-L V2(MS-7529)

  10. #19780
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Cavsfan View Post
    With barto's .conkyrc and test.lua (unchanged by me).
    This is what I get:




    The top line scrolls across. They whole thing is maybe 4 inches high.
    1. post the results (complete) of
    Code:
    conky --version
    Also in bartos conky you have just above TEXT there are two lines related to the "test.lua"

    Use this above TEXT in that conky:

    Code:
    # killall conky && conky -c ~/conky/bartos.conky &
    ###  Begin Window Settings  ##################################################
    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    
    # Use the Xdbe extension? (eliminates flicker)
    # It is highly recommended to use own window with this one
    # so double buffer won't be so big.
    double_buffer yes
    
    own_window_type normal #override
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    own_window_class bartos
    own_window_title bartos
    
    ### ARGB can be used for real transparency
    ### NOTE that a composite manager is required for real transparency.
    ### This option will not work as desired (in most cases) in conjunction with
    ### own_window_type override
    # own_window_argb_visual yes
    
    ### When ARGB visuals are enabled, this use this to modify the alpha value
    ### Use: own_window_type normal
    ### Use: own_window_transparent no
    ### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
    #own_window_argb_value 150
    
    minimum_size 270 680 ## width, height
    maximum_width 270  ## width, usually a good idea to equal minimum width
    
    gap_x 10 ### left &right
    gap_y 10 ### up & down
    
    alignment tl
    ####################################################  End Window Settings  ###
    ###  Font Settings  ##########################################################
    # Use Xft (anti-aliased font and stuff)
    use_xft yes
    xftfont Anonymous Pro:size=8
    #xftfont WenQuanYi Micro Hei Mono:size=8
    
    # Alpha of Xft font. Must be a value at or between 1 and 0 ###
    xftalpha 1
    # Force UTF8? requires XFT ###
    override_utf8_locale yes
    
    draw_shades no #### <<<<<<------------------To see it easier on light screens.
    #default_shade_color black
    
    draw_outline no #### <<<<<<---------------- Amplifies text if yes
    default_outline_color black
    
    uppercase no
    ######################################################  End Font Settings  ###
    ###  Color Settings  #########################################################
    default_shade_color gray
    default_outline_color black
    
    default_color DCDCDC #Gainsboro
    color0 ffe595 #Teo Gold
    color1 Grey        ##icons
    color2 Ivory       ##text
    color3 DarkGrey    ##divider lines
    color4 Orange        ##headings
    color5 bfff80
    color6 00BFFF #DeepSkyBlue
    color7 00FFFF #Cyan #48D1CC #MediumTurquoise
    color8 FFFF00 #Yellow
    color9 FF0000 #Red  #A52A2A #DarkRed
    #####################################################  End Color Settings  ###
    ###  Borders Section  ########################################################
    draw_borders no
    # Stippled borders?
    stippled_borders 0
    # border margins
    border_inner_margin 5
    border_outer_margin 0
    # border width
    border_width 0
    # graph borders
    draw_graph_borders no
    #####################################################  End Borders Secton  ###
    ###  Miscellaneous Section  ##################################################
    
    # Boolean value, if true, Conky will be forked to background when started.
    background no
    
    # Adds spaces around certain objects to stop them from moving other things
    # around, this only helps if you are using a mono font
    # Options: right, left or none
    use_spacer right
    
    # Default and Minimum size is 256 - needs more for single commands that
    # "call" a lot of text IE: bash scripts
    text_buffer_size 256
    
    # Subtract (file system) buffers from used memory?
    no_buffers yes
    
    # change GiB to G and MiB to M
    short_units yes
    
    # Like it says, ot pads the decimals on % values
    # doesn't seem to work since v1.7.1
    pad_percents 2
    
    #   Maximum size of user text buffer, i.e. layout below TEXT line in config file
    #  (default is 16384 bytes)
    # max_user_text 16384
    
    ##############################################  End Miscellaneous Section  ###
    ###  LUA Settings  ###########################################################
    ## Above and After TEXT - requires a composite manager or blinks.
    ##
    # lua_load ~/Conky/LUA/draw-bg.lua
    #TEXT
    #${lua conky_draw_bg 10 0 0 0 0 0x000000 0.6}
    #
    ## ${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
    ##
    ## OR Both above TEXT (No composite manager required - no blinking!)
    #
    #lua_load ~/Conky/LUA/draw-bg.lua
    #lua_draw_hook_pre draw_bg 10 0 0 0 0 0x000000 0.5
    #
    #######################################################  End LUA Settings  ###
    
    #digiThe all important - How often conky refreshes.
    # If you have a "Crey" try: 0.2 - smokin' - but watch the CPU useage go UP!
    update_interval 1 # in seconds
    
    # stuff after 'TEXT' will be formatted on screen
    ## Load Lua for shading (optional)
    ## Set the path to your script here.
    #
    lua_load /home/sector11/conky/bartos.test.lua
    lua_draw_hook_pre draw_lua
    
    TEXT

    NOTE:

    In the first line:
    ~/conky/bartos.conky

    Change that to the location you put it in OR create ~/conky and put it there.
    and change 'bartos.conky' to what you called it.

    The Lines just above TEXT:
    change:
    Code:
    lua_load /home/sector11/conky/bartos.test.lua
    lua_draw_hook_pre draw_lua
    to:
    lua_load /home/your_username/path/to/bartos.test.lua
    lua_draw_hook_pre draw_lua


    bartos.test.lua or just test.lua <<-- whatever you named it.

    That conky uses the font Anonymous Pro

    OR: another option: Grab the file and extract it to ~/
    WARNING: It will create: ~/conky if that directory exists just extract the two files from inside that folder to ~/conky

    and to start it:
    Code:
    conky -c ~/conky/bartos.conky &
    Keep us posted
    Attached Files Attached Files
    Last edited by Sector11; May 13th, 2012 at 08:57 PM. Reason: added file.

Page 1978 of 2328 FirstFirst ... 978147818781928196819761977197819791980198820282078 ... 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
  •