Page 1770 of 2328 FirstFirst ... 7701270167017201760176817691770177117721780182018702270 ... LastLast
Results 17,691 to 17,700 of 23272

Thread: Post your .conkyrc files w/ screenshots

  1. #17691
    Join Date
    Aug 2007
    Location
    Belgium
    Beans
    176
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by wildmanne39 View Post
    Hi, very nice conky and background.
    Quote Originally Posted by VCoolio View Post
    @El Belgicano: I'd like to see the part where you check for new episodes for the series you follow. Is that using some rss service? Or isn't that what it does?
    Quote Originally Posted by akernan View Post
    Post your conky code, I'd like to see it.
    @wildmanne39: glad you like my background, for safety reasons though -we don't want sector_11 to be smacked on the back of the head again, do we?- i'll change it before posting...

    @VCoolio: It actually fetches the fastpasstv television list and checks for new published episodes for my series, so it's not the airing time but the ready to view online time that triggers the apparition, usually with only a few hours delay.

    @akernan: 8 conkies, 2 forecast templates, one lua file, and one additional script coming your way...

    ~/.conkyrcTime
    Code:
    use_xft yes
    xftfont Purisa:size=62
    xftalpha 1.0
    update_interval 10
    total_run_times 0
    own_window yes
    own_window_type override
    own_window_transparent yes
    double_buffer yes
    minimum_size 220 10
    maximum_width 220
    draw_shades no
    alignment top_left
    gap_x 360
    gap_y 40
    no_buffers yes
    override_utf8_locale yes
    text_buffer_size 512
    TEXT
    ${alignc}${color #708090}${time %H}${voffset -15}${font Purisa:size=45}${time %M}
    ~/.conkyrcMpd
    Code:
    use_xft yes
    xftfont Purisa:size=20
    xftalpha 1.0
    update_interval 0.5
    total_run_times 0
    own_window yes
    own_window_type override
    own_window_transparent yes
    double_buffer yes
    minimum_size 950 10
    maximum_width 950
    draw_shades no
    alignment bottom_left
    gap_x 300
    gap_y 5
    no_buffers yes
    override_utf8_locale yes
    text_buffer_size 256
    lua_load ~/.conkyCairo.lua
    lua_draw_hook_pre mpdbackgroundbar
    TEXT
    ${lua my_flag 0}${if_mpd_playing}${color #708090}${goto 30}${mpd_artist}${lua my_flag 1}
    ${font Purisa:size=13}${goto 50}${mpd_title}${endif}
    ~/.conkyrcTopLeft
    Code:
    use_xft yes
    xftfont Nimbus Mono L:Bold:size=16
    xftalpha 1.0
    update_interval 10
    total_run_times 0
    own_window yes
    own_window_type override
    own_window_transparent yes
    double_buffer yes
    minimum_size 90 10
    maximum_width 90
    draw_shades no
    alignment top_left
    gap_x 0
    gap_y 2
    no_buffers yes
    override_utf8_locale yes
    text_buffer_size 1024
    TEXT
    ${color #708090}${alignc}${time %H:%M}
    ~/.conkyrcTopRight
    Code:
    use_xft yes
    xftfont Bitstream Vera Sans Mono:size=8
    xftalpha 1.0
    update_interval 1
    total_run_times 0
    own_window yes
    own_window_type override
    own_window_transparent yes
    double_buffer yes
    minimum_size 100 10
    maximum_width 100
    draw_shades no
    alignment top_right
    gap_x 0
    gap_y 0
    no_buffers yes
    override_utf8_locale yes
    text_buffer_size 1024
    TEXT
    ${voffset 1}${color #708090}${alignc}VPN: ${if_running vpnc}On${else}Off${endif}
    ${alignc}Vol: ${mixer}%
    ~/.conkyrcA
    Code:
    use_xft yes
    xftfont Nimbus Mono L:Bold:size=8
    xftalpha 1.0
    update_interval 2
    total_run_times 0
    own_window yes
    own_window_type override
    own_window_transparent yes
    double_buffer yes
    minimum_size 75 20
    maximum_width 75
    draw_shades no
    alignment top_left
    gap_x 20
    gap_y 70
    no_buffers yes
    override_utf8_locale yes
    text_buffer_size 1024
    TEXT
    ${color #708090}${alignr}Host:
    
    ${alignr}Kernel:
    
    ${alignr}Cpu:
    
    
    
    
    ${alignr}Ram:
    
    
    
    
    ${alignr}Swap:
    
    ${alignr}Disks:
    
    ${alignr}Power:
    
    ${alignr}Updates:
    
    ${alignr}GMail:
    
    ${alignr}UGent:
    
    ${alignr}Connections:
    
    ${if_up eth2}${alignr}LAN:
    
    
    
    ${endif}${if_up wlan0}${alignr}WLAN:
    
    
    
    ${alignr}Networks:${endif}
    ~/.conkyrcB
    Code:
    use_xft yes
    xftfont Nimbus Mono L:Bold:size=8
    xftalpha 1.0
    update_interval 0.5
    total_run_times 0
    own_window yes
    own_window_type override
    own_window_transparent yes
    double_buffer yes
    minimum_size 200 20
    maximum_width 200
    draw_shades no
    alignment top_left
    gap_x 105
    gap_y 70
    no_buffers yes
    override_utf8_locale yes
    text_buffer_size 2048
    TEXT
    ${color #708090}${nodename}
    
    ${sysname} ${kernel}
    
    ${if_match ${cpu cpu0}>70}${color orange}${if_match ${cpu cpu0}>90}${color red}${endif}${endif}${cpu cpu0}%${goto 30}${color #708090} ${if_match ${acpitemp}>70}${color orange}${if_match ${acpitemp}>90}${color red}${endif}${endif}${acpitemp}°C${goto 70}${color #708090} (${if_match ${cpu cpu1}>70}${color orange}${if_match ${cpu cpu1}>90}${color red}${endif}${endif}${cpu cpu1}${color #708090} ${if_match ${cpu cpu2}>70}${color orange}${if_match ${cpu cpu2}>90}${color red}${endif}${endif}${cpu cpu2}${color #708090} ${if_match ${cpu cpu3}>70}${color orange}${if_match ${cpu cpu3}>90}${color red}${endif}${endif}${cpu cpu3}${color #708090} ${if_match ${cpu cpu4}>70}${color orange}${if_match ${cpu cpu4}>90}${color red}${endif}${endif}${cpu cpu4}${color #708090})
      ${top cpu 1} ${top name 1}
      ${top cpu 2} ${top name 2}
      ${top cpu 3} ${top name 3}
    
    ${memperc}% (${mem}/${memmax})
      ${top_mem mem 1} ${top_mem name 1}
      ${top_mem mem 2} ${top_mem name 2}
      ${top_mem mem 3} ${top_mem name 3}
    
    ${if_match "${swapperc}"=="No swap"}No swap${else}${swapperc}% (${swap}/${swapmax})${endif}
    
    ${hddtemp -n /dev/sda}°C
    
    ${battery}
    
    ${execi 360 aptitude search "~U" | wc -l | tail} available
    
    ${execi 900 conkyEmail -s SERVER -o 993 -u USERNAME -p PASSWORD -m IMAP -e} new
    
    ${execi 900 conkyEmail -s SERVER -o 993 -u USERNAME -p PASSWORD -m IMAP -e} new
    
    ${tcp_portmon 1 65535 count} established
    
    ${if_up eth2}[${addrs eth2}]
        ${totaldown eth2} - ${downspeedf eth2}kbps
        ${totalup eth2} - ${upspeedf eth2}kbps
    
    ${endif}${if_up wlan0}[${addrs wlan0}]  ${wireless_essid wlan0}  (${wireless_link_qual_perc wlan0})  ${wireless_mode}
        ${totaldown wlan0} - ${downspeedf wlan0}kbps
        ${totalup wlan0} - ${upspeedf wlan0}kbps
    
    ${execpi 15 sudo iwlist wlan0 scan | awk -F '[ :=]+' '/ESS/{ printf $3" " } /Encr/{ printf "-"$4"- " } /Qual/{ print $3 }' | sed "s/\"//g;s/-on-/S/;s/-off-/O/;s/\/100/%/" | awk -F '[ :=]+' '/%/{ print "-"$2"- "$3" "$1" ^"$2"^" }' | sed "s/-O- /\${color darkgreen}/;s/-S- //;s/ ^O^/\${color #708090}/;s/ ^S^//"}${endif}
    *Note: if a network is unsecured, it gets a green color.

    ~/.conkyrcC
    Code:
    use_xft yes
    xftfont Nimbus Mono L:Bold:size=8
    xftalpha 1.0
    update_interval 2
    total_run_times 0
    own_window yes
    own_window_type override
    own_window_transparent yes
    double_buffer yes
    minimum_size 100 20
    maximum_width 100
    draw_shades no
    alignment top_right
    gap_x 200
    gap_y 70
    no_buffers yes
    override_utf8_locale yes
    text_buffer_size 1024
    TEXT
    ${color #708090}${alignr}Weather:
    ${execpi 300 conkyForecast --location=BEXX0008 --template=/home/user/.conkyForecastB.template}
    
    
    
    ${alignr}${time %B %Y}:
    
    
    
    
    
    
    
    
    
    ${alignr}Episodes:
    ~/.conkyrcD
    Code:
    use_xft yes
    xftfont Nimbus Mono L:Bold:size=8
    xftalpha 1.0
    update_interval 2
    total_run_times 0
    own_window yes
    own_window_type override
    own_window_transparent yes
    double_buffer yes
    minimum_size 180 20
    maximum_width 180
    draw_shades no
    alignment top_right
    gap_x 10
    gap_y 70
    no_buffers yes
    override_utf8_locale yes
    text_buffer_size 1024
    TEXT
    ${color #708090}${execpi 300 conkyForecast --location=BEXX0008 --template=/home/user/.conkyForecast.template}
    
    
    ${execpi 3600 gcal --starting-day=monday | sed -e "s/</\${color orange} /;s/>/\${color #708090} /;s/^/\${goto 0}/" | tail -n 7}
    
    
    
    ${execi 3600 ~/.scripts/newepisodes}
    ~/.conkyCairo.lua
    Code:
    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_my_flag(my_arg)
        flag = my_arg
        return ""
    end
    
    function conky_mpdbackgroundbar()
    	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)
    
    	if tonumber(flag)==1
    	then
    
    		cairo_set_line_cap (cr, CAIRO_LINE_CAP_ROUND);
    
    		cairo_set_source_rgba (cr, rgb_to_r_g_b(0x708090, 0.3))
    		cairo_set_line_width (cr, 6)
    		cairo_move_to (cr, 6, conky_window.height/2+3)
    		cairo_rel_line_to (cr, (conky_window.width - 12), 0);
    		cairo_stroke (cr);
    
    		local mpdPerc = tonumber(conky_parse('${mpd_percent}'))
    		if mpdPerc == nil then mpdPerc = 0 end
    		
    		cairo_set_source_rgba (cr, rgb_to_r_g_b(0x708090, 0.6))
    		cairo_set_line_width (cr, 6)
    		cairo_move_to (cr, 6, conky_window.height/2+3)
    		cairo_rel_line_to (cr, (mpdPerc / 100) * (conky_window.width - 12), 0);
    		cairo_stroke (cr);
    
    	end
    
    	cairo_destroy (cr)
    	return ""
    end
    ~/.conkyForecast.template
    Code:
    [--datatype=CT]
        [--datatype=HT], [--datatype=HM], [--datatype=WS]
    
    [--datatype=CT --startday=1]
        [--datatype=LT --startday=1]-[--datatype=HT --startday=1], [--datatype=PC --startday=1], [--datatype=WS --startday=1]
    [--datatype=CT --startday=2]
        [--datatype=LT --startday=2]-[--datatype=HT --startday=2], [--datatype=PC --startday=2], [--datatype=WS --startday=2]
    [--datatype=CT --startday=3]
        [--datatype=LT --startday=3]-[--datatype=HT --startday=3], [--datatype=PC --startday=3], [--datatype=WS --startday=3]
    ~/.conkyForecastB.template
    Code:
    ${alignr}([--datatype=CN])
    
    ${alignr}[--datatype=DW --startday=1 --shortweekday]:
    
    ${alignr}[--datatype=DW --startday=2 --shortweekday]:
    
    ${alignr}[--datatype=DW --startday=3 --shortweekday]:
    ~/.scripts/newepisodes
    Code:
    #!/bin/bash
    all=`exec wget -q -O - 'http://www.fastpasstv.com/tv' | grep "newvid"`
    
    if [ `exec echo $all | grep -c "/tv/csi-crime-scene-investigation/"` -gt 0 ]
    then
    	echo "CSI: Las Vegas"
    fi
    
    if [ `exec echo $all | grep -c "/tv/csi-miami/"` -gt 0 ]
    then
    	echo "CSI: Miami"
    fi
    
    if [ `exec echo $all | grep -c "/tv/csi-ny/"` -gt 0 ]
    then
    	echo "CSI: New York"
    fi
    
    if [ `exec echo $all | grep -c "/tv/the-big-bang-theory/"` -gt 0 ]
    then
    	echo "The Big Bang Theory"
    fi
    
    if [ `exec echo $all | grep -c "/tv/britain-s-got-talent/"` -gt 0 ]
    then
    	echo "Britain's got talent"
    fi
    
    if [ `exec echo $all | grep -c "/tv/stargate-universe/"` -gt 0 ]
    then
    	echo "Stargate Universe"
    fi
    
    if [ `exec echo $all | grep -c "/tv/two-and-a-half-men/"` -gt 0 ]
    then
    	echo "Two and a Half Men"
    fi
    
    if [ `exec echo $all | grep -c "/tv/top-gear/"` -gt 0 ]
    then
    	echo "Top Gear"
    fi
    
    if [ `exec echo $all | grep -c "/tv/top-gear-us-/"` -gt 0 ]
    then
    	echo "Top Gear (US"
    fi
    
    if [ `exec echo $all | grep -c "/tv/ncis/"` -gt 0 ]
    then
    	echo "NCIS"
    fi
    
    if [ `exec echo $all | grep -c "/tv/ncis-los-angeles/"` -gt 0 ]
    then
    	echo "NCIS: Los Angeles"
    fi
    
    if [ `exec echo $all | grep -c "/tv/xiii-the-series/"` -gt 0 ]
    then
    	echo "XIII: The series"
    fi
    
    exit
    My bash scripting skills are almost 0, so... I'm pretty sure it can become better...
    I also hope i did not forget to post anything...

    Enjoy...
    El Belgicano
    -----------------
    Laptop: 5 years old Asus M6N (ATI9600/9700 graphics, 512Mb RAM, Intel Mobile 1.66GHz, 60Gb HDD) running 10.04-Lucid Lynx pretty nicely.

  2. #17692
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by El_Belgicano View Post
    Next time i post a screenie i'll try to remember to change the wallpaper...
    Noooooooooooooo not necessary at all. I LIKE that wallpaper.

    Quote Originally Posted by El_Belgicano View Post
    Actually, it's trickier than you'd think:
    1. the time - 18:34 (big)
    2. the time again; (top left corner)
    That's cheating! But cheating with style.

    Quote Originally Posted by El_Belgicano View Post
    A and C are all right aligned, while B and D are left aligned.
    Yea, I have several that use that same idea but I prefer ${goto} to create straight lines on the right side and sometimes in the middle:



    Quote Originally Posted by El_Belgicano View Post
    It may require a call too many at some point, but i like the "central line" effect it gives...

    The series i follow are the CSI's, NCIS's, The Big Bang Theory (nerd fun, but good laughs), Two and a half men (shame Sheen is such a child irl, but it's a funny serie), Stargate Universe and occasionnally i add another show like Britain's got talent, to appear when new episodes are out... Handy script...
    I watch them all, Sheen is gone now wo Two and a Half Men is ciming to an end. Too bad it is funny, and The Big Bang Theory is funnier when one things, all those brains and no people skills!

    Unfortunately the script used doesn't work here, there is no "TV Schedule" as such that we can even buy, let alone on the net.

    NOTE: Conkys and scripts available on demand.

  3. #17693
    Join Date
    Dec 2008
    Location
    The Desert
    Beans
    281
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by El_Belgicano View Post
    Isn't this just depending on whether conky was compiled with hddtemp support or not? (the first one looks like it's "just a command" while the second looks like it's been compiled in conky)

    Mine (from the repos, Lucid) gives:
    Code:
    $ conky -v
    Conky 1.8.0 compiled Fri Apr 23 10:38:37 UTC 2010 for Linux 2.6.24-27-server (i686)
    
    Compiled in features:
    
    System config file: /etc/conky/conky.conf
    Package library path: /usr/lib/conky
    
     X11:
      * Xdamage extension
      * XDBE (double buffer extension)
      * Xft
      * ARGB visual
    
     Music detection:
      * MPD
      * MOC
    
     General:
      * math
      * hddtemp
      * portmon
      * Curl
      * RSS
      * Weather (METAR)
      * Weather (XOAP)
      * wireless
      * support for IBM/Lenovo notebooks
      * nvidia
      * eve-online
      * config-output
      * Imlib2
      * ALSA mixer support
      * apcupsd
      * iostats
      * ncurses
      * Lua
    
      Lua bindings:
       * Cairo
       * Imlib2
    FYI, i'm not using hddtemp at all, so i might be mistaken.

    And while i'm in the house, let's at least leave something more than speculations behind:


    Still a work in progress, and it has been "in progress" since i first entered "gedit ~/.conkyrc" in the terminal a few years back...

    ... conkyrc* files available on demand
    Nice networks watcher. I never got that to quite work right and gotta love the Avatar soundtrack. so soothing
    I'm a super power user

  4. #17694
    Join Date
    Aug 2007
    Location
    Belgium
    Beans
    176
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Sector11 View Post
    Noooooooooooooo not necessary at all. I LIKE that wallpaper.
    Okay then i'll keep that one wall... Or improve it?...

    That's cheating! But cheating with style.
    One for all time's view, one for desktop size... still looking for the right font though!

    Yea, I have several that use that same idea but I prefer ${goto} to create straight lines on the right side and sometimes in the middle:
    Isn't it quite tricky to get the right goto values?

    I watch them all, Sheen is gone now wo Two and a Half Men is ciming to an end. Too bad it is funny, and The Big Bang Theory is funnier when one things, all those brains and no people skills!
    From wikipedia: "The ninth season is expected to premiere in fall 2011 with Ashton Kutcher as Sheen's replacement." So it becomes a wait-and-see case...

    Enjoy...
    El Belgicano
    -----------------
    Laptop: 5 years old Asus M6N (ATI9600/9700 graphics, 512Mb RAM, Intel Mobile 1.66GHz, 60Gb HDD) running 10.04-Lucid Lynx pretty nicely.

  5. #17695
    Join Date
    Aug 2007
    Location
    Belgium
    Beans
    176
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by djyoung4 View Post
    Nice networks watcher. I never got that to quite work right and gotta love the Avatar soundtrack. so soothing
    Well it's a pity, because if it were not thanks to your impulse, i would never have gotten that far...

    I just love movie soundtracks, they're like the handshake of the movies:

    John Williams (Superman 1978, Star wars, ...)
    James Horner (Avatar, The Karate Kid 2010, ...)
    Hans Zimmer (Gladiator, Pirate of the Caribbeans, Inception, ...)
    Ennio Morricone (Once upon a time in the west, ...) "Man with a harmonica" is just magic...
    Vangelis (1492, ...)
    Howard Shore (Lord of the rings trilogy, ...)
    even Daft Punk when it comes to "TRON: Legacy"

    they all just hit the nail, right on the head with the music they made...

    Look them up, really a nice set to have...
    El Belgicano
    -----------------
    Laptop: 5 years old Asus M6N (ATI9600/9700 graphics, 512Mb RAM, Intel Mobile 1.66GHz, 60Gb HDD) running 10.04-Lucid Lynx pretty nicely.

  6. #17696
    Join Date
    Dec 2008
    Location
    The Desert
    Beans
    281
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by El_Belgicano View Post
    Well it's a pity, because if it were not thanks to your impulse, i would never have gotten that far...

    mine works. never got your version to work. been tryin to tweak it to work
    I'm a super power user

  7. #17697
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by El_Belgicano View Post
    Okay then i'll keep that one wall... Or improve it?...
    I can live with that.

    Quote Originally Posted by El_Belgicano View Post
    One for all time's view, one for desktop size... still looking for the rigaht font though!
    That's a biggie .. the font hunt to find the one that's just right.

    I'm kind of fond of LCDMono for clocks, but it wouldn't sit beside the soft curves you have there. So maybe something a bit more fancy: analecta, angelic war, Vtks Revolt and not smooth curves but nice too: diamond fantasy


    Code:
    TEXT
    ${font LCDMono:size=60}18 34${font}
    ${font analecta:size=60}18 34${font}
    ${font AngelicWar:size=60}18 34${font}
    ${font vtks revolt:size=60}18 34${font}
    ${font diamond fantasy:size=60}18 34${font}
    Quote Originally Posted by El_Belgicano View Post
    Isn't it quite tricky to get the right goto values?
    Not as hard as you may think ... using "screenruler", very handy, it's in the repos:

    ... but if you use a "mono" font for your entire conky just hit the [spacebar] to get what you need.

    Quote Originally Posted by El_Belgicano View Post
    From wikipedia: "The ninth season is expected to premiere in fall 2011 with Ashton Kutcher as Sheen's replacement." So it becomes a wait-and-see case...

    Enjoy...
    Hmmmmmmm yea, time will tell, normally things like that don't go over to well.

  8. #17698
    Join Date
    Apr 2007
    Beans
    195

    Re: Post your .conkyrc files w/ screenshots

    Yeah, I got bored and did some cleanup on my scripts. Including reducing the number.

    @mrpeachy I found there were errors with the way you were doing the positive and negative arcs in a single script (Specifically every time it started it "Forgot" that some of the rings went counter-clockwise, and therefore needed to be "Told" by saving the script again before they would draw the right direction.) Fixed now. So... I kinda compiled everything I know (that you've taught me really) into reformatting the script entirely. It's a bit of a hack job right now, but it's all working. In case you wanted to see it.

    .conkyrc.main Cleaned up little bit. All the rings are a single script now.
    Code:
    #-----Conky Settings
    background yes
    no_buffers yes
    out_to_console no
    top_cpu_separate no
    cpu_avg_samples 2
    net_avg_samples 3
    total_run_times 0
    update_interval 1
    
    #-----Text Settings
    uppercase no
    override_utf8_locale yes
    short_units no
    pad_percents 0
    text_buffer_size 4096
    max_user_text 32768
    use_xft yes
    xftalpha 0.0
    xftfont DiamondFantasy:size=16
    
    #-----Window Settings
    own_window yes
    own_window_colour ffffff
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    own_window_type normal
    
    #-----Graphics Settings
    double_buffer yes
    draw_borders no
    draw_graph_borders yes
    draw_shades no
    draw_outline no
    max_specials 2048
    imlib_cache_size 0
    
    #-----Layout Settings
    alignment top_right
    gap_x 75
    gap_y 0
    maximum_width 600
    minimum_size 360 250
    use_spacer right
    
    #-----Colors
    default_color 808080          #Grey Default
    default_outline_color ffffff  #White Outlines
    default_shade_color c0c0c0    #Silver Shade
    color0 ff0000									#Red
    color1 ffff00									#Yellow
    color2 ffffff									#White
    color3 808080									#Grey
    color4 00ff00									#Green
    color5 c0c0c0									#Silver
    color6 ffd700									#Gold
    color7 00ffff									#Pale?
    color8 0000FF									#Blue
    color9 404040									#DarkGrey
    
    #-----Lua To Load
    lua_load /home/dorian/Conky/Scripts/mainrings.lua 
    lua_draw_hook_pre draw_pos
    lua_draw_hook_post draw_neg
    
    #-----Required Fonts(For Use In This Conky. Google Search Or DaFont.com to Find Them)
    #-----Diamond Fantasy
    #-----TransponderAOE
    
    TEXT#-----System Header, Conky Version(Only When Needed), and Xubuntu Graphic
    ${font}${color1}Xubuntu 11.04 (Natty Narwhal)
    ${sysname} ${kernel} on ${machine}
    ${color2}Uptime:${goto 100}${uptime}
    #${conky_version}
    #-----LEDs (Indicators)
    ${image ~/Conky/Icons/XubuntuLogoForConky.png -p 250,0 -s 80x80}${if_match "${exec xset q | grep LED | awk '{ print $10 }'}" < "00000002"}${image ~/Conky/Icons/NUMLEDW.png -p 100,57 -s 20x20}${else}${image ~/Conky/Icons/NUMLEDY.png -p 100,57 -s 20x20}${endif}${if_match "${exec xset q | grep LED | awk '{ print $10 }'}" < "00000003"}${image ~/Conky/Icons/CAPSLEDW.png -p 120,57 -s 20x20}${else}${image ~/Conky/Icons/CAPSLEDY.png -p 120,57 -s 20x20}${endif}
    ${if_match ${execi 60 ink -p usb | grep 'Photoblack' | awk '{print $2}' | sed 's/%//'}<50}${image ~/Conky/Icons/LowInkBlackLED.png -p 145,57 -s 20x20}${else}${if_match ${execi 60 ink -p usb | grep 'Photoblack' | awk '{print $2}' | sed 's/%//'}>=50}${if_match ${execi 60 ink -p usb | grep 'Photoblack' | awk '{print $2}' | sed 's/%//'}<60}${image ~/Conky/Icons/HalfInkBlackLED.png -p 145,57 -s 20x20}${else}${image ~/Conky/Icons/NormInkBlackLED.png -p 145,57 -s 20x20}${endif}${endif}${endif}${if_match ${execi 60 ink -p usb | grep 'Yellow' | awk '{print $2}' | sed 's/%//'}<50}${image ~/Conky/Icons/LowInkYellowLED.png -p 170,57 -s 20x20}${else}${if_match ${execi 60 ink -p usb | grep 'Yellow' | awk '{print $2}' | sed 's/%//'}>=50}${if_match ${execi 60 ink -p usb | grep 'Yellow' | awk '{print $2}' | sed 's/%//'}<60}${image ~/Conky/Icons/HalfInkYellowLED.png -p 170,57 -s 20x20}${else}${image ~/Conky/Icons/NormInkYellowLED.png -p 170,57 -s 20x20}${endif}${endif}${endif}${if_match ${execi 60 ink -p usb | grep 'Magenta' | awk '{print $2}' | sed 's/%//'}<50}${image ~/Conky/Icons/LowInkMagentaLED.png -p 195,57 -s 20x20}${else}${if_match ${execi 60 ink -p usb | grep 'Magenta' | awk '{print $2}' | sed 's/%//'}>=50}${if_match ${execi 60 ink -p usb | grep 'Magenta' | awk '{print $2}' | sed 's/%//'}<60}${image ~/Conky/Icons/HalfInkMagentaLED.png -p 195,57 -s 20x20}${else}${image ~/Conky/Icons/NormInkMagentaLED.png -p 195,57 -s 20x20}${endif}${endif}${endif}${if_match ${execi 60 ink -p usb | grep 'Cyan' | awk '{print $2}' | sed 's/%//'}<50}${image ~/Conky/Icons/LowInkCyanLED.png -p 220,57 -s 20x20}${else}${if_match ${execi 60 ink -p usb | grep 'Cyan' | awk '{print $2}' | sed 's/%//'}>=50}${if_match ${execi 60 ink -p usb | grep 'Cyan' | awk '{print $2}' | sed 's/%//'}<60}${image ~/Conky/Icons/HalfInkCyanLED.png -p 220,57 -s 20x20}${else}${image ~/Conky/Icons/NormInkCyanLED.png -p 220,57 -s 20x20}${endif}${endif}${endif}
    ${voffset -40}${font}Indicators:${voffset 20}
    ${font TransponderAOE:bold:size=8}${voffset -20}${goto 150}${execi 60 ink -p usb | grep 'Photoblack' | awk '{print $2}'}${goto 170}${execi 60 ink -p usb | grep 'Yellow' | awk '{print $2}'}${goto 195}${execi 60 ink -p usb | grep 'Magenta' | awk '{print $2}'}${goto 220}${execi 60 ink -p usb | grep 'Cyan' | awk '{print $2}'}${font}${voffset -15}
    ${color2}WEATHER: ${execi 3600 conkyForecast -d CN}${color0}${hr 1}${color2}
    Now${goto 75}${execi 3600 conkyForecast -d DW -w -s 1}${goto 135}${execi 3600 conkyForecast -d DW -w -s 2}${goto 195}${execi 3600 conkyForecast -d DW -w -s 3}
    #-----High Temp:
    H:${font TransponderAOE:bold}${execi 3600 conkyForecast -d HT -u -x}°C${goto 75}${execi 3600 conkyForecast -d HT -u -x -s 2}°C${goto 135}${execi 3600 conkyForecast -d HT -u -x -s 4}°C${goto 195}${execi 3600 conkyForecast -d HT -u -x -s 4}°C${font}
    #-----Low Temp:
    L:${font TransponderAOE:bold}${execi 3600 conkyForecast -d LT -u -x}°C${goto 75}${execi 3600 conkyForecast -d LT -u -x -s 2}°C${goto 135}${execi 3600 conkyForecast -d LT -u -x -s 4}°C${goto 195}${execi 3600 conkyForecast -d LT -u -x -s 4}°C${font}
    #-----Weather Conditions:
    ${color1}${font conkyWeather:size=30}${execi 3600 conkyForecast -d WF}${goto 75}${execi 3600 conkyForecast -d WF -s 2}${goto 135}${execi 3600 conkyForecast -d WF -s 3}${goto 195}${execi 3600 conkyForecast -d WF -s 4}${color2}${font}
    ${goto 100}Night Values:#-----Night Values:High Temp
    ${voffset 25}${goto 5}H:${font TransponderAOE:bold}${execi 3600 conkyForecast -d HT -u -x -n}°C${goto 75}${execi 3600 conkyForecast -d HT -u -x -s 2 -n}°C${goto 135}${execi 3600 conkyForecast -d HT -u -x -s 3 -n}°C${goto 195}${execi 3600 conkyForecast -d HT -u -x -s 4 -n}°C${font}
    #-----Low Temp:Night
    L:${font TransponderAOE:bold}${execi 3600 conkyForecast -d LT -u -x -n}°C${goto 75}${execi 3600 conkyForecast -d LT -u -x -s 2 -n}°C${goto 135}${execi 3600 conkyForecast -d LT -u -x -s 3 -n}°C${goto 195}${execi 3600 conkyForecast -d LT -u -x -s 4 -n}°C
    #-----Weather Conditions:Night 
    ${color1}${font conkyWeather:size=30}${execi 3600 conkyForecast -d WF -n}${goto 75}${execi 3600 conkyForecast -d WF -s 2 -n}${goto 135}${execi 3600 conkyForecast -d WF -s 3 -n}${goto 195}${execi 3600 conkyForecast -d WF -s 4 -n}${color2}${font}
    #-----Wind Direction
    ${font ConkyWindNESW:size=40}${execi 3600 conkyForecast -d BF}${goto 75}${execi 3600 conkyForecast -d BF -s 2}${goto 135}${execi 3600 conkyForecast -d BF -s 3}${goto 195}${execi 3600 conkyForecast -d BF -s 4}${font}
    #-----Wind Speed(With spacing edit by VinDSL)
    ${font TransponderAOE:bold}${execi 3600 conkyForecast -d WS | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${goto 75}${execi 3600 conkyForecast -d WS -s 2 | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${goto 135}${execi 3600 conkyForecast -d WS -s 3 | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${goto 195}${execi 3600 conkyForecast -d WS -s 4 | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${font}
    #-----Sunrise/Sunset
    ${voffset -285}${goto 255}Nearest:${font TransponderAOE:bold:size=10}${color1}${goto 320}${color2}${font}${voffset -20}
    ${if_match ${time %H}<12}
    ${goto 255}Sunrise:
    ${goto 255}${color1}${font TransponderAOE:bold}${execi 3600 conkyForecast -d SR}${font}${color2}
    ${goto 255}Sunset:
    ${goto 255}${color1}${font TransponderAOE:bold}${execi 3600 conkyForecast -d SS}${font}${color2}
    ${else}
    ${goto 255}Sunset:
    ${goto 255}${color1}${font TransponderAOE:bold}${execi 3600 conkyForecast -d SS}${font}${color2}
    ${goto 255}Sunrise:
    ${goto 255}${color1}${font TransponderAOE:bold}${execi 3600 conkyForecast -d SR -s 2}${font}${color2}
    ${endif}${voffset -20}
    #-----Moon Phase
    ${goto 255}Moon 
    ${goto 255}Phase:
    ${voffset -40}${goto 310}${font MoonPhases:size=25}${execi 3600 conkyForecast -d MF}${font}
    ${goto 255}${execi 3600 conkyForecast -d MP}
    #-----Lattitude and Longitude
    ${voffset 5}${goto 255}Decimal
    ${goto 255}${color2}Lat:${goto 290}${color1}${font TransponderAOE:bold:size=10}${execi 30 conkyLatLong -L}${font}
    ${goto 255}${color2}Long:${goto 290}${color1}${font TransponderAOE:bold:size=10}${execi 30 conkyLatLong -l}${font}
    ${goto 255}${color2}Standard
    ${goto 255}${color2}Lat:${goto 290}${color1}${font TransponderAOE:bold:size=10}${execi 30 conkyLatLong -L -i}${font}
    ${goto 255}${color2}Long:${goto 290}${color1}${font TransponderAOE:bold:size=10}${execi 30 conkyLatLong -l -i}${font}
    #-----System/Drive Info
    ${voffset 10}${font}${color2}SYSTEM ${color0}${hr 1}${color2}
    CPU1:${goto 55}${font TransponderAOE:bold}${freq_g 1}Ghz${goto 125}${color1}${font}Right:${goto 180}${color0}${font TransponderAOE:bold}${cpu cpu1}%${font}
    ${color2}CPU2:${goto 55}${font TransponderAOE:bold}${freq_g 2}Ghz${goto 125}${color1}${font}Left:${goto 180}${color0}${font TransponderAOE:bold}${cpu cpu2}%${font}
    ${color2}RAM:${goto 55}${font TransponderAOE:bold}${memmax}${goto 125}${color}${font}Middle:${goto 180}${color2}${font TransponderAOE:bold}${memperc}%${font}
    ${color2}SWAP:${goto 55}${font TransponderAOE:bold}${swapmax}${goto 125}${color5}${font}Centre:${goto 180}${color0}${font TransponderAOE:bold}${swapperc}%${color2}${font}
    #-----Main Drives
    ${color2}SYSTEM DRIVES ${color0}${hr 1}${color2}
    ${color2}Root:${goto 55}${font TransponderAOE:bold}${fs_size /}${goto 135}${color0}${fs_used_perc /}%${goto 175}${color2}${font}Used${goto 220}${color0}${fs_bar 5,120 /}
    ${color2}Home:${goto 55}${font TransponderAOE:bold}${fs_size /home}${goto 135}${color1}${fs_used_perc /home}%${goto 175}${color2}${font}Used${goto 220}${color1}${fs_bar 5,120 /home}
    ${color2}Test:${goto 55}${font TransponderAOE:bold}${fs_size /media/TestDrive}${goto 135}${color5}${fs_used_perc /media/TestDrive}%${goto 175}${color2}${font}Used${goto 220}${color5}${fs_bar 5,120 /media/TestDrive}
    #-----USB Drives (Special because it checks to see if they're plugged in first.)
    ${color2}USB CONNECTED DRIVES ${color0}${hr 1}${color2}
    ${voffset -8}${font DiamondFantasy:size=12}NAME${goto 60}|${goto 70}SIZE${goto 130}|${goto 140}USED${font}
    ${if_mounted /media/7GBACKUP}${color2}7G1:${goto 70}${color1}${font TransponderAOE:bold}${fs_size /media/7GBACKUP}${goto 140}${color0}${fs_used_perc /media/7GBACKUP}%${font}${image ~/Conky/Icons/USB7G1Y.png -p 235,650 -s 40x40}${else}${color2}7G1:${goto 70}${color0}${font TransponderAOE:bold}N/C${font}${image ~/Conky/Icons/USB7G1R.png -p 235,650 -s 40x40}${endif}
    ${if_mounted /media/7GBACKUP2}${color2}7G2:${goto 70}${color1}${font TransponderAOE:bold}${fs_size /media/7GBACKUP2}${goto 140}${color0}${fs_used_perc /media/7GBACKUP2}%${font}${image ~/Conky/Icons/USB7G2Y.png -p 235,690 -s 40x40}${else}${color2}7G2:${goto 70}${color0}${font TransponderAOE:bold}N/C${font}${image ~/Conky/Icons/USB7G2R.png -p 235,690 -s 40x40}${endif}
    ${if_mounted /media/7GBACKUP3}${color2}7G3:${goto 70}${color1}${font TransponderAOE:bold}${fs_size /media/7GBACKUP3}${goto 140}${color0}${fs_used_perc /media/7GBACKUP3}%${font}${image ~/Conky/Icons/USB7G3Y.png -p 195,690 -s 40x40}${else}${color2}7G3:${goto 70}${color0}${font TransponderAOE:bold}N/C${font}${image ~/Conky/Icons/USB7G3R.png -p 195,690 -s 40x40}${endif}
    ${color2}${if_mounted /media/120}120:${goto 70}${color1}${font TransponderAOE:bold}${fs_size /media/120}${goto 140}${color0}${fs_used_perc /media/120}%${font}${image ~/Conky/Icons/USB120Y.png -p 195,650 -s 40x40}${else}${color2}120:${goto 70}${color0}${font TransponderAOE:bold}N/C${font}${image ~/Conky/Icons/USB120R.png -p 195,650 -s 40x40}${endif}
    ${color2}${if_match ${exec df -h | grep -c "SANSA CLIPP"} == 1}Sansa:${goto 70}${color1}${font TransponderAOE:bold}${execi 30 df -h | grep "SANSA CLIPP" | awk '{print $2}'}${goto 140}${color0}${execi 30 df -h | grep "SANSA CLIPP" | awk '{print $5}' | sed 's/%//'}%${font}${image ~/Conky/Icons/Sansa.png -p 300,620 -s 45x66}${else}${color2}Sansa:${goto 70}${color0}${font TransponderAOE:bold}N/C${font}${endif}
    ${color2}${if_mounted /media/OSUSB}OSUSB:${goto 70}${color1}${font TransponderAOE:bold}${fs_size /media/OSUSB}${goto 140}${color0}${fs_used_perc /media/OSUSB}%${font}${image ~/Conky/Icons/Tux.png -p 300,700 -s 40x40}${else}${color2}OSUSB:${goto 70}${font TransponderAOE:bold}${color0}N/C${font}${endif}
    #-----Network Info
    ${color2}NETWORK TRAFFIC${color0}${hr 1}${color2}
    ${color2}Hostname${goto 95}${nodename}${goto 145}|${goto 165}Inbound${goto 235}|${goto 245}Outbound
    INet: 
    ${font TransponderAOE:bold:size=12}${addr eth1}${goto 145}|${goto 160}${color4}${downspeed eth1}${goto 215}/s${goto 235}${color2}|${goto 245}${color1}${upspeed eth1}${goto 300}/s${font}${image ~/Conky/Icons/Globe.png -p 330,815 -s 20x20}
    ${color2}Private
    ${font TransponderAOE:bold:size=12}${addr eth0}${goto 145}|${goto 160}${color4}${downspeed eth0}${goto 215}/s${goto 235}${color2}|${goto 245}${color1}${upspeed eth0}${goto 300}/s${font}${image ~/Conky/Icons/Private.png -p 330,855 -s 20x20}
    ${color2}Bluetooth
    ${font TransponderAOE:bold:size=12}${addr pan1}${goto 145}|${goto 160}${color4}${downspeed pan1}${goto 215}/s${goto 235}${color2}|${goto 245}${color1}${upspeed pan1}${goto 300}/s${font}${image ~/Conky/Icons/bluetooth.png -p 330,895 -s 20x20}
    #-----Monthly/Daily Bandwidth Usage
    ${color2}NETWORK DATA USE${color0}${hr 1}${color2}
    ${goto 35}${color2}Today${goto 125}Monthly 
    ${color2}${goto 15}U:${goto 30}${color1}${font TransponderAOE:bold:size=12}${execi 60 vnstat -d | grep "`date +"%D"`" | awk '{print $5}'}${goto 85}${execi 60 vnstat -d | grep "`date +"%D"`" | awk '{print $6}'}${goto 120}${if_match ${time %e}>=12}${execi 60 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $6}'}${goto 175}${execi 60 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $7}'}${endif}${if_match ${time %-e}<12}${if_match ${time %m}==01}${execi 60 vnstat -m | grep "Dec" | awk '{print $6}'}${goto 175}${execi 60 vnstat -m | grep "Dec" | awk '{print $7}'}${else}${if_match ${time %m}==02}${execi 60 vnstat -m | grep "Jan" | awk '{print $6}'}${goto 175}${execi 60 vnstat -m | grep "Jan" | awk '{print $7}'}${else}${if_match ${time %m}==03}${execi 60 vnstat -m | grep "Feb" | awk '{print $6}'}${goto 175}${execi 60 vnstat -m | grep "Feb" | awk '{print $7}'}${else}${if_match ${time %m}==04}${execi 60 vnstat -m | grep "Mar" | awk '{print $6}'}${goto 175}${execi 60 vnstat -m | grep "Mar" | awk '{print $7}'}${else}${if_match ${time %m}==05}${execi 60 vnstat -m | grep "Apr" | awk '{print $6}'}${goto 175}${execi 60 vnstat -m | grep "Apr" | awk '{print $7}'}${else}${if_match ${time %m}==06}${execi 60 vnstat -m | grep "May" | awk '{print $6}'}${goto 175}${execi 60 vnstat -m | grep "May" | awk '{print $7}'}${else}${if_match ${time %m}==07}${execi 60 vnstat -m | grep "Jun" | awk '{print $6}'}${goto 175}${execi 60 vnstat -m | grep "Jun" | awk '{print $7}'}${else}${if_match ${time %m}==08}${execi 60 vnstat -m | grep "Jul" | awk '{print $6}'}${goto 175}${execi 60 vnstat -m | grep "Jul" | awk '{print $7}'}${else}${if_match ${time %m}==09}${execi 60 vnstat -m | grep "Aug" | awk '{print $6}'}${goto 175}${execi 60 vnstat -m | grep "Aug" | awk '{print $7}'}${else}${if_match ${time %m}==10}${execi 60 vnstat -m | grep "Sep" | awk '{print $6}'}${goto 175}${execi 60 vnstat -m | grep "Sep" | awk '{print $7}'}${else}${if_match ${time %m}==11}${execi 60 vnstat -m | grep "Oct" | awk '{print $6}'}${goto 175}${execi 60 vnstat -m | grep "Oct" | awk '{print $7}'}${else}${if_match ${time %m}==12}${execi 60 vnstat -m | grep "Nov" | awk '{print $6}'}${goto 175}${execi 60 vnstat -m | grep "Nov" | awk '{print $7}'}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${color2}${font}${goto 265}25
    ${color2}${goto 15}D:${goto 30}${color4}${font TransponderAOE:bold:size=12}${execi 60 vnstat -d | grep "`date +"%D"`" | awk '{print $2}'}${goto 85}${execi 60 vnstat -d | grep "`date +"%D"`" | awk '{print $3}'}${goto 120}${if_match ${time %e}>=12}${execi 60 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $3}'}${goto 175}${execi 60 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $4}'}${endif}${if_match ${time %-e}<12}${if_match ${time %m}==01}${execi 60 vnstat -m | grep "Dec" | awk '{print $3}'}${goto 175}${execi 60 vnstat -m | grep "Dec" | awk '{print $4}'}${else}${if_match ${time %m}==02}${execi 60 vnstat -m | grep "Jan" | awk '{print $3}'}${goto 175}${execi 60 vnstat -m | grep "Jan" | awk '{print $4}'}${else}${if_match ${time %m}==03}${execi 60 vnstat -m | grep "Feb" | awk '{print $3}'}${goto 175}${execi 60 vnstat -m | grep "Feb" | awk '{print $4}'}${else}${if_match ${time %m}==04}${execi 60 vnstat -m | grep "Mar" | awk '{print $3}'}${goto 175}${execi 60 vnstat -m | grep "Mar" | awk '{print $4}'}${else}${if_match ${time %m}==05}${execi 60 vnstat -m | grep "Apr" | awk '{print $3}'}${goto 175}${execi 60 vnstat -m | grep "Apr" | awk '{print $4}'}${else}${if_match ${time %m}==06}${execi 60 vnstat -m | grep "May" | awk '{print $3}'}${goto 175}${execi 60 vnstat -m | grep "May" | awk '{print $4}'}${else}${if_match ${time %m}==07}${execi 60 vnstat -m | grep "Jun" | awk '{print $3}'}${goto 175}${execi 60 vnstat -m | grep "Jun" | awk '{print $4}'}${else}${if_match ${time %m}==08}${execi 60 vnstat -m | grep "Jul" | awk '{print $3}'}${goto 175}${execi 60 vnstat -m | grep "Jul" | awk '{print $4}'}${else}${if_match ${time %m}==09}${execi 60 vnstat -m | grep "Aug" | awk '{print $3}'}${goto 175}${execi 60 vnstat -m | grep "Aug" | awk '{print $4}'}${else}${if_match ${time %m}==10}${execi 60 vnstat -m | grep "Sep" | awk '{print $3}'}${goto 175}${execi 60 vnstat -m | grep "Sep" | awk '{print $4}'}${else}${if_match ${time %m}==11}${execi 60 vnstat -m | grep "Oct" | awk '{print $3}'}${goto 175}${execi 60 vnstat -m | grep "Oct" | awk '{print $4}'}${else}${if_match ${time %m}==12}${execi 60 vnstat -m | grep "Nov" | awk '{print $3}'}${goto 175}${execi 60 vnstat -m | grep "Nov" | awk '{print $4}'}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${color2}${font}${goto 265}GB
    ${color2}${goto 15}T:${goto 30}${color5}${font TransponderAOE:bold:size=12}${execi 60 vnstat -d | grep "`date +"%D"`" | awk '{print $8}'}${goto 85}${execi 60 vnstat -d | grep "`date +"%D"`" | awk '{print $9}'}${goto 120}${if_match ${time %e}>=12}${execi 60 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $9}'}${goto 175}${execi 60 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $10}'}${endif}${if_match ${time %-e}<12}${if_match ${time %m}==01}${execi 60 vnstat -m | grep "Dec" | awk '{print $9}'}${goto 175}${execi 60 vnstat -m | grep "Dec" | awk '{print $10}'}${else}${if_match ${time %m}==02}${execi 60 vnstat -m | grep "Jan" | awk '{print $9}'}${goto 175}${execi 60 vnstat -m | grep "Jan" | awk '{print $10}'}${else}${if_match ${time %m}==03}${execi 60 vnstat -m | grep "Feb" | awk '{print $9}'}${goto 175}${execi 60 vnstat -m | grep "Feb" | awk '{print $10}'}${else}${if_match ${time %m}==04}${execi 60 vnstat -m | grep "Mar" | awk '{print $9}'}${goto 175}${execi 60 vnstat -m | grep "Mar" | awk '{print $10}'}${else}${if_match ${time %m}==05}${execi 60 vnstat -m | grep "Apr" | awk '{print $9}'}${goto 175}${execi 60 vnstat -m | grep "Apr" | awk '{print $10}'}${else}${if_match ${time %m}==06}${execi 60 vnstat -m | grep "May" | awk '{print $9}'}${goto 175}${execi 60 vnstat -m | grep "May" | awk '{print $10}'}${else}${if_match ${time %m}==07}${execi 60 vnstat -m | grep "Jun" | awk '{print $9}'}${goto 175}${execi 60 vnstat -m | grep "Jun" | awk '{print $10}'}${else}${if_match ${time %m}==08}${execi 60 vnstat -m | grep "Jul" | awk '{print $9}'}${goto 175}${execi 60 vnstat -m | grep "Jul" | awk '{print $10}'}${else}${if_match ${time %m}==09}${execi 60 vnstat -m | grep "Aug" | awk '{print $9}'}${goto 175}${execi 60 vnstat -m | grep "Aug" | awk '{print $10}'}${else}${if_match ${time %m}==10}${execi 60 vnstat -m | grep "Sep" | awk '{print $9}'}${goto 175}${execi 60 vnstat -m | grep "Sep" | awk '{print $10}'}${else}${if_match ${time %m}==11}${execi 60 vnstat -m | grep "Oct" | awk '{print $9}'}${goto 175}${execi 60 vnstat -m | grep "Oct" | awk '{print $10}'}${else}${if_match ${time %m}==12}${execi 60 vnstat -m | grep "Nov" | awk '{print $9}'}${goto 175}${execi 60 vnstat -m | grep "Nov" | awk '{print $10}'}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${font}${color2}${goto 220}Total Allowance${font}
    .conkyrc.clock No changes.
    Code:
    #-----Conky Settings
    background yes
    no_buffers yes
    out_to_console no
    top_cpu_separate no
    cpu_avg_samples 2
    net_avg_samples 3
    total_run_times 0
    update_interval 1
    
    #-----Text Settings
    uppercase yes
    override_utf8_locale yes
    short_units no
    pad_percents 0
    text_buffer_size 4096
    max_user_text 32768
    use_xft yes
    xftalpha 0.5
    xftfont AGaramond:size=32
    
    #-----Window Settings
    own_window yes
    own_window_colour 000000
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    own_window_type normal
    
    #-----Graphics Settings
    double_buffer yes
    draw_borders no
    draw_graph_borders yes
    draw_shades no
    draw_outline no
    max_specials 1024
    imlib_cache_size 0
    
    #-----Layout Settings
    alignment bottom_left
    gap_x 0
    gap_y 30
    maximum_width 420
    minimum_size 350 10
    use_spacer right
    
    #-----Lua Script
    lua_load ~/Conky/Scripts/calendar.lua
    lua_draw_hook_pre conky_draw_fig
    lua_draw_hook_post conky_draw_box
    
    #-----Required Fonts(For Use In This Conky. Google Search Or DaFont.com to Find Them)
    #-----AGaramond
    #-----TransponderAOE
    
    #-----Colors
    default_color 000000          #Black
    default_outline_color ffffff  #White Outlines
    default_shade_color c0c0c0    #Grey Shade
    color0 FF0000                 #Red
    color1 FFFF00		              #Yellow
    color2 FFFFFF                 #White
    color3 808080                 #Grey
    color4 00FF00									#Green
    color5 C0C0C0									#Silver
    color6 FFD700									#Gold
    color7 0000FF									#Blue
    color8 000080									#Navy
    
    TEXT#-----This Entire Conky Script Is For a Clock.  Yes.  I Have Wasted an Entire Conky for this drivel.
    ${font AGaramond:bold:size=25}${goto 130}${color0}Time
    ${voffset -30}${color6}${hr 1}${color2}
    ${font TransponderAOE:size=60}${color7}${voffset -25}${goto 12}${time %l:%M:%S %p}
    #-----Calendar by dk75: date box/mrpeachy: calendar body
    ${voffset -65}${font AGaramond:bold:size=16}${color0}${goto 5}Calendar:${goto 140}${execpi 60 date +'%B${offset 6}%Y'}
    ${voffset -15}${color6}${hr 1}${color2}
    ${voffset 155}${color6}${hr 1}${color2}
    mainrings.lua Now a single script with two functions, one for clockwise rings, the other for counter-clockwise rings. The bandwidth use ring actually integrated easily into it without a fight.
    Code:
    require 'cairo'
    function draw_ring_pos(co, across, down, rad, inlw, rstart, rend, bgr, bgg, bgb, bga, inr, ing, inb, ina, direction)
    
    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_pos()
    if conky_window == nil then return end
    if cs == nil or cairo_xlib_surface_get_width(cs) ~= conky_window.width or cairo_xlib_surface_get_height(cs) ~= conky_window.height then
    		if cs then cairo_surface_destroy(cs) end
    		cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
    	end
    	if cr then cairo_destroy(cr) end
    cr = cairo_create(cs)
    local updates=tonumber(conky_parse('${updates}'))
    if updates>=5 then
    --NETRING SETUP-------------------------------------------------------------------------------------
    wtimer=(updates % 30)+1
    months = {"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"}
    monthnum=tonumber(os.date('%m'))
    monthname=os.date('%b')
    day=tonumber(os.date('%d'))
    if day<12 then
        if monthnum==1 then
        monthbeforenum=12
        else
        monthbeforenum=monthnum-1
        end
    month=months[monthbeforenum]
    else    
    month=monthname
    end
    if updates==6 or wtimer==1 then    
    co=(conky_parse("${exec vnstat -m | grep -n '" .. month .. "' | sed -n 1p | awk -F'|' '{print $3}'}"))
    co=string.gsub(co," ","")
    num=tonumber((string.gsub(co,"%a","")))
    units=(string.gsub(co,"[%p%d]",""))
    end
    if num==nil then num=0 end
    print (num,units)
    --max number--------------------------
    if units=="GB" or units=="GiB" then max=25 end
    if units =="MB" or units=="MiB"  then max=25600 end
    if units =="KB" or units=="KiB"  then max=26214400 end
    if max==nil then max=0 end
    --position-----------------------------
    across=275
    down=985
    --radius of ring-----------------------
    rad=30
    --ring width---------------------------
    inlw=15
    --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=(num/max)*100
    draw_ring_pos(co, across, down, rad, inlw, rstart, rend, bgr, bgg, bgb, bga, inr, ing, inb, ina)
    --END NETRING SETUP---------------------------------------------------------------------------------
    --SETUP:CPU2 Ring-----------------------------------------------------------------------------
    --conky object to be displayed-----
    co=tonumber(conky_parse('${cpu cpu2}'))
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=290
    down=455
    --radius of ring-----------------------
    rad=40
    --ring width---------------------------
    inlw=10
    --start and end angles---------------
    rstart=180
    rend=360
    --color and alpha for indicator----
    inr,ing,inb,ina=1,0,0,1
    --background ring color and alpha-----
    bgr,bgg,bgb,bga=1,1,0,1
    --calculation, do not edit below---------
    co=(co/max)*100
    draw_ring_pos(co, across, down, rad, inlw, rstart, rend, bgr, bgg, bgb, bga, inr, ing, inb, ina, direction)
    --END SETUP---------------copy setup section and paste for additional rings----------
    --SETUP:RAM Ring-----------------------------------------------------------------------------
    --conky object to be displayed-----
    co=tonumber(conky_parse('${memperc}'))
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=290
    down=455
    --radius of ring-----------------------
    rad=25
    --ring width---------------------------
    inlw=10
    --start and end angles---------------
    rstart=-180
    rend=180
    --color and alpha for indicator----
    inr,ing,inb,ina=1,1,1,1.0
    --background ring color and alpha-----
    bgr,bgg,bgb,bga=0.5,0.5,0.5,1.0
    --calculation, do not edit below---------
    co=(co/max)*100
    draw_ring_pos(co, across, down, rad, inlw, rstart, rend, bgr, bgg, bgb, bga, inr, ing, inb, ina, direction)
    --END SETUP---------------copy setup section and paste for additional rings----------
    --SETUP:SWAP Ring-----------------------------------------------------------------------------
    --conky object to be displayed-----
    co=tonumber(conky_parse('${swapperc}'))
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=290
    down=455
    --radius of ring-----------------------
    rad=8
    --ring width---------------------------
    inlw=16
    --start and end angles---------------
    rstart=-180
    rend=180
    --color and alpha for indicator----
    inr,ing,inb,ina=1,0,0,1.0
    --background ring color and alpha-----
    bgr,bgg,bgb,bga=1,1,1,0.75
    --calculation, do not edit below---------
    co=(co/max)*100
    draw_ring_pos(co, across, down, rad, inlw, rstart, rend, bgr, bgg, bgb, bga, inr, ing, inb, ina, direction)
    --END SETUP---------------copy setup section and paste for additional rings----------
    --SETUP:7GBACKUP3 Ring-----------------------------------------------------------------------------
    --conky object to be displayed-----
    mounted=conky_parse('${if_mounted /media/7GBACKUP3}1${else}0${endif}')
    if tonumber(mounted)==1 then
    co=tonumber(conky_parse('${fs_used_perc /media/7GBACKUP3}'))
    else
    co=0
    end
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=240
    down=695
    --radius of ring-----------------------
    rad=45
    --ring width---------------------------
    inlw=5
    --start and end angles---------------
    rstart=180
    rend=270
    --color and alpha for indicator----
    inr,ing,inb,ina=1,0,0,1.0
    --background ring color and alpha-----
    mounted=conky_parse('${if_mounted /media/7GBACKUP3}1${else}0${endif}')
    if tonumber(mounted)==1 then
    bgr,bgg,bgb,bga=0.75,0.75,0,1.0
    else
    bgr,bgg,bgb,bga=1,1,1,1.0
    end
    --calculation, do not edit below---------
    co=(co/max)*100
    draw_ring_pos(co, across, down, rad, inlw, rstart, rend, bgr, bgg, bgb, bga, inr, ing, inb, ina, direction)
    --END SETUP---------------copy setup section and paste for additional rings----------
    --SETUP:120 Ring-----------------------------------------------------------------------------
    --conky object to be displayed-----
    mounted=conky_parse('${if_mounted /media/120}1${else}0${endif}')
    if tonumber(mounted)==1 then
    co=tonumber(conky_parse('${fs_used_perc /media/120}'))
    else
    co=0
    end
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=240
    down=695
    --radius of ring-----------------------
    rad=45
    --ring width---------------------------
    inlw=5
    --start and end angles---------------
    rstart=270
    rend=360
    --color and alpha for indicator----
    inr,ing,inb,ina=1,0,0,1.0
    --background ring color and alpha-----
    mounted=conky_parse('${if_mounted /media/120}1${else}0${endif}')
    if tonumber(mounted)==1 then
    bgr,bgg,bgb,bga=0.75,0.75,0,1.0
    else
    bgr,bgg,bgb,bga=1,1,1,1.0
    end
    --calculation, do not edit below---------
    co=(co/max)*100
    draw_ring_pos(co, across, down, rad, inlw, rstart, rend, bgr, bgg, bgb, bga, inr, ing, inb, ina, direction)
    --END SETUP---------------copy setup section and paste for additional rings----------
    --SETUP:Sansa Ring-----------------------------------------------------------------------------
    --conky object to be displayed-----
    wtimer=(updates % 30)+1
    if updates==6 or wtimer==1 then
    mounted=conky_parse("${if_match ${exec df -h | grep -c 'SANSA CLIPP'} == 1}1${else}0${endif}")
    end
    if tonumber(mounted)==1 then
    co=tonumber(conky_parse("${exec df -h | grep 'SANSA CLIPP' | awk '{print $5}' | sed 's/%//'}"))
    else
    co=0
    end
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=328
    down=670
    --radius of ring-----------------------
    rad=5
    --ring width---------------------------
    inlw=5
    --start and end angles---------------
    rstart=-180
    rend=180
    --color and alpha for indicator----
    inr,ing,inb,ina=1,0.75,0,1.0
    --background ring color and alpha-----
    bgr,bgg,bgb,bga=0,0,0,0.0
    --calculation, do not edit below---------
    co=(co/max)*100
    draw_ring_pos(co, across, down, rad, inlw, rstart, rend, bgr, bgg, bgb, bga, inr, ing, inb, ina, direction)
    --END SETUP---------------copy setup section and paste for additional rings----------
    --SETUP:OS USB Stick Ring-----------------------------------------------------------------------------
    --conky object to be displayed-----
    mounted=conky_parse('${if_mounted /media/OSUSB}1${else}0${endif}')
    if tonumber(mounted)==1 then
    co=tonumber(conky_parse('${fs_used_perc /media/OSUSB}'))
    else
    co=0
    end
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=325
    down=730
    --radius of ring-----------------------
    rad=5
    --ring width---------------------------
    inlw=5
    --start and end angles---------------
    rstart=-180
    rend=180
    --color and alpha for indicator----
    inr,ing,inb,ina=1,0,0,1.0
    --background ring color and alpha-----
    bgr,bgg,bgb,bga=0,0,0,0.0
    --calculation, do not edit below---------
    co=(co/max)*100
    draw_ring_pos(co, across, down, rad, inlw, rstart, rend, bgr, bgg, bgb, bga, inr, ing, inb, ina, direction)
    --END SETUP---------------copy setup section and paste for additional rings----------
    end
    end
    
    --NEGATIVE ARCS-------------------------------------------------------------------------------------------
    
    require 'cairo'
    function draw_ring_neg(co, across, down, rad, inlw, rstart, rend, bgr, bgg, bgb, bga, inr, ing, inb, ina, direction)
    
    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
    local angle_0_r=rend*(2*math.pi/360)-math.pi/2
    local angle_f_r=rstart*(2*math.pi/360)-math.pi/2
    local t_arc=(co/100)*(angle_f_r-angle_0_r)
    cairo_arc_negative(cr,across,down,rad,angle_0_r,angle_0_r+t_arc)
    cairo_set_source_rgba(cr,inr,ing,inb,ina)
    cairo_stroke(cr)
    end
    
    function conky_draw_neg()
    if conky_window == nil then return end
    if cs == nil or cairo_xlib_surface_get_width(cs) ~= conky_window.width or cairo_xlib_surface_get_height(cs) ~= conky_window.height then
    		if cs then cairo_surface_destroy(cs) end
    		cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
    	end
    	if cr then cairo_destroy(cr) end
    cr = cairo_create(cs)
    local updates=tonumber(conky_parse('${updates}'))
    if updates>=5 then
    --SETUP:CPU Ring-----------------------------------------------------------------------------
    --conky object to be displayed-----
    co=tonumber(conky_parse('${cpu cpu1}'))
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=290
    down=455
    --radius of ring-----------------------
    rad=40
    --ring width---------------------------
    inlw=10
    --start and end angles---------------
    rstart=0
    rend=180
    --color and alpha for indicator----
    inr,ing,inb,ina=1,0,0,1
    --background ring color and alpha-----
    bgr,bgg,bgb,bga=1,1,0,1
    --calculation, do not edit below---------
    co=(co/max)*100
    draw_ring_neg(co, across, down, rad, inlw, rstart, rend, bgr, bgg, bgb, bga, inr, ing, inb, ina, direction)
    --END SETUP---------------copy setup section and paste for additional rings----------
    --SETUP:7GBACKUP Ring-----------------------------------------------------------------------------
    --conky object to be displayed-----
    mounted=conky_parse('${if_mounted /media/7GBACKUP}1${else}0${endif}')
    if tonumber(mounted)==1 then
    co=tonumber(conky_parse('${fs_used_perc /media/7GBACKUP}'))
    else
    co=0
    end
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=240
    down=695
    --radius of ring-----------------------
    rad=45
    --ring width---------------------------
    inlw=5
    --start and end angles---------------
    rstart=0
    rend=90
    --color and alpha for indicator----
    inr,ing,inb,ina=1,0,0,1.0
    --background ring color and alpha-----
    mounted=conky_parse('${if_mounted /media/7GBACKUP}1${else}0${endif}')
    if tonumber(mounted)==1 then
    bgr,bgg,bgb,bga=0.75,0.75,0,1.0
    else
    bgr,bgg,bgb,bga=1,1,1,1.0
    end
    --calculation, do not edit below---------
    co=(co/max)*100
    draw_ring_neg(co, across, down, rad, inlw, rstart, rend, bgr, bgg, bgb, bga, inr, ing, inb, ina, direction)
    --END SETUP---------------copy setup section and paste for additional rings----------
    --SETUP:7GBACKUP2 Ring-----------------------------------------------------------------------------
    --conky object to be displayed-----
    mounted=conky_parse('${if_mounted /media/7GBACKUP2}1${else}0${endif}')
    if tonumber(mounted)==1 then
    co=tonumber(conky_parse('${fs_used_perc /media/7GBACKUP2}'))
    else
    co=0
    end
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=240
    down=695
    --radius of ring-----------------------
    rad=45
    --ring width---------------------------
    inlw=5
    --start and end angles---------------
    rstart=90
    rend=180
    --color and alpha for indicator----
    inr,ing,inb,ina=1,0,0,1.0
    --background ring color and alpha-----
    mounted=conky_parse('${if_mounted /media/7GBACKUP2}1${else}0${endif}')
    if tonumber(mounted)==1 then
    bgr,bgg,bgb,bga=0.75,0.75,0,1.0
    else
    bgr,bgg,bgb,bga=1,1,1,1.0
    end
    --calculation, do not edit below---------
    co=(co/max)*100
    draw_ring_neg(co, across, down, rad, inlw, rstart, rend, bgr, bgg, bgb, bga, inr, ing, inb, ina, direction)
    --END SETUP---------------copy setup section and paste for additional rings----------
    end
    end
    calendar.lua A script I worked on with mrpeachy's latest (I think) calendar script, plus a date box by dk75.
    Code:
    --lua calendar script by mrpeachy version 3, 03/04/2011
    --fixed issue where months beginning on saturday would not have last dates printed
    --added previous and next month dates within calendar
    --condensed code, hopefully will run lighter also
    --fixed ability to rotate and keep box in right place
    require 'cairo'
    --------------------------------------------------------------------------------
    function conky_draw_fig(cs, cr)
    if conky_window == nil then return end
    if cs == nil or cairo_xlib_surface_get_width(cs) ~= conky_window.width or cairo_xlib_surface_get_height(cs) ~= conky_window.height then
    		if cs then cairo_surface_destroy(cs) end
    		cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
    	end
    	if cr then cairo_destroy(cr) end
    cr = cairo_create(cs)
    local updates=tonumber(conky_parse('${updates}'))
    --####################################################################################################
    if updates>5 then -- starts the display
    --####################################################################################################
    --title text color
    tred,tgreen,tblue,talpha=1,0,0,1
    --title text font
    tfont="TransponderAOE"
    --title text size
    tfontsize=20
    --title font bold? Set to 1 for bold font
    tfbold=1
    --###################################################
    --main body text color
    bred,bgreen,bblue,balpha=0,0,0.753,1
    --main body text font
    mfont="TransponderAOE"
    --main body text size
    mfontsize=20
    --main body font bold? Set to 1 for bold font
    mfbold=1
    --###################################################
    --highlight text color
    hred,hgreen,hblue,halpha=1,1,0,1
    --highlight font
    hfont="TransponderAOE"
    --highlight size
    hfontsize=20
    --Highlight font bold? Set to 1 for bold font
    hfbold=1
    --###################################################
    --surrounding numbers 1=on, 0=off
    surround=1
    --surrounding dates text color
    sred,sgreen,sblue,salpha=1,0.723,0,1
    --surrounding font
    sfont="TransponderAOE"
    --surounding size
    sfontsize=20
    --bold?
    sfbold=0
    --###################################################
    --indicator box enter 1 for box or 0 for no box
    box=1
    --use the following 2 numbers to adjust box position
    xadjust=2.5
    yadjust=5
    --set the box dimensions
    width=28
    height=22
    --box color
    bxred,bxgreen,bxblue,bxalpha=1,0,0,1
    --###################################################
    --calendar this month ###############################
    --###################################################
    --position
    across=140
    down=180
    --rotate - this will require repositioning above
    rotate=0
    --###################################################
    --horizontal gap between dates
    gaph=32
    --###################################################
    --gap between day titles and first line
    gapt=25
    --###################################################
    --gap between calendar line
    gapl=25
    --###################################################
    --spacer -- this can help with alignment enter 0, 1 space or 2 spaces between the ""
    spacer=" "
    --###################################################
    --calendar calcs
    year=os.date("%G")
    today=tonumber(os.date("%d"))
    t1 = os.time( {    year=year,month=03,day=01,hour=00,min=0,sec=0} );
    t2 = os.time( {    year=year,month=02,day=01,hour=00,min=0,sec=0} );
    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
    local day_num = today
    local remainder=day_num % 7
    start_day=day-(day_num % 7)
    if start_day<0 then start_day=7+start_day end     
    month=os.date("%m")
    mdays=monthdays[tonumber(month)]
    mdaystm=mdays
    x=mdays+start_day
    dnum={}
    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_rotate (cr,(math.pi/180)*(rotate))
    --print calendar titles
    --###################################################
    if tfbold==1 then
    cairo_select_font_face (cr, tfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
    else
    cairo_select_font_face (cr, tfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    end
    cairo_set_font_size (cr, tfontsize);
    cairo_set_source_rgba (cr,tred,tgreen,tblue,talpha)
    dys={"SU","MO","TU","WE","TH","FR","SA"}
    --------------------------------
    --use these settings to mess around with positioning
    turn=0
    ta=0
    move=0
    rot=0
    --------------------------------
    for i=1,7 do
    cairo_move_to (cr, across+(gaph*(i-1)), down+(i*move))
    cairo_rotate (cr,(math.pi/180)*(rot))
    cairo_show_text (cr, dys[i])
    cairo_stroke (cr)
    cairo_rotate (cr,(math.pi/180)*(rot*-1))
    end
    if mfbold==1 then
    cairo_select_font_face (cr, mfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
    else
    cairo_select_font_face (cr, mfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    end
    cairo_set_font_size (cr, mfontsize);
    cairo_set_source_rgba (cr,bred,bgreen,bblue,balpha)
    for i=1,plen,7 do
    fn=i
    for i=fn,fn+6 do
    cairo_move_to (cr, across+(gaph*(i-fn))-((((fn-1)/7)+ta)*turn), (i*move)+down+gapt+(gapl*((fn-1)/7)))
    cairo_rotate (cr,(math.pi/180)*(rot))
    cairo_show_text (cr, dnum[i])
    cairo_stroke (cr)
    cairo_rotate (cr,(math.pi/180)*(rot*-1))
    end
    end
    if hfbold==1 then
    cairo_select_font_face (cr, hfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
    else
    cairo_select_font_face (cr, hfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    end
    cairo_set_font_size (cr, hfontsize);
    cairo_set_source_rgba (cr,hred,hgreen,hblue,halpha)
    for i=1,plen,7 do
    fn=i
    for i=fn,fn+6 do
    cairo_move_to (cr, across+(gaph*(i-fn))-((((fn-1)/7)+ta)*turn), (i*move)+down+gapt+(gapl*((fn-1)/7)))
    cairo_rotate (cr,(math.pi/180)*(rot))
    cairo_show_text (cr, dnumh[i])
    cairo_stroke (cr)
    cairo_rotate (cr,(math.pi/180)*(rot*-1))
    end
    end
    --###############################################################################
    if surround==1 then
    thisstart=tonumber(start_day)+1
    thisend=tonumber(start_day)+mdays
    previous=tonumber(start_day)
    nextmon=dlen-thisend
    pmon=tonumber(month)-1
    if pmon==0 then pmon=12 end
    pmon=monthdays[pmon]
    snum={}
    for i=1,dlen do
    snum[i]=""
    end
    for i=tonumber(thisend)+1,tonumber(thisend)+nextmon do
    snum[i]=i-tonumber(thisend)
    end
    for i=1,previous do
    snum[i]=pmon-(previous-(i))
    end
    if sfbold==1 then
    cairo_select_font_face (cr, sfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
    else
    cairo_select_font_face (cr, sfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    end
    cairo_set_font_size (cr, sfontsize);
    cairo_set_source_rgba (cr,sred,sgreen,sblue,salpha)
    for i=1,plen,7 do
    fn=i
    for i=fn,fn+6 do
    cairo_move_to (cr, across+(gaph*(i-fn))-((((fn-1)/7)+ta)*turn), (i*move)+down+gapt+(gapl*((fn-1)/7)))
    cairo_rotate (cr,(math.pi/180)*(rot))
    cairo_show_text (cr, snum[i])
    cairo_stroke (cr)
    cairo_rotate (cr,(math.pi/180)*(rot*-1))
    end
    end
    end
    --box aound
    if box==1 then
    cairo_set_source_rgba (cr,bxred,bxgreen,bxblue,bxalpha)
    cairo_set_line_width (cr,1)
    if place>0 and place<8 then
    cy=down+gapt
    elseif
    place>7 and place<15 then
    cy=down+gapt+gapl
    elseif
    place>14 and place<22 then
    cy=down+gapt+gapl+gapl
    elseif
    place>21 and place<29 then
    cy=down+gapt+gapl+gapl+gapl
    elseif
    place>28 and place<36 then
    cy=down+gapt+gapl+gapl+gapl+gapl
    end
    placey=place %7
    if placey==1 then
    cx=across
    elseif
    placey==2 then
    cx=across+(gaph*1)
    elseif
    placey==3 then
    cx=across+(gaph*2)
    elseif
    placey==4 then
    cx=across+(gaph*3)
    elseif
    placey==5 then
    cx=across+(gaph*4)
    elseif
    placey==6 then
    cx=across+(gaph*5)
    elseif
    placey==0 then
    cx=across+(gaph*6)
    end
    cairo_rectangle (cr,cx-xadjust,cy+yadjust,width,-height)
    cairo_stroke (cr)
    end
    --###################################################
    cairo_rotate (cr,(math.pi/180)*(rotate*-1))
    --end of calendar
    --###################################################
    --#################################################################################
    end--end if 5
    end--end main function
    
    --################################################################################
    --Box Function
    --################################################################################
    do
    
    require "cairo"
    local cs, cr = nil
    
    local function conky_set_the_font(cr, fface, fsize, fbold)
    		if fbold == 1 then
    			cairo_select_font_face(cr, fface, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD)
    		else
    			cairo_select_font_face(cr, fface, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL)
    		end
    		cairo_set_font_size(cr, fsize)
    end
    
    local function conky_draw_date(cr, extents, string, fred, fgreen ,fblue, falpha, tacross, down)
    		cairo_set_source_rgba(cr, fred, fgreen, fblue, falpha)
    		cairo_move_to(cr, tacross - (extents.width /2 ), down)
    		cairo_show_text(cr, string)
    end
    
    function conky_draw_box(cs, cr)
    	if conky_window == nil then return end
    	if cs == nil or cairo_xlib_surface_get_width(cs) ~= conky_window.width or cairo_xlib_surface_get_height(cs) ~= conky_window.height then
    		if cs then cairo_surface_destroy(cs) end
    		cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
    	end
    	if cr then cairo_destroy(cr) end
    	cr = cairo_create(cs)
    	local updates = tonumber(conky_parse('${updates}'))
    	--####################################################################################################
    	if updates>5 then -- starts the display
    	--####################################################################################################
    		--Weekday text color
    		local wred, wgreen, wblue, walpha = 1, 1, 1, 1
    		--Weekday text font
    		local wfont = "TransponderAOE"
    		--Weekday text size
    		local wfontsize = 16
    		--Weekday font bold? Set to 1 for bold font
    		local wfbold = 1
    		--###################################################
    		--Month text color
    		local mred, mgreen, mblue, malpha = 1, 0, 0, 1
    		--Month text font
    		local mfont = "TransponderAOE"
    		--Month text size
    		local mfontsize = 18
    		--Month font bold? Set to 1 for bold font
    		local mfbold = 1
    		--###################################################
    		--Day text color
    		local dred, dgreen, dblue, dalpha = 1, 1, 0, 1
    		--Day font
    		local dfont = "TransponderAOE"
    		--Day size
    		local dfontsize = 30
    		--Day font bold? Set to 1 for bold font
    		local dfbold = 1
    		--###################################################
    		--Year text color
    		local yred, ygreen, yblue, yalpha = 1, 1, 1, 1
    		--year font
    		local yfont = "TransponderAOE"
    		--Year size
    		local yfontsize = 18
    		--Year font bold? Set to 1 for bold font
    		local yfbold = 1
    		--###################################################
    		--indicator box enter 1 for box or 0 for no box
    		local box = 1
    		--use the following 2 numbers to adjust box position
    		local xadjust = 20
    		local yadjust = 180
    		--set the box dimensions
    		local width = 104
    		local height = 110
    		--box thickness
    		local bthick = 5
    		--box color
    		local bxred, bxgreen, bxblue, bxalpha = 0, 0, 0.753, 1
    		--###################################################
    		--Today's Date Box ###############################
    		--###################################################
    		--position
    		local down = yadjust + bthick
    		--###################################################
    		--gap from sides
    		local gaph = 10
    		--###################################################
    		--variables (need to set font face, font size and text string in order to populate text extents structure with text measurements)
    		-- Weekday
    		local wdays = os.date("%A")
    		local ext_wdays = cairo_text_extents_t:create()
    		conky_set_the_font(cr, wfont, wfontsize, wfbold)
    		cairo_text_extents(cr, wdays, ext_wdays)
    		-- Month
    		local month = os.date("%B")
    		local ext_month = cairo_text_extents_t:create()
    		conky_set_the_font(cr, mfont, mfontsize, mfbold)
    		cairo_text_extents(cr, month, ext_month)
    		-- Today
    		local today = tonumber(os.date("%d"))
    		local ext_today = cairo_text_extents_t:create()
    		conky_set_the_font(cr, dfont, dfontsize, dfbold)
    		cairo_text_extents(cr, today, ext_today)
    		-- Year
    		local year = os.date("%G")
    		local ext_year = cairo_text_extents_t:create()
    		conky_set_the_font(cr, yfont, yfontsize, yfbold)
    		cairo_text_extents(cr, year, ext_year)
    		-- text across box center axis
    		local tacross = xadjust + (width / 2)
    		-- gap between lines (with 4 lines it will be 3 gaps)
    		local gapl = (height - (bthick * 2) - (gaph * 2) - ext_wdays.height - ext_month.height - ext_today.height - ext_year.height) / 3
    		--###################################################
    		--print box 
    		--###################################################
    		--Weekday
    		down = down + gaph + ext_wdays.height
    		conky_set_the_font(cr, wfont, wfontsize, wfbold)
    		conky_draw_date(cr, ext_wdays, wdays, wred, wgreen ,wblue, walpha, tacross, down)
    		--Month
    		down = down + gapl + ext_month.height
    		conky_set_the_font(cr, mfont, mfontsize, mfbold)
    		conky_draw_date(cr, ext_month, month, mred, mgreen ,mblue, malpha, tacross, down)
    		--Day
    		down = down + gapl + ext_today.height
    		conky_set_the_font(cr, dfont, dfontsize, dfbold)
    		conky_draw_date(cr, ext_today, today, dred, dgreen ,dblue, dalpha, tacross, down)
    		--Year
    		down = down + gapl + ext_year.height
    		conky_set_the_font(cr, yfont, yfontsize, yfbold)
    		conky_draw_date(cr, ext_year, year, yred, ygreen ,yblue, yalpha, tacross, down)
    		--box around
    		if box == 1 then
    			cairo_set_source_rgba(cr, bxred, bxgreen, bxblue, bxalpha)
    			cairo_rectangle(cr, xadjust, yadjust, width, height)
    			cairo_set_line_width(cr, bthick)
    			cairo_stroke(cr)
    		end
    		cairo_stroke(cr)
    		--#################################################################################
    	end--end if 5
    end--end box function
    
    end
    .conkyForecast.config For completeness.
    Code:
    # config settings for conkyForecast.py
    DEFAULT_LOCATION = <Censored>
    CACHE_FOLDERPATH = /tmp/
    CONNECTION_TIMEOUT = 10
    EXPIRY_MINUTES = 30
    TIME_FORMAT = %I:%M %p
    DATE_FORMAT = %d-%m-%Y
    LOCALE = 
    XOAP_PARTNER_ID = <Censored>
    XOAP_LICENCE_KEY = <Censored>
    MAXIMUM_DAYS_FORECAST = 7
    AUTO_NIGHT = False
    #BASE_XOAP_URL = http://xoap.weather.com/weather/local/<LOCATION>?cc=*&dayf=5&link=xoap&prod=xoap&par=<XOAP_PARTNER_ID>&key=<XOAP_LICENCE_KEY>&unit=m
    BASE_XOAP_URL = http://xml.weather.com/weather/local/<LOCATION>?cc=*&dayf=10&link=xoap&prod=xoap&par=<XOAP_PARTNER_ID>&key=<XOAP_LICENCE_KEY>&unit=m
    PROXY_HOST = 
    PROXY_PORT = 8080
    PROXY_USERNAME = 
    PROXY_PASSWORD =
    And Screenshots of course. Before and after the drives are plugged in.

    Oh... Look... I'm down to 5 scripts... This is almost nostalgic... Haven't been below 6 scripts in months....
    Attached Images Attached Images
    Last edited by 42dorian; May 21st, 2011 at 06:12 AM.

  9. #17699
    Join Date
    Aug 2010
    Location
    Arizona USA
    Beans
    2,991
    Distro
    Ubuntu Development Release

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by 42dorian View Post
    Oh... Look... I'm down to 5 scripts... This is almost nostalgic... Haven't been below 6 scripts in months....
    Good job!

    I've been working on UbuOO. They're switching everything over to GTK+3

    It's been quite a challenge, so far...

    You having any luck with it?
    Last edited by VinDSL; May 21st, 2011 at 08:08 AM.
    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. #17700
    Join Date
    Apr 2007
    Beans
    195

    Re: Post your .conkyrc files w/ screenshots

    Any luck with what?

Page 1770 of 2328 FirstFirst ... 7701270167017201760176817691770177117721780182018702270 ... 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
  •