Page 1514 of 2348 FirstFirst ... 5141014141414641504151215131514151515161524156416142014 ... LastLast
Results 15,131 to 15,140 of 23480

Thread: Post your .conkyrc files w/ screenshots

  1. #15131
    Join Date
    Nov 2010
    Location
    Bogota
    Beans
    84
    Distro
    Ubuntu Development Release

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by El_Belgicano View Post
    Instead of:
    Code:
    maximum_size 50
    Try a combination:
    Code:
    minimum_size 400 20
    maximum_width 400
    These settings fix the width to 400px...
    You can also specify maximum_width to be greater than 400, so your conky will allways be between 400 and that maximum_width value in width...

    Another option is to shorten the title, decrease the font size for example...
    Worked like a charm thank you so much

  2. #15132
    Join Date
    Jul 2008
    Beans
    70

    Re: Post your .conkyrc files w/ screenshots

    I'm starting to use Banshee now as it's rumored to be replacing rhythmbox in next release (and I'm breaking away from amarok1.4 as it's taking to long to update database)

    I'm using the following to display cover art
    Code:
    ${exec cp "`conkyBanshee --datatype=CA | sed -e 's/\\\//g'`" /tmp/cover}${image /tmp/cover -p 0,120 -s 150x150}
    that works fine, but in terminal it says the following repeatedly
    Code:
    cp: cannot stat `': No such file or directory
    anyway I can get this fixed up?

    I know it might seem like a trivial thing as the album art actually displays, but I'm designing a custom Ubuntu and well, I want to try and make it look half decent lol

    (and yeah, it's kaivalagi's Banshee script)
    Linux...The mistress we all left Windows for

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

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by mrpeachy View Post
    thanks miegiel

    so you would only want this
    Code:
    co=tonumber(conky_parse('${exec vnstat -m | grep "`date +"%b '%y"`" | awk '{print $9}'}'))
    when vnstat goes from KiB to MiB is that just when it gets to 1000 KiB? and 1000MiB = 1 GiB? or is it 1024?
    you could put in a calculation that looks at the units and changes the max number accordingly...

    eg

    Code:
    --conky object to be displayed-----
    wtimer=(updates % 30)+1
    if updates==6 or wtimer==1 then
    co=tonumber(conky_parse('${exec vnstat -m | grep "`date +"%b '%y"`" | awk '{print $9}'}'))
    units=tostring(conky_parse('${exec vnstat -m | grep "`date +"%b '%y"`" | awk '{print $10}'}'))
    end
    --max number-------------------------
    if units=="GiB" then max=25
    else if units =="MiB" then max=25000
    end
    or something similar

    i really have to get around to reinstalling crunchbang on my puter!
    1 GiB = 1024 MiB (and 1 GB = 1000 MB)

  4. #15134
    Join Date
    May 2009
    Location
    Canada
    Beans
    868
    Distro
    Ubuntu Development Release

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by djyoung4 View Post
    This is Crinos512's code. Check out the site here
    Code:
    #!/bin/sh
    # conkygraphics.sh
    # by Crinos512
    # Usage:
    #  ${execp ~/.conky/conkyparts/conkygraphics.sh}
    #
    Card=`lspci | grep VGA | tail -c+36 | head -n1`
    Driver="NVidia "`nvidia-settings -q NvidiaDriverVersion -t`
    Resolution=`nvidia-settings -q FrontEndResolution -t`
    Refresh=`nvidia-settings -q RefreshRate3 -t`
    Mem=`nvidia-settings -q VideoRam -t`
    Clock=`nvidia-settings -q GPU2DClockFreqs -t`
    XRandr=`nvidia-settings -q XRandRVersion -t`
    OpenGL=`nvidia-settings -q OpenGLVersion -t | head -c6`
    Xorg=`cat /var/log/Xorg.0.log | grep "X.Org X Server " | tail -c+16`
    
    echo "\${color1}\${stippled_hr 1}\${color}"
    echo "\${voffset -6}  Graphics:"
    echo "\${voffset -6}\${color1}\${stippled_hr 1}\${color}"
    echo "    \${color2}$Card\${color}\${alignr} @ \${color2}$Clock Mhz\${color}   "
    echo "      X.org: \${color2}$Xorg\${color}\${goto 180}Xrandr: \${color2}$XRandr\${color}\${alignr}OpenGL: \${color2}$OpenGL\${color}   "
    echo "      Driver: \${color2}$Driver\${color}\${alignr}Screen: \${color2}$Resolution\${color} @ \${color2}$Refresh\${color}   "
    
    exit 0
    Thanks a lot. Yeah I managed to get most of those from looking at the source code for infopanel but that helps fix a few. I'd also imagine it's the same for ATI cards, just use catalyst instead of nvidia-settings.
    Intel Core i7 970 6/12 (Cores/Threads) 3.2GHz 12MB Cache
    6GB DDR3
    1866MHz RAM | ATI Radeon HD 5770 1GB GDDR5
    60GB SSD
    (/) | 1TB 64MB Cache HDD (/home)
    Ubuntu Oneiric
    Ocelot 11.10 x64

  5. #15135
    Join Date
    Apr 2007
    Beans
    73

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by BoredOutOfMyMind View Post
    I am sorry I forgot the smiley on my sarcasm.

    Thank you for your contributions here 42dorian.



    Did you enable the keyboard shortcuts, or do you run Openbox?

    Addictive? Conky? Whut?!?
    Yeah, I enabled the keyboard shortcuts. I've been fighting myself not to mess with it any more today...

  6. #15136
    Join Date
    Apr 2007
    Beans
    73

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by 42dorian View Post
    IS there a Conky Anonymous... or is that supposed to be us?

    Any way I can just assign the results of a function to a string? By chance? Anyone? 'Cause that'd make everything easier...

    *EDIT* Nope... Head starting to spin... Can't get the hang of this
    If we are Conky Anonymous then we are in some serious trouble

  7. #15137
    Join Date
    Apr 2007
    Beans
    195

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by miegiel View Post
    @42dorian

    In the line
    Code:
    ${image /home/dorian/Conky/XubuntuLogoForConky.png -p 250,0 -s 80x80 -n}
    you don't need the -n switch (assuming it's a static image).

    Yeah, I just forgot to take it out. For a while, the image wasn't showing at all, so I was experimenting on every variable and switch the image tag could handle trying to get it to work. It started working and I just forgot to take the switch out. Thank You for reminding me! *Goes to take it out.*

  8. #15138
    Join Date
    Apr 2007
    Beans
    195

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by miegiel View Post
    1 GiB = 1024 MiB (and 1 GB = 1000 MB)
    miegiel, MrPeachy... For the Love of GOD I actually understood that!!! But what I DON'T understand is why nothing shows up. I'm getting this error in the terminal.

    Code:
    Conky: unknown variable totalbw
    Conky: unknown variable totalbw
    Conky: unknown variable totalbw
    Conky: unknown variable totalbw
    Conky: unknown variable totalbw
    Conky: unknown variable totalbw
    Conky: unknown variable totalbw
    Conky: unknown variable totalbw
    Conky: unknown variable totalbw
    Conky: unknown variable totalbw
    Conky: unknown variable totalbw
    Conky: unknown variable totalbw
    Conky: unknown variable totalbw
    Where are the position and colour controls? I know it's documented, but... are they tricky in any way? Standard RGB values, Alpha of 255 is solid, positions are in pixels, Angles the same as in londonali1010's script? that kind of thing?

    This is what I've put together.

    BandwidthTotalV2.lua
    Code:
    require 'cairo'
    function draw_ring(co, across, down, rad, inlw, rstart, rend, bgr, bgg, bgb, bga, inr, ing, inb, ina)
    local angle_0=rstart*(2*math.pi/360)-math.pi/2
    local angle_f=rend*(2*math.pi/360)-math.pi/2
    local t_arc=(co/100)*(angle_f-angle_0)
    -- Draw background ring
    cairo_arc(cr,across,down,rad,angle_0,angle_f)
    cairo_set_source_rgba(cr,bgr,bgg,bgb,bga)
    cairo_set_line_width(cr,inlw)
    cairo_stroke(cr)
    -- Draw indicator ring
    cairo_arc(cr,across,down,rad,angle_0,angle_0+t_arc)
    cairo_set_source_rgba(cr,inr,ing,inb,ina)
    cairo_stroke(cr)
    end
    
    function conky_draw_vnring()
    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
    --RING 1 SETUP-----------------------------------------------------------------------------
    --conky object to be displayed-----
    wtimer=(updates % 30)+1
    if updates==6 or wtimer==1 then
    co=tonumber(conky_parse('${exec vnstat -m | grep "`date +"%b '%y"`" | awk '{print $9}'}'))
    units=tostring(conky_parse('${exec vnstat -m | grep "`date +"%b '%y"`" | awk '{print $10}'}'))
    end
    --max number--------------------------
    if units=="GiB" then max=25
    else if units =="MiB" then max=25000
    end
    --position-----------------------------
    across=265
    down=780
    --radius of ring-----------------------
    rad=50
    --ring width---------------------------
    inlw=8
    --start and end angles---------------
    rstart=-135
    rend=135
    --color and alpha for indicator----
    inr,ing,inb,ina=255,0,0,1
    --background ring color and alpha-----
    bgr,bgg,bgb,bga=255,255,0,1
    --calculation, do not edit below---------
    co=(co/max)*100
    draw_ring(co, across, down, rad, inlw, rstart, rend, bgr, bgg, bgb, bga, inr, ing, inb, ina)
    --END RING 1 SETUP---------------copy setup section and paste for additional rings----------
    end
    end
    And this is how I've done Conky:

    .conkyrc
    Code:
    #-----Run in Background
    background yes
    #-----Use XFT for Fonts
    use_xft yes
    xftfont DiamondFantasy:size=16
    xftalpha 0.5
    #-----How often to run, in seconds
    update_interval 1.0
    #-----Window Controls, Has it's own, Normal, Transparent Window...
    own_window yes
    own_window_type normal
    own_window_transparent yes
    #-----...Undecorated, Sticky Window without putting it in the Taskbar or Pager, all Below everything else.
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    #-----Text Buffer, how big a script can be when called.
    text_buffer_size 2048
    #-----Window Size and Width
    minimum_size 350 50
    maximum_width 600
    #-----Stops the Blinking!
    double_buffer yes
    #-----Don't draw any shadows, shades, or outlines for the window or text.
    draw_shades no
    draw_outline no
    draw_borders no
    #-----DO draw borders around the graphs
    draw_graph_borders yes
    #-----Put the whole thing, top right.
    alignment top_right
    #-----Gap of 40 pixels between the Conky, and the edge of the screen, No gap at the top or bottom.
    gap_x 50
    gap_y 0
    #-----Disables file system buffers from used memory
    no_buffers yes
    #-----How many samples to average for measuring CPU activity.
    cpu_avg_samples 2
    #---Dunno exactly, required for Weather section to work properly.
    override_utf8_locale yes
    #-----Helps keep certain things aligned.
    use_spacer right
    #-----Lua Script To Load(When It's Ready, Currently In Development)
    lua_load ~/Conky/Scripts/BandwidthTotalV2.lua
    lua_draw_hook_pre draw_vnring
    
    #-----Code shortcut for colours.
    default_color 808080          #Grey
    color0 FF0000                 #Red
    color1 FFFF00		              #Yellow
    color2 FFFFFF                 #White
    color3 808080                 #Grey
    color4 00FF00									#Green
    color5 C0C0C0									#Silver
    color6 FFD700									#Gold
    
    TEXT#-----System Header, Conky Version(Only When Needed), and Xubuntu Graphic
    ${font}${color1}Xubuntu 10.10 (Maverick Meerkat)
    $sysname $kernel on $machine
    ${color2}Uptime:${goto 100}$uptime
    #${conky_version}
    ${image /home/dorian/Conky/Icons/XubuntuLogoForConky.png -p 250,0 -s 80x80}
    ${color2}WEATHER: ${execi 3600 conkyForecast -l CAXX0342 -d CN}${color0}${hr 1}${color2}
    Now${goto 75}${execi 3600 conkyForecast -l CAXX0342 -d DW -w -s 1}${goto 135}${execi 3600 conkyForecast -l CAXX0342 -d DW -w -s 2}${goto 195}${execi 3600 conkyForecast -l CAXX0342 -d DW -w -s 3}${goto 255}Tomorrow:
    #-----High Temp:/Sunrise Title
    H:${execi 3600 conkyForecast -l CAXX0342 -d HT -u -x}${font TransponderAOE}°${font}C${goto 75}${execi 3600 conkyForecast -l CAXX0342 -d HT -u -x -s 2}${font TransponderAOE}°${font}C${goto 135}${execi 3600 conkyForecast -l CAXX0342 -d HT -u -x -s 3}${font TransponderAOE}°${font}C${goto 195}${execi 3600 conkyForecast -l CAXX0342 -d HT -u -x -s 4}${font TransponderAOE}°${font}C${goto 255}${goto 255}Sunrise:
    #-----Low Temp:/Sunrise
    ${voffset -15}L:${execi 3600 conkyForecast -l CAXX0342 -d LT -u -x}${font TransponderAOE}°${font}C${goto 75}${execi 3600 conkyForecast -l CAXX0342 -d LT -u -x -s 2}${font TransponderAOE}°${font}C${goto 135}${execi 3600 conkyForecast -l CAXX0342 -d LT -u -x -s 3}${font TransponderAOE}°${font}C${goto 195}${execi 3600 conkyForecast -l CAXX0342 -d LT -u -x -s 4}${font TransponderAOE}°${font}C${goto 255}${execi 3600 conkyForecast -l CAXX0342 -d SR -s 2}
    #-----Weather Conditions:/Sunset
    ${color1}${font conkyWeather:size=30}${execi 3600 conkyForecast -l CAXX0342 -d WF}${goto 75}${execi 3600 conkyForecast -l CAXX0342 -d WF -s 2}${goto 135}${execi 3600 conkyForecast -l CAXX0342 -d WF -s 3}${goto 195}${execi 3600 conkyForecast -l CAXX0342 -d WF -s 4}${color2}${font}${voffset -25}${goto 255}Sunset:
    ${goto 255}${execi 3600 conkyForecast -l CAXX0342 -d SS -s 2}
    #-----Moon Phase Title
    ${goto 255}Moon 
    ${goto 255}Phase:
    #-----Wind Direction:/Moon Font
    ${font ConkyWindNESW:size=40}${voffset -25}${execi 3600 conkyForecast -l CAXX0342 -d BF}${goto 75}${execi 3600 conkyForecast -l CAXX0342 -d BF -s 2}${goto 135}${execi 3600 conkyForecast -l CAXX0342 -d BF -s 3}${goto 195}${execi 3600 conkyForecast -l CAXX0342 -d BF -s 4}${goto 310}${font MoonPhases:size=30}${execi 3600 conkyForecast -l CAXX0342 -d MF}${font}
    #-----Wind Speed(With spacing edit by VinDSL):/Moon Phase
    ${execi 3600 conkyForecast -l CAXX0342 -d WS | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${goto 75}${execi 3600 conkyForecast -l CAXX0342 -d WS -s 2 | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${goto 135}${execi 3600 conkyForecast -l CAXX0342 -d WS -s 3 | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${goto 195}${execi 3600 conkyForecast -l CAXX0342 -d WS -s 4 | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${goto 255}${execi 3600 conkyForecast -l CAXX0342 -d MP}
    #-----System/Drive Info
    ${voffset 5}${font}${color2}SYSTEM ${color0}${hr 1}${color2}
    CPU1:${goto 55}${freq_g 1}Ghz${goto 120}${color1}${cpubar cpu1 5,120}:${cpu cpu1}%${goto 290}Used
    ${color2}CPU2:${goto 55}${freq_g 2}Ghz${goto 120}${color1}${cpubar cpu2 5,120}:${cpu cpu2}%${goto 290}Used
    ${color2}RAM:${goto 55}${memmax}${goto 120}${color5}${membar 8,120}:${memperc}%${goto 290}Used${color2}
    ${color2}SWAP:${goto 55}${swapmax}${goto 120}${color5}${swapbar 8,120}:${swapperc}%${goto 290}Used${color2}
    #-----Main Drives
    ${color2}SYSTEM DRIVES ${color0}${hr 1}${color2}
    ${color2}Root:${goto 50}${fs_size /}${goto 110}${fs_used_perc /}%${goto 150}Used${goto 190}${color0}${fs_bar 5,120 /}
    ${color2}Home:${goto 50}${fs_size /home}${goto 110}${fs_used_perc /home}%${goto 150}Used${goto 190}${color1}${fs_bar 5,120 /home}
    ${color2}Test1:${goto 50}${fs_size /media/Test1}${goto 110}${fs_used_perc /media/Test1}%${goto 150}Used${goto 190}${color5}${fs_bar 5,120 /media/Test1}
    ${color2}Test2:${goto 50}${fs_size /media/Test2}${goto 110}${fs_used_perc /media/Test2}%${goto 150}Used${goto 190}${color5}${fs_bar 5,120 /media/Test2}
    ${color2}120:${goto 50}${fs_size /media/120}${goto 110}${fs_used_perc /media/120}%${goto 150}Used${goto 190}${color5}${fs_bar 5,120 /media/120}
    #-----USB Drives (Special because it checks to see if they're plugged in first.)
    ${color2}CONNECTED DRIVES ${color0}${hr 1}${color2}
    ${if_existing /media/7GBACKUP}${color2}7GBACKUP:${goto 100}${fs_size /media/7GBACKUP}${goto 160}${fs_used_perc /media/7GBACKUP}%${goto 200}Used${goto 240}${color1}${fs_bar 5,120 /media/7GBACKUP}${else}${color2}7GBACKUP: N/A${endif}
    ${if_existing /media/7GBACKUP2}${color2}7GBACKUP2:${goto 100}${fs_size /media/7GBACKUP2}${goto 160}${fs_used_perc /media/7GBACKUP2}%${goto 200}Used${goto 240}${color1}${fs_bar 5,120 /media/7GBACKUP2}${else}${color2}7GBACKUP2: N/A${endif}
    ${if_existing /media/7GBACKUP3}${color2}7GBACKUP3:${goto 100}${fs_size /media/7GBACKUP3}${goto 160}${fs_used_perc /media/7GBACKUP3}%${goto 200}Used${goto 240}${color1}${fs_bar 5,120 /media/7GBACKUP3}${else}${color2}7GBACKUP3: N/A${endif}
    #-----Network Info
    ${color2}NETWORK ${color0}${hr 1}${color2}
    ${color2}Hostname${goto 95}$nodename${goto 145}|${goto 165}Inbound${goto 235}|${goto 245}Outbound
    INet: 
    ${addr eth1}${goto 145}|${goto 165}${color4}${downspeed eth1}${goto 220}/s${goto 235}${color2}|${goto 245}${color1}${upspeed eth1}${goto 305}/s${image ~/Conky/Icons/Globe.png -p 330,625 -s 20x20}
    ${color2}Private
    ${addr eth0}${goto 145}|${goto 165}${color4}${downspeed eth0}${goto 220}/s${goto 235}${color2}|${goto 245}${color1}${upspeed eth0}${goto 305}/s${image ~/Conky/Icons/Private.png -p 330,665 -s 20x20}
    ${color2}Bluetooth
    ${addr pan1}${goto 145}|${goto 165}${color4}${downspeed pan1}${goto 220}/s${goto 235}${color2}|${goto 245}${color1}${upspeed pan1}${goto 305}/s${image ~/Conky/Icons/bluetooth.png -p 330,700 -s 20x20}
    #-----Monthly/Daily Bandwidth Usage
    ${color2}NETWORK DATA USE${color0}${hr 1}${color2}
    ${goto 25}${color2}Today${goto 125}Monthly 
    ${color2}U:${goto 25}${color1}${execi 30 vnstat | grep "today" | awk '{print $5}'}${goto 75}${execi 30 vnstat | grep "today" | awk '{print $6}'}${goto 125}${execi 30 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $6}'}${goto 175}${execi 30 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $7}'}${goto 265}${color2}25
    ${color2}D:${goto 25}${color4}${execi 30 vnstat | grep "today" | awk '{print $2}'}${goto 75}${execi 30 vnstat | grep "today" | awk '{print $3}'}${goto 125}${execi 30 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $3}'}${goto 175}${execi 30 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $4}'}${goto 265}${color2}GB
    ${color2}T:${goto 25}${color5}${execi 30 vnstat | grep "today" | awk '{print $8}'}${goto 75}${execi 30 vnstat | grep "today" | awk '{print $9}'}${goto 125}${execi 30 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $9}'}${goto 175}${execi 30 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $10}'}${goto 220}${color2}Total Allowance${font}
    #-----Calendar by VinDSL
    ${color2}CALENDAR:${goto 100}${execpi 60 date +'%B${offset 6}%Y'}${color0}${hr 1}${color2}
    ${voffset 3}${font TransponderAOE:bold:size=15}${execpi 60 cal | sed '1d' | sed s/^/"\$\{offset 37"\}/ | sed '/^ *$/d' | sed 's/\<'"$(date +%-d)"'\>/${color1}&${color2}/'}
    And it has resulted in(Screenshot, Turned off the clock script for now):
    Attached Images Attached Images

  9. #15139
    Join Date
    Aug 2010
    Location
    Arizona USA
    Beans
    3,001
    Distro
    Ubuntu Development Release

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by kismeras View Post
    If we are Conky Anonymous then we are in some serious trouble
    LoL!

    I used to have a friend that went to Alcoholics Anonymous.

    He said, it made him so thirsty, listening to all the stories, that after the meetings, he'd go to the nearest bar and get drunk.

    That's probably what's happening here...
    Intel ® P4 Extreme Edition 3.4 (Gallatin) || DFI ® LanParty PRO875B rev B1
    Crucial ® Ballistix Tracer PC4000 1GB || Mountain Mods U2-UFO Opti-1203
    XFX 7600GT 560M AGP (PV-T73A-UDF3) || Corsair HX520W Modular PSU

  10. #15140
    Join Date
    Oct 2009
    Location
    Under a rock
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by 42dorian View Post
    miegiel, MrPeachy... For the Love of GOD I actually understood that!!! But what I DON'T understand is why nothing shows up. I'm getting this error in the terminal.

    Code:
    Conky: unknown variable totalbw
    Conky: unknown variable totalbw
    Conky: unknown variable totalbw
    Conky: unknown variable totalbw
    Conky: unknown variable totalbw
    Conky: unknown variable totalbw
    Conky: unknown variable totalbw
    Conky: unknown variable totalbw
    Conky: unknown variable totalbw
    Conky: unknown variable totalbw
    Conky: unknown variable totalbw
    Conky: unknown variable totalbw
    Conky: unknown variable totalbw
    Where are the position and colour controls? I know it's documented, but... are they tricky in any way? Standard RGB values, Alpha of 255 is solid, positions are in pixels, Angles the same as in londonali1010's script? that kind of thing?

    This is what I've put together.

    BandwidthTotalV2.lua
    Code:
    require 'cairo'
    function draw_ring(co, across, down, rad, inlw, rstart, rend, bgr, bgg, bgb, bga, inr, ing, inb, ina)
    local angle_0=rstart*(2*math.pi/360)-math.pi/2
    local angle_f=rend*(2*math.pi/360)-math.pi/2
    local t_arc=(co/100)*(angle_f-angle_0)
    -- Draw background ring
    cairo_arc(cr,across,down,rad,angle_0,angle_f)
    cairo_set_source_rgba(cr,bgr,bgg,bgb,bga)
    cairo_set_line_width(cr,inlw)
    cairo_stroke(cr)
    -- Draw indicator ring
    cairo_arc(cr,across,down,rad,angle_0,angle_0+t_arc)
    cairo_set_source_rgba(cr,inr,ing,inb,ina)
    cairo_stroke(cr)
    end
    
    function conky_draw_vnring()
    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
    --RING 1 SETUP-----------------------------------------------------------------------------
    --conky object to be displayed-----
    wtimer=(updates % 30)+1
    if updates==6 or wtimer==1 then
    co=tonumber(conky_parse('${exec vnstat -m | grep "`date +"%b '%y"`" | awk '{print $9}'}'))
    units=tostring(conky_parse('${exec vnstat -m | grep "`date +"%b '%y"`" | awk '{print $10}'}'))
    end
    --max number--------------------------
    if units=="GiB" then max=25
    else if units =="MiB" then max=25000
    end
    --position-----------------------------
    across=265
    down=780
    --radius of ring-----------------------
    rad=50
    --ring width---------------------------
    inlw=8
    --start and end angles---------------
    rstart=-135
    rend=135
    --color and alpha for indicator----
    inr,ing,inb,ina=255,0,0,1
    --background ring color and alpha-----
    bgr,bgg,bgb,bga=255,255,0,1
    --calculation, do not edit below---------
    co=(co/max)*100
    draw_ring(co, across, down, rad, inlw, rstart, rend, bgr, bgg, bgb, bga, inr, ing, inb, ina)
    --END RING 1 SETUP---------------copy setup section and paste for additional rings----------
    end
    end
    And this is how I've done Conky:

    .conkyrc
    Code:
    #-----Run in Background
    background yes
    #-----Use XFT for Fonts
    use_xft yes
    xftfont DiamondFantasy:size=16
    xftalpha 0.5
    #-----How often to run, in seconds
    update_interval 1.0
    #-----Window Controls, Has it's own, Normal, Transparent Window...
    own_window yes
    own_window_type normal
    own_window_transparent yes
    #-----...Undecorated, Sticky Window without putting it in the Taskbar or Pager, all Below everything else.
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    #-----Text Buffer, how big a script can be when called.
    text_buffer_size 2048
    #-----Window Size and Width
    minimum_size 350 50
    maximum_width 600
    #-----Stops the Blinking!
    double_buffer yes
    #-----Don't draw any shadows, shades, or outlines for the window or text.
    draw_shades no
    draw_outline no
    draw_borders no
    #-----DO draw borders around the graphs
    draw_graph_borders yes
    #-----Put the whole thing, top right.
    alignment top_right
    #-----Gap of 40 pixels between the Conky, and the edge of the screen, No gap at the top or bottom.
    gap_x 50
    gap_y 0
    #-----Disables file system buffers from used memory
    no_buffers yes
    #-----How many samples to average for measuring CPU activity.
    cpu_avg_samples 2
    #---Dunno exactly, required for Weather section to work properly.
    override_utf8_locale yes
    #-----Helps keep certain things aligned.
    use_spacer right
    #-----Lua Script To Load(When It's Ready, Currently In Development)
    lua_load ~/Conky/Scripts/BandwidthTotalV2.lua
    lua_draw_hook_pre draw_vnring
    
    #-----Code shortcut for colours.
    default_color 808080          #Grey
    color0 FF0000                 #Red
    color1 FFFF00                      #Yellow
    color2 FFFFFF                 #White
    color3 808080                 #Grey
    color4 00FF00                                    #Green
    color5 C0C0C0                                    #Silver
    color6 FFD700                                    #Gold
    
    TEXT#-----System Header, Conky Version(Only When Needed), and Xubuntu Graphic
    ${font}${color1}Xubuntu 10.10 (Maverick Meerkat)
    $sysname $kernel on $machine
    ${color2}Uptime:${goto 100}$uptime
    #${conky_version}
    ${image /home/dorian/Conky/Icons/XubuntuLogoForConky.png -p 250,0 -s 80x80}
    ${color2}WEATHER: ${execi 3600 conkyForecast -l CAXX0342 -d CN}${color0}${hr 1}${color2}
    Now${goto 75}${execi 3600 conkyForecast -l CAXX0342 -d DW -w -s 1}${goto 135}${execi 3600 conkyForecast -l CAXX0342 -d DW -w -s 2}${goto 195}${execi 3600 conkyForecast -l CAXX0342 -d DW -w -s 3}${goto 255}Tomorrow:
    #-----High Temp:/Sunrise Title
    H:${execi 3600 conkyForecast -l CAXX0342 -d HT -u -x}${font TransponderAOE}°${font}C${goto 75}${execi 3600 conkyForecast -l CAXX0342 -d HT -u -x -s 2}${font TransponderAOE}°${font}C${goto 135}${execi 3600 conkyForecast -l CAXX0342 -d HT -u -x -s 3}${font TransponderAOE}°${font}C${goto 195}${execi 3600 conkyForecast -l CAXX0342 -d HT -u -x -s 4}${font TransponderAOE}°${font}C${goto 255}${goto 255}Sunrise:
    #-----Low Temp:/Sunrise
    ${voffset -15}L:${execi 3600 conkyForecast -l CAXX0342 -d LT -u -x}${font TransponderAOE}°${font}C${goto 75}${execi 3600 conkyForecast -l CAXX0342 -d LT -u -x -s 2}${font TransponderAOE}°${font}C${goto 135}${execi 3600 conkyForecast -l CAXX0342 -d LT -u -x -s 3}${font TransponderAOE}°${font}C${goto 195}${execi 3600 conkyForecast -l CAXX0342 -d LT -u -x -s 4}${font TransponderAOE}°${font}C${goto 255}${execi 3600 conkyForecast -l CAXX0342 -d SR -s 2}
    #-----Weather Conditions:/Sunset
    ${color1}${font conkyWeather:size=30}${execi 3600 conkyForecast -l CAXX0342 -d WF}${goto 75}${execi 3600 conkyForecast -l CAXX0342 -d WF -s 2}${goto 135}${execi 3600 conkyForecast -l CAXX0342 -d WF -s 3}${goto 195}${execi 3600 conkyForecast -l CAXX0342 -d WF -s 4}${color2}${font}${voffset -25}${goto 255}Sunset:
    ${goto 255}${execi 3600 conkyForecast -l CAXX0342 -d SS -s 2}
    #-----Moon Phase Title
    ${goto 255}Moon 
    ${goto 255}Phase:
    #-----Wind Direction:/Moon Font
    ${font ConkyWindNESW:size=40}${voffset -25}${execi 3600 conkyForecast -l CAXX0342 -d BF}${goto 75}${execi 3600 conkyForecast -l CAXX0342 -d BF -s 2}${goto 135}${execi 3600 conkyForecast -l CAXX0342 -d BF -s 3}${goto 195}${execi 3600 conkyForecast -l CAXX0342 -d BF -s 4}${goto 310}${font MoonPhases:size=30}${execi 3600 conkyForecast -l CAXX0342 -d MF}${font}
    #-----Wind Speed(With spacing edit by VinDSL):/Moon Phase
    ${execi 3600 conkyForecast -l CAXX0342 -d WS | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${goto 75}${execi 3600 conkyForecast -l CAXX0342 -d WS -s 2 | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${goto 135}${execi 3600 conkyForecast -l CAXX0342 -d WS -s 3 | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${goto 195}${execi 3600 conkyForecast -l CAXX0342 -d WS -s 4 | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${goto 255}${execi 3600 conkyForecast -l CAXX0342 -d MP}
    #-----System/Drive Info
    ${voffset 5}${font}${color2}SYSTEM ${color0}${hr 1}${color2}
    CPU1:${goto 55}${freq_g 1}Ghz${goto 120}${color1}${cpubar cpu1 5,120}:${cpu cpu1}%${goto 290}Used
    ${color2}CPU2:${goto 55}${freq_g 2}Ghz${goto 120}${color1}${cpubar cpu2 5,120}:${cpu cpu2}%${goto 290}Used
    ${color2}RAM:${goto 55}${memmax}${goto 120}${color5}${membar 8,120}:${memperc}%${goto 290}Used${color2}
    ${color2}SWAP:${goto 55}${swapmax}${goto 120}${color5}${swapbar 8,120}:${swapperc}%${goto 290}Used${color2}
    #-----Main Drives
    ${color2}SYSTEM DRIVES ${color0}${hr 1}${color2}
    ${color2}Root:${goto 50}${fs_size /}${goto 110}${fs_used_perc /}%${goto 150}Used${goto 190}${color0}${fs_bar 5,120 /}
    ${color2}Home:${goto 50}${fs_size /home}${goto 110}${fs_used_perc /home}%${goto 150}Used${goto 190}${color1}${fs_bar 5,120 /home}
    ${color2}Test1:${goto 50}${fs_size /media/Test1}${goto 110}${fs_used_perc /media/Test1}%${goto 150}Used${goto 190}${color5}${fs_bar 5,120 /media/Test1}
    ${color2}Test2:${goto 50}${fs_size /media/Test2}${goto 110}${fs_used_perc /media/Test2}%${goto 150}Used${goto 190}${color5}${fs_bar 5,120 /media/Test2}
    ${color2}120:${goto 50}${fs_size /media/120}${goto 110}${fs_used_perc /media/120}%${goto 150}Used${goto 190}${color5}${fs_bar 5,120 /media/120}
    #-----USB Drives (Special because it checks to see if they're plugged in first.)
    ${color2}CONNECTED DRIVES ${color0}${hr 1}${color2}
    ${if_existing /media/7GBACKUP}${color2}7GBACKUP:${goto 100}${fs_size /media/7GBACKUP}${goto 160}${fs_used_perc /media/7GBACKUP}%${goto 200}Used${goto 240}${color1}${fs_bar 5,120 /media/7GBACKUP}${else}${color2}7GBACKUP: N/A${endif}
    ${if_existing /media/7GBACKUP2}${color2}7GBACKUP2:${goto 100}${fs_size /media/7GBACKUP2}${goto 160}${fs_used_perc /media/7GBACKUP2}%${goto 200}Used${goto 240}${color1}${fs_bar 5,120 /media/7GBACKUP2}${else}${color2}7GBACKUP2: N/A${endif}
    ${if_existing /media/7GBACKUP3}${color2}7GBACKUP3:${goto 100}${fs_size /media/7GBACKUP3}${goto 160}${fs_used_perc /media/7GBACKUP3}%${goto 200}Used${goto 240}${color1}${fs_bar 5,120 /media/7GBACKUP3}${else}${color2}7GBACKUP3: N/A${endif}
    #-----Network Info
    ${color2}NETWORK ${color0}${hr 1}${color2}
    ${color2}Hostname${goto 95}$nodename${goto 145}|${goto 165}Inbound${goto 235}|${goto 245}Outbound
    INet: 
    ${addr eth1}${goto 145}|${goto 165}${color4}${downspeed eth1}${goto 220}/s${goto 235}${color2}|${goto 245}${color1}${upspeed eth1}${goto 305}/s${image ~/Conky/Icons/Globe.png -p 330,625 -s 20x20}
    ${color2}Private
    ${addr eth0}${goto 145}|${goto 165}${color4}${downspeed eth0}${goto 220}/s${goto 235}${color2}|${goto 245}${color1}${upspeed eth0}${goto 305}/s${image ~/Conky/Icons/Private.png -p 330,665 -s 20x20}
    ${color2}Bluetooth
    ${addr pan1}${goto 145}|${goto 165}${color4}${downspeed pan1}${goto 220}/s${goto 235}${color2}|${goto 245}${color1}${upspeed pan1}${goto 305}/s${image ~/Conky/Icons/bluetooth.png -p 330,700 -s 20x20}
    #-----Monthly/Daily Bandwidth Usage
    ${color2}NETWORK DATA USE${color0}${hr 1}${color2}
    ${goto 25}${color2}Today${goto 125}Monthly 
    ${color2}U:${goto 25}${color1}${execi 30 vnstat | grep "today" | awk '{print $5}'}${goto 75}${execi 30 vnstat | grep "today" | awk '{print $6}'}${goto 125}${execi 30 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $6}'}${goto 175}${execi 30 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $7}'}${goto 265}${color2}25
    ${color2}D:${goto 25}${color4}${execi 30 vnstat | grep "today" | awk '{print $2}'}${goto 75}${execi 30 vnstat | grep "today" | awk '{print $3}'}${goto 125}${execi 30 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $3}'}${goto 175}${execi 30 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $4}'}${goto 265}${color2}GB
    ${color2}T:${goto 25}${color5}${execi 30 vnstat | grep "today" | awk '{print $8}'}${goto 75}${execi 30 vnstat | grep "today" | awk '{print $9}'}${goto 125}${execi 30 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $9}'}${goto 175}${execi 30 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $10}'}${goto 220}${color2}Total Allowance${font}
    #-----Calendar by VinDSL
    ${color2}CALENDAR:${goto 100}${execpi 60 date +'%B${offset 6}%Y'}${color0}${hr 1}${color2}
    ${voffset 3}${font TransponderAOE:bold:size=15}${execpi 60 cal | sed '1d' | sed s/^/"\$\{offset 37"\}/ | sed '/^ *$/d' | sed 's/\<'"$(date +%-d)"'\>/${color1}&${color2}/'}
    And it has resulted in(Screenshot, Turned off the clock script for now):
    thats strange becasue i cant locate "totalbw" anywhere in the lua script or your conkyrc... did you killall conky and restart after making changes?

    as for the colors ... 1=255, so for the red, green, blue, alpha values, if you have a color that is say red 20, green 150, blue 80... you could enter them into the script as (20/255), (150/255) etc

    position in pixels, yes... and i believe the angles work the same as with londonali1010's script

    note... also as GiB = 1024MiB, you want to change the max number calculations to

    Code:
    --max number--------------------------
    if units=="GiB" then max=25
    else if units =="MiB" then max=25*1024
    end
    hope you can get it working! sorry that i cant be more exact, but im typing from windows xp... so no lua or conky to test
    Last edited by mrpeachy; December 4th, 2010 at 08:57 AM.

Page 1514 of 2348 FirstFirst ... 5141014141414641504151215131514151515161524156416142014 ... 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
  •