Page 1961 of 2348 FirstFirst ... 961146118611911195119591960196119621963197120112061 ... LastLast
Results 19,601 to 19,610 of 23480

Thread: Post your .conkyrc files w/ screenshots

  1. #19601
    Join Date
    Apr 2007
    Beans
    195

    Re: Post your .conkyrc files w/ screenshots

    New Data Dump. I reorganised things. And I have 5 conkies now. For ease of triggering and information.

    .conkyrc.main
    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 65536
    use_xft yes
    xftalpha 0.5
    xftfont DiamondFantasy:size=16
    
    #-----Window Settings
    own_window yes
    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 4096
    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 008000									#Green
    color5 c0c0c0									#Silver
    color6 ffd700									#Gold
    color7 000080									#Navy
    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}${pre_exec cat ~/Conky/lsb-release | grep 'DISTRIB_ID=' | awk '{print $2}'} ${pre_exec cat ~/Conky/lsb-release | grep 'DISTRIB_RELEASE=' | awk '{print $2}'} (${pre_exec cat ~/Conky/lsb-release | grep 'DISTRIB_CODENAME=' | awk '{print $2,$3}'})
    ${sysname} ${kernel} on ${machine}
    ${color2}Uptime:${goto 100}${uptime}
    #${conky_version}
    #-----LEDs (Indicators)
    ${image ~/Conky/Icons/XubuntuLogoForConky.png -p 250,0 -s 90x90}${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 180}${execi 60 ink -p usb | grep 'Yellow' | awk '{print $2}'}${goto 205}${execi 60 ink -p usb | grep 'Magenta' | awk '{print $2}'}${goto 230}${execi 60 ink -p usb | grep 'Cyan' | awk '{print $2}'}${font}${voffset -15}
    #-----System/Drive Info
    ${voffset -5}${font}${color2}SYSTEM ${color0}${hr 1}${color2}
    CPU1:${goto 55}${font TransponderAOE:bold}${freq_g 1}Ghz${goto 125}${color1}${font}LOut:${goto 180}${color0}${font TransponderAOE:bold}${cpu cpu1}%${font} 
    ${color2}CPU2:${goto 55}${font TransponderAOE:bold}${freq_g 2}Ghz${goto 125}${color1}${font}ROut:${goto 180}${color0}${font TransponderAOE:bold}${cpu cpu2}%${font}
    ${color2}RAM:${goto 55}${font TransponderAOE:bold}${memmax}${goto 125}${color}${font}LIn:${goto 180}${color2}${font TransponderAOE:bold}${memperc}%${font}
    ${color2}Tmp:${goto 55}${font TransponderAOE:bold}${fs_size /tmp}${goto 125}${color}${font}RIn:${goto 180}${color2}${font TransponderAOE:bold}${fs_used_perc /tmp}%${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}
    ${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}
    ${color2}Test:${goto 55}${font TransponderAOE:bold}${fs_size /media/TestDrive}${goto 135}${color4}${fs_used_perc /media/TestDrive}%${goto 175}${color2}${font}Used${goto 220}${color5}
    ${color2}RAID1:${goto 55}${font TransponderAOE:bold}${fs_size /media/RAID1}${goto 135}${color5}${fs_used_perc /media/RAID1}%${goto 175}${color2}${font}Used${goto 220}${color5}
    #-----USB Drives (Special because it checks to see if they're plugged in first.)
    ${color2}USB DEVICES ${color0}${hr 1}${color2}
    ${voffset -8}${font DiamondFantasy:size=12}NAME${goto 75}|${goto 85}SIZE${goto 140}|${goto 155}USED${font}${voffset -5}
    ${if_mounted /media/8GBACKUP}${color2}8G1:${goto 85}${color1}${font TransponderAOE:bold}${fs_size /media/8GBACKUP}${goto 155}${color0}${fs_used_perc /media/8GBACKUP}%${font}${image ~/Conky/Icons/USB8G1Y.png -p 235,355 -s 40x40}${else}${color2}8G1:${goto 85}${color0}${font TransponderAOE:bold}N/C${font}${image ~/Conky/Icons/USB8G1R.png -p 235,355 -s 40x40}${endif}
    ${if_mounted /media/8GBACKUP2}${color2}8G2:${goto 85}${color1}${font TransponderAOE:bold}${fs_size /media/8GBACKUP2}${goto 155}${color0}${fs_used_perc /media/8GBACKUP2}%${font}${image ~/Conky/Icons/USB8G2Y.png -p 235,395 -s 40x40}${else}${color2}8G2:${goto 85}${color0}${font TransponderAOE:bold}N/C${font}${image ~/Conky/Icons/USB8G2R.png -p 235,395 -s 40x40}${endif}
    ${if_mounted /media/8GBACKUP3}${color2}8G3:${goto 85}${color1}${font TransponderAOE:bold}${fs_size /media/8GBACKUP3}${goto 155}${color0}${fs_used_perc /media/8GBACKUP3}%${font}${image ~/Conky/Icons/USB8G3Y.png -p 195,395 -s 40x40}${else}${color2}8G3:${goto 85}${color0}${font TransponderAOE:bold}N/C${font}${image ~/Conky/Icons/USB8G3R.png -p 195,395 -s 40x40}${endif}
    ${color2}${if_mounted /media/60}60:${goto 85}${color1}${font TransponderAOE:bold}${fs_size /media/60}${goto 155}${color0}${fs_used_perc /media/60}%${font}${image ~/Conky/Icons/USB60Y.png -p 195,355 -s 40x40}${else}${color2}60:${goto 85}${color0}${font TransponderAOE:bold}N/C${font}${image ~/Conky/Icons/USB60R.png -p 195,355 -s 40x40}${endif}
    ${color2}${if_match ${exec df -h | grep -c "SANSA CLIPP"} == 1}Sansa:${goto 85}${color1}${font TransponderAOE:bold}${execi 30 df -h | grep "SANSA CLIPP" | awk '{print $2}'}${goto 155}${color0}${execi 30 df -h | grep "SANSA CLIPP" | awk '{print $5}' | sed 's/%//'}%${font}${image ~/Conky/Icons/SansaFull.png -p 300,350 -s 45x66}${else}${color2}Sansa:${goto 85}${color0}${font TransponderAOE:bold}N/C${font}${image ~/Conky/Icons/SansaLine.png -p 300,350 -s 45x66}${endif}
    ${color2}${if_mounted /media/OSUSB}OSUSB:${goto 85}${color1}${font TransponderAOE:bold}${fs_size /media/OSUSB}${goto 155}${color0}${fs_used_perc /media/OSUSB}%${font}${image ~/Conky/Icons/TuxY.png -p 250,480 -s 40x40}${else}${color2}OSUSB:${goto 85}${font TransponderAOE:bold}${color0}N/C${font}${image ~/Conky/Icons/TuxR.png -p 250,480 -s 40x40}${endif}
    ${color2}${if_mounted /media/4B69-61AA}eRDR:${goto 85}${color1}${font TransponderAOE:bold}${fs_size /media/4B69-61AA}${goto 155}${color0}${fs_used_perc /media/4B69-61AA}%${font}${image ~/Conky/Icons/eReaderY.png -p 300,425 -s 50x70}${else}${color2}eRDR:${goto 85}${font TransponderAOE:bold}${color0}N/C${font}${image ~/Conky/Icons/eReaderR.png -p 300,425 -s 50x70}${endif}
    ${if_mounted /media/16GBKUP}${color2}16GBKUP:${goto 85}${color1}${font TransponderAOE:bold}${fs_size /media/16GBKUP}${goto 155}${color0}${fs_used_perc /media/16GBKUP}%${font}${image ~/Conky/Icons/16GCrdY.png -p 200,460 -s 40x40}${else}${color2}16GBKUP:${goto 85}${color0}${font TransponderAOE:bold}N/C${font}${image ~/Conky/Icons/16GCrdR.png -p 200,460 -s 40x40}${endif}
    ${color0}${hr 1}${color2}
    .conkyrc.weather
    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 bottom_right
    gap_x 55
    gap_y 45
    maximum_width 500
    minimum_size 200 500
    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
    
    #-----Required Fonts(For Use In This Conky. Google Search Or DaFont.com to Find Them)
    #-----Diamond Fantasy
    #-----TransponderAOE
    #-----GpuTeks
    #-----MoonPhases
    #-----conkyweather
    #-----ConkyWindNESW
    
    TEXT
    #-----New Weather Section.
    ${color2}Weather${color0}${hr 1}${color2}${execi 1800 bash /home/dorian/Conky/Scripts/conky_intellicast/intell_moon_sun_wind}${execi 1800 bash /home/dorian/Conky/Scripts/conky_wunderground2/wunderground-script}${execi 1800 bash /home/dorian/Conky/Scripts/conky_intellicast/intell_moon_sun_wind}
    ${color2}${goto 15}Today${goto 65}${execi 600  sed -n '9p' /home/dorian/Conky/Scripts/conky_wunderground2/messages.wun}${goto 115}${execi 600  sed -n '17p' /home/dorian/Conky/Scripts/conky_wunderground2/messages.wun}${goto 165}${execi 600  sed -n '25p' /home/dorian/Conky/Scripts/conky_wunderground2/messages.wun}${goto 215}${execi 600  sed -n '33p' /home/dorian/Conky/Scripts/conky_wunderground2/messages.wun}${goto 265}${execi 600  sed -n '41p' /home/dorian/Conky/Scripts/conky_wunderground2/messages.wun}${goto 315}${execi 600  sed -n '49p' /home/dorian/Conky/Scripts/conky_wunderground2/messages.wun}
    #-----High Temp
    H:${font TransponderAOE:bold:size=12}${goto 20}${color1}${execi 900 sed -n '3p' /home/dorian/Conky/Scripts/conky_wunderground2/messages.wun| awk '{print $2}'}°C${goto 70}${execi 900 sed -n '11p' /home/dorian/Conky/Scripts/conky_wunderground2/messages.wun| awk '{print $2}'}°C${goto 115}${execi 900 sed -n '19p' /home/dorian/Conky/Scripts/conky_wunderground2/messages.wun| awk '{print $2}'}°C${goto 165}${execi 900 sed -n '27p' /home/dorian/Conky/Scripts/conky_wunderground2/messages.wun| awk '{print $2}'}°C${goto 215}${execi 900 sed -n '35p' /home/dorian/Conky/Scripts/conky_wunderground2/messages.wun| awk '{print $2}'}°C${goto 265}${execi 900 sed -n '43p' /home/dorian/Conky/Scripts/conky_wunderground2/messages.wun| awk '{print $2}'}°C${goto 315}${execi 900 sed -n '51p' /home/dorian/Conky/Scripts/conky_wunderground2/messages.wun| awk '{print $2}'}°C${font}${color2}
    #-----Low Temp
    L:${font TransponderAOE:bold:size=12}${goto 20}${color1}${execi 900 sed -n '7p' /home/dorian/Conky/Scripts/conky_wunderground2/messages.wun| awk '{print $2}'}°C${goto 70}${execi 900 sed -n '15p' /home/dorian/Conky/Scripts/conky_wunderground2/messages.wun| awk '{print $2}'}°C${goto 115}${execi 900 sed -n '23p' /home/dorian/Conky/Scripts/conky_wunderground2/messages.wun| awk '{print $2}'}°C${goto 165}${execi 900 sed -n '31p' /home/dorian/Conky/Scripts/conky_wunderground2/messages.wun| awk '{print $2}'}°C${goto 215}${execi 900 sed -n '39p' /home/dorian/Conky/Scripts/conky_wunderground2/messages.wun| awk '{print $2}'}°C${goto 265}${execi 900 sed -n '47p' /home/dorian/Conky/Scripts/conky_wunderground2/messages.wun| awk '{print $2}'}°C${goto 315}${execi 900 sed -n '55p' /home/dorian/Conky/Scripts/conky_wunderground2/messages.wun| awk '{print $2}'}°C${color2}${font}
    #-----Day Conditions (Icon)
    DAY:${voffset 20}${color1}${font conkyweather:size=30}${goto 20}${execi 600  sed -n '1p' /home/dorian/Conky/Scripts/conky_wunderground2/weather_icons}${goto 70}${execi 600  sed -n '5p' /home/dorian/Conky/Scripts/conky_wunderground2/weather_icons}${goto 115}${execi 600  sed -n '9p' /home/dorian/Conky/Scripts/conky_wunderground2/weather_icons}${goto 165}${execi 600  sed -n '13p' /home/dorian/Conky/Scripts/conky_wunderground2/weather_icons}${goto 215}${execi 600  sed -n '17p' /home/dorian/Conky/Scripts/conky_wunderground2/weather_icons}${goto 265}${execi 600  sed -n '21p' /home/dorian/Conky/Scripts/conky_wunderground2/weather_icons}${goto 315}${execi 600  sed -n '25p' /home/dorian/Conky/Scripts/conky_wunderground2/weather_icons}${color2}${font}
    #-----Night Conditions (Icon)
    NIGHT:${voffset 20}${color1}${font conkyweather:size=30}${goto 20}${execi 600  sed -n '3p' /home/dorian/Conky/Scripts/conky_wunderground2/weather_icons}${goto 70}${execi 600  sed -n '7p' /home/dorian/Conky/Scripts/conky_wunderground2/weather_icons}${goto 115}${execi 600  sed -n '11p' /home/dorian/Conky/Scripts/conky_wunderground2/weather_icons}${goto 165}${execi 600  sed -n '15p' /home/dorian/Conky/Scripts/conky_wunderground2/weather_icons}${goto 215}${execi 600  sed -n '19p' /home/dorian/Conky/Scripts/conky_wunderground2/weather_icons}${goto 265}${execi 600  sed -n '23p' /home/dorian/Conky/Scripts/conky_wunderground2/weather_icons}${goto 315}${execi 600  sed -n '27p' /home/dorian/Conky/Scripts/conky_wunderground2/weather_icons}${color2}${font}
    #-----Wind Direction (Icon)
    Wind Direction:${voffset 20}${color1}${font ConkyWindNESW:size=30}${goto 20}${execi 600  sed -n '1p' /home/dorian/Conky/Scripts/conky_intellicast/wind_dir_letters}${goto 70}${execi 600  sed -n '2p' /home/dorian/Conky/Scripts/conky_intellicast/wind_dir_letters}${goto 115}${execi 600  sed -n '3p' /home/dorian/Conky/Scripts/conky_intellicast/wind_dir_letters}${goto 165}${execi 600  sed -n '4p' /home/dorian/Conky/Scripts/conky_intellicast/wind_dir_letters}${goto 215}${execi 600  sed -n '5p' /home/dorian/Conky/Scripts/conky_intellicast/wind_dir_letters}${goto 265}${execi 600  sed -n '6p' /home/dorian/Conky/Scripts/conky_intellicast/wind_dir_letters}${goto 315}${execi 600  sed -n '7p' /home/dorian/Conky/Scripts/conky_intellicast/wind_dir_letters}${color2}${font}
    ${goto 20}${execi 600  sed -n '8p' /home/dorian/Conky/Scripts/conky_intellicast/info}${goto 70}${execi 600  sed -n '16p' /home/dorian/Conky/Scripts/conky_intellicast/info}${goto 115}${execi 600  sed -n '24p' /home/dorian/Conky/Scripts/conky_intellicast/info}${goto 165}${execi 600  sed -n '32p' /home/dorian/Conky/Scripts/conky_intellicast/info}${goto 215}${execi 600  sed -n '40p' /home/dorian/Conky/Scripts/conky_intellicast/info}${goto 265}${execi 600  sed -n '48p' /home/dorian/Conky/Scripts/conky_intellicast/info}${goto 315}${execi 600  sed -n '56p' /home/dorian/Conky/Scripts/conky_intellicast/info}${color2}${font}
    ${font TransponderAOE:bold:size=14}${goto 20}${execi 600  sed -n '7p' /home/dorian/Conky/Scripts/conky_intellicast/info}${goto 70}${execi 600  sed -n '15p' /home/dorian/Conky/Scripts/conky_intellicast/info}${goto 115}${execi 600  sed -n '23p' /home/dorian/Conky/Scripts/conky_intellicast/info}${goto 165}${execi 600  sed -n '31p' /home/dorian/Conky/Scripts/conky_intellicast/info}${goto 215}${execi 600  sed -n '39p' /home/dorian/Conky/Scripts/conky_intellicast/info}${goto 265}${execi 600  sed -n '47p' /home/dorian/Conky/Scripts/conky_intellicast/info}${goto 315}${execi 600  sed -n '55p' /home/dorian/Conky/Scripts/conky_intellicast/info}${color2}${font}
    #-----Weather: Extended: Sunrise/Sunset
    ${color2}Sunrise ${font GpuTeks:size=10}(R)${font}/Sunset ${voffset -3}${font GpuTeks:size=10}(S)${color6}${hr 1}${color2}${font}
    #-----Sunrise/Sunset Times
    ${goto 15}Today${goto 65}${execi 600  sed -n '9p' /home/dorian/Conky/Scripts/conky_intellicast/info}${goto 115}${execi 600  sed -n '17p' /home/dorian/Conky/Scripts/conky_intellicast/info}${goto 165}${execi 600  sed -n '25p' /home/dorian/Conky/Scripts/conky_intellicast/info}${goto 215}${execi 600  sed -n '33p' /home/dorian/Conky/Scripts/conky_intellicast/info}${goto 265}${execi 600  sed -n '41p' /home/dorian/Conky/Scripts/conky_intellicast/info}${goto 315}${execi 600  sed -n '49p' /home/dorian/Conky/Scripts/conky_intellicast/info}${font}
    ${font GpuTeks:size=10}R${goto 15}${color0}${font TransponderAOE:bold:size=10}${execi 600  sed -n '2p' /home/dorian/Conky/Scripts/conky_intellicast/info}${goto 65}${execi 600  sed -n '10p' /home/dorian/Conky/Scripts/conky_intellicast/info}${goto 115}${execi 600  sed -n '18p' /home/dorian/Conky/Scripts/conky_intellicast/info}${goto 165}${execi 600  sed -n '26p' /home/dorian/Conky/Scripts/conky_intellicast/info}${goto 215}${execi 600  sed -n '34p' /home/dorian/Conky/Scripts/conky_intellicast/info}${goto 265}${execi 600  sed -n '42p' /home/dorian/Conky/Scripts/conky_intellicast/info}${goto 315}${execi 600  sed -n '50p' /home/dorian/Conky/Scripts/conky_intellicast/info}${font}${color2}
    ${font GpuTeks:size=10}S${goto 15}${color6}${font TransponderAOE:bold:size=10}${execi 600  sed -n '3p' /home/dorian/Conky/Scripts/conky_intellicast/info}${goto 65}${execi 600  sed -n '11p' /home/dorian/Conky/Scripts/conky_intellicast/info}${goto 115}${execi 600  sed -n '19p' /home/dorian/Conky/Scripts/conky_intellicast/info}${goto 165}${execi 600  sed -n '27p' /home/dorian/Conky/Scripts/conky_intellicast/info}${goto 215}${execi 600  sed -n '35p' /home/dorian/Conky/Scripts/conky_intellicast/info}${goto 265}${execi 600  sed -n '43p' /home/dorian/Conky/Scripts/conky_intellicast/info}${goto 315}${execi 600  sed -n '51p' /home/dorian/Conky/Scripts/conky_intellicast/info}${font}${color2}
    ${color2}Moon:${color6}${hr 1}${color2}
    ${goto 10}${color6}${font MoonPhases:size=30}${execi 600  sed -n '1p' /home/dorian/Conky/Scripts/conky_intellicast/moon_phase_letters}${font}${color2}${goto 55}${voffset -20}${execi 600  sed -n '6p' /home/dorian/Conky/Scripts/conky_intellicast/info}${goto 195}Moonrise:${goto 260}${font TransponderAOE:bold:size=12}${color6}${voffset -2}${execi 600  sed -n '4p' /home/dorian/Conky/Scripts/conky_intellicast/info}${font}${color2}
    ${voffset 10}${color6}${hr 1}${color2}
    .conkyrc.clock
    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_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
    
    #-----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 10}${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}
    ${lua conky_draw_box}
    ${voffset 135}${color6}${hr 1}${color2}
    .conkyrc.network
    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 65536
    use_xft yes
    xftalpha 0.5
    xftfont DiamondFantasy:size=16
    
    #-----Window Settings
    own_window yes
    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 4096
    imlib_cache_size 0
    
    #-----Layout Settings
    alignment bottom_middle
    gap_x 430
    gap_y 15
    maximum_width 600
    minimum_size 320 100
    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 008000									#Green
    color5 c0c0c0									#Silver
    color6 ffd700									#Gold
    color7 000080									#Navy
    color8 0000FF									#Blue
    color9 404040									#DarkGrey
    
    #-----Lua To Load
    lua_load /home/dorian/Conky/Scripts/network.lua
    lua_draw_hook_pre conky_draw_netring
    
    #-----Required Fonts(For Use In This Conky. Google Search Or DaFont.com to Find Them)
    #-----Diamond Fantasy
    #-----TransponderAOE
    
    TEXT
    #-----Network Info
    ${color2}NETWORK TRAFFIC: ${nodename}${color0}${hr 1}${color2}
    ${color2}${goto 30}${font TransponderAOE:bold:size=12}|${image ~/Conky/Icons/TrafficIn.png -p 45,10 -s 70x30}${goto 125}|${image ~/Conky/Icons/TrafficOut.png -p 140,10 -s 70x30}
    ${addr eth0}
    ${goto 30}|${goto 45}${color4}${downspeed eth0}${goto 105}/s${goto 125}${color2}|${goto 145}${color1}${upspeed eth0}${goto 205}/s${image ~/Conky/Icons/Globe.png -p 225,60 -s 20x20}
    ${color2}${addr eth1}
    ${goto 30}|${goto 45}${color4}${downspeed eth1}${goto 105}/s${goto 125}${color2}|${goto 145}${color1}${upspeed eth1}${goto 205}/s${image ~/Conky/Icons/Private.png -p 225,100 -s 20x20}
    ${color2}${addr pan1}
    ${goto 30}|${goto 45}${color4}${downspeed pan1}${goto 105}/s${goto 125}${color2}|${goto 145}${color1}${upspeed pan1}${goto 205}/s${image ~/Conky/Icons/bluetooth.png -p 225,145 -s 20x20}
    #-----Monthly/Daily Bandwidth Usage
    ${font}${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}>=11}${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}<11}${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}==10}${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}
    ${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}>=11}${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}<11}${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}==10}${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}
    ${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}>=11}${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}<11}${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}==10}${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}${font}
    ${lua conky_draw_box}
    ${color0}${hr 1}${color2}
    .conkyrc.CPU
    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 65536
    use_xft yes
    xftalpha 0.5
    xftfont DiamondFantasy:size=16
    
    #-----Window Settings
    own_window yes
    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 4096
    imlib_cache_size 0
    
    #-----Layout Settings
    alignment top_middle
    gap_x -430
    gap_y 80
    maximum_width 600
    minimum_size 125 100
    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 008000									#Green
    color5 c0c0c0									#Silver
    color6 ffd700									#Gold
    color7 000080									#Navy
    color8 0000FF									#Blue
    color9 404040									#DarkGrey
    
    #-----Required Fonts(For Use In This Conky. Google Search Or DaFont.com to Find Them)
    #-----Diamond Fantasy
    #-----TransponderAOE
    
    TEXT
    ${font}${color2}CPU TEMP: ${color0}${hr 1}${color2}
    ${offset -10}${color0}${font ConkyWeather:size=40}E${font TransponderAOE:bold:size=20}${voffset -5}${goto 40}${color}${voffset -10}${execi 30 sensors | grep 'temp1:' | awk '{print $2}'}
    ${font TransponderAOE:bold:size=20}${voffset 10}${goto 40}${color}${voffset -10}${execi 30 sensors | grep 'fan1:' | awk '{print $2}'} RPM
    ${image /home/dorian/Conky/Icons/FanSymbol.png -p 5,65 -s 25x25}
    mainrings.lua
    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
    --SETUP:CPU1 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=165
    --radius of ring-----------------------
    rad=50
    --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=165
    --radius of ring-----------------------
    rad=35
    --ring width---------------------------
    inlw=10
    --start and end angles---------------
    rstart=-180
    rend=0
    --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=165
    --radius of ring-----------------------
    rad=20
    --ring width---------------------------
    inlw=10
    --start and end angles---------------
    rstart=-135
    rend=135
    --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:8GBACKUP3 Ring-----------------------------------------------------------------------------
    --conky object to be displayed-----
    mounted=conky_parse('${if_mounted /media/8GBACKUP3}1${else}0${endif}')
    if tonumber(mounted)==1 then
    co=tonumber(conky_parse('${fs_used_perc /media/8GBACKUP3}'))
    else
    co=0
    end
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=240
    down=400
    --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/8GBACKUP3}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:60 Ring-----------------------------------------------------------------------------
    --conky object to be displayed-----
    mounted=conky_parse('${if_mounted /media/60}1${else}0${endif}')
    if tonumber(mounted)==1 then
    co=tonumber(conky_parse('${fs_used_perc /media/60}'))
    else
    co=0
    end
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=240
    down=400
    --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/60}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=400
    --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=275
    down=510
    --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----------
    --SETUP:eReader Ring-----------------------------------------------------------------------------
    --conky object to be displayed-----
    mounted=conky_parse('${if_mounted /media/4B69-61AA}1${else}0${endif}')
    if tonumber(mounted)==1 then
    co=tonumber(conky_parse('${fs_used_perc /media/4B69-61AA}'))
    else
    co=0
    end
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=330
    down=460
    --radius of ring-----------------------
    rad=10
    --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,0,0,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:16GBKUP Card Ring-----------------------------------------------------------------------------
    --conky object to be displayed-----
    mounted=conky_parse('${if_mounted /media/16GBKUP}1${else}0${endif}')
    if tonumber(mounted)==1 then
    co=tonumber(conky_parse('${fs_used_perc /media/16GBKUP}'))
    else
    co=0
    end
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=225
    down=485
    --radius of ring-----------------------
    rad=25
    --ring width---------------------------
    inlw=5
    --start and end angles---------------
    rstart=180
    rend=540
    --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/16GBKUP}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----------
    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: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=165
    --radius of ring-----------------------
    rad=50
    --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:TMP Ring-----------------------------------------------------------------------------
    --conky object to be displayed-----
    co=tonumber(conky_parse('${fs_used_perc /tmp}'))
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=290
    down=165
    --radius of ring-----------------------
    rad=35
    --ring width---------------------------
    inlw=10
    --start and end angles---------------
    rstart=0
    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_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:8GBACKUP Ring-----------------------------------------------------------------------------
    --conky object to be displayed-----
    mounted=conky_parse('${if_mounted /media/8GBACKUP}1${else}0${endif}')
    if tonumber(mounted)==1 then
    co=tonumber(conky_parse('${fs_used_perc /media/8GBACKUP}'))
    else
    co=0
    end
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=240
    down=400
    --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/8GBACKUP}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:8GBACKUP2 Ring-----------------------------------------------------------------------------
    --conky object to be displayed-----
    mounted=conky_parse('${if_mounted /media/8GBACKUP2}1${else}0${endif}')
    if tonumber(mounted)==1 then
    co=tonumber(conky_parse('${fs_used_perc /media/8GBACKUP2}'))
    else
    co=0
    end
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=240
    down=400
    --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/8GBACKUP2}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:Root Ring-----------------------------------------------------------------------------
    --conky object to be displayed-----
    co=tonumber(conky_parse('${fs_used_perc /}'))
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=200
    down=285
    --radius of ring-----------------------
    rad=55
    --ring width---------------------------
    inlw=10
    --start and end angles---------------
    rstart=45
    rend=135
    --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.25
    --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:Home Ring-----------------------------------------------------------------------------
    --conky object to be displayed-----
    co=tonumber(conky_parse('${fs_used_perc /home}'))
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=230
    down=285
    --radius of ring-----------------------
    rad=55
    --ring width---------------------------
    inlw=10
    --start and end angles---------------
    rstart=45
    rend=135
    --color and alpha for indicator----
    inr,ing,inb,ina=1,0.725,0,1.0
    --background ring color and alpha-----
    bgr,bgg,bgb,bga=1,1,1,0.25
    --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:Test Ring-----------------------------------------------------------------------------
    --conky object to be displayed-----
    co=tonumber(conky_parse('${fs_used_perc /media/TestDrive}'))
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=260
    down=285
    --radius of ring-----------------------
    rad=55
    --ring width---------------------------
    inlw=10
    --start and end angles---------------
    rstart=45
    rend=135
    --color and alpha for indicator----
    inr,ing,inb,ina=0,0.5,0,1.0
    --background ring color and alpha-----
    bgr,bgg,bgb,bga=1,1,1,0.25
    --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:RAID1 Ring-----------------------------------------------------------------------------
    --conky object to be displayed-----
    co=tonumber(conky_parse('${fs_used_perc /media/RAID1}'))
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=290
    down=285
    --radius of ring-----------------------
    rad=55
    --ring width---------------------------
    inlw=10
    --start and end angles---------------
    rstart=45
    rend=135
    --color and alpha for indicator----
    inr,ing,inb,ina=0.5,0.5,0.5,1.0
    --background ring color and alpha-----
    bgr,bgg,bgb,bga=1,1,1,0.25
    --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
    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
    cairo_destroy(cr)
    cairo_surface_destroy(cs)
    cr=nil
    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 = 1, 0, 0, 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
    cairo_destroy(cr)
    cairo_surface_destroy(cs)
    cr=nil
    end
    network.lua
    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_netring()
    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<11 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
    --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=230
    --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 the actual ring-----
    draw_ring_pos(co, across, down, rad, inlw, rstart, rend, bgr, bgg, bgb, bga, inr, ing, inb, ina)
    --END NETRING SETUP---------------------------------------------------------------------------------
    --END SETUP---------------copy setup section and paste for additional rings----------
    end
    end
    
    --################################################################################
    --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_label(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
    	--####################################################################################################
    		--Number text color
    		local nred, ngreen, nblue, nalpha = 1, 1, 1, 1
    		--Number text font
    		local nfont = "DiamondFantasy"
    		--Number text size
    		local nfontsize = 20
    		--Number font bold? Set to 1 for bold font
    		local nfbold = 0
    		--Number Label
    		local numlabel="25"
    		--###################################################
    		--Unit text color
    		local ured, ugreen, ublue, ualpha = 1, 1, 1, 1
    		--Unit font
    		local ufont = "DiamondFantasy"
    		--Unit size
    		local ufontsize = 20
    		--Unit font bold? Set to 1 for bold font
    		local ufbold = 0
    		--Unit Label
    		local unitlabel="GB"
    		--###################################################
    		--Text text color
    		local txred, txgreen, txblue, txalpha = 1, 1, 1, 1
    		--Text font
    		local txfont = "DiamondFantasy"
    		--Text size
    		local txfontsize = 20
    		--Text font bold? Set to 1 for bold font
    		local txfbold = 0
    		--Text Label
    		local txtlabel="Total Allowed"
    		--###################################################
    		--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 = 230
    		local yadjust = 190
    		--set the box dimensions
    		local width = 90
    		local height = 90
    		--box thickness
    		local bthick = 2
    		--box color
    		local bxred, bxgreen, bxblue, bxalpha = 0, 0.5, 0, 1
    		--###################################################
    		--Today's Date Box ###############################
    		--###################################################
    		--position
    		local down = yadjust + bthick
    		--###################################################
    		--gap from sides
    		local gaph = 10
    		--###################################################
    		--gap from top of box
    		local gaptb = 25
    		--###################################################
    		--gap between labels adjustment
    		local gapla = 10
    		--###################################################
    		--variables (need to set font face, font size and text string in order to populate text extents structure with text measurements)
    		-- Number
    		local ext_numlabel = cairo_text_extents_t:create()
    		conky_set_the_font(cr, nfont, nfontsize, nfbold)
    		cairo_text_extents(cr, numlabel, ext_numlabel)
    		-- Unit
    		local ext_unitlabel = cairo_text_extents_t:create()
    		conky_set_the_font(cr, ufont, ufontsize, ufbold)
    		cairo_text_extents(cr, unitlabel, ext_unitlabel)
    		-- Text
    		local ext_txtlabel = cairo_text_extents_t:create()
    		conky_set_the_font(cr, txfont, txfontsize, txfbold)
    		cairo_text_extents(cr, txtlabel, ext_txtlabel)
    		-- 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_numlabel.height - ext_unitlabel.height - ext_txtlabel.height - gapla) / 3
    		--###################################################
    		--print box 
    		--###################################################
    		--Number
    		down = down + gapl + gaptb + ext_numlabel.height
    		conky_set_the_font(cr, nfont, nfontsize, nfbold)
    		conky_draw_label(cr, ext_numlabel, numlabel, nred, ngreen ,nblue, nalpha, tacross, down)
    		--Unit
    		down = down + gapl + ext_unitlabel.height
    		conky_set_the_font(cr, ufont, ufontsize, ufbold)
    		conky_draw_label(cr, ext_unitlabel, unitlabel, ured, ugreen , ublue, ualpha, tacross, down)
    		--Text
    		down = down + gapl + ext_txtlabel.height
    		conky_set_the_font(cr, txfont, txfontsize, txfbold)
    		conky_draw_label(cr, ext_txtlabel, txtlabel, txred, txgreen ,txblue, txalpha, 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
    cairo_destroy(cr)
    cairo_surface_destroy(cs)
    cr=nil
    end
    intel_moon_sun_wind
    Code:
    #!/bin/bash
    
    #function: moon_phase_letter
    moon_phase_letter () {
        case $1 in
            "New")
                echo @
            ;;
            "Full")
                echo =
            ;;
            "First Quarter")
                echo T
            ;;
            "Last Quarter")
                echo G
            ;;
            "Waning Gibbous")
                echo V
            ;;
            "Waning Crescent")
                echo R
            ;;
            "Waxing Crescent")
                echo I
            ;;
            "Waxing Gibbous")
                echo E
            ;;
        esac
    }
    
    #function test_wind_message
    test_wind_message () {
        case $1 in
            "S")
                echo "1"
            ;;
            "SSW")
                echo "2"
            ;;
            "SW")
                echo "3"
            ;;
            "WSW")
                echo "4"
                ;;
            "W")
                echo "5"
                ;;
            "WNW")
                echo "6"
                ;;
            "NW")
                echo "7"
                ;;
            "NNW")
                echo "8"
                ;;
            "N")
                echo "9"
                ;;
            "NNE")
                echo ":"
                ;;
            "NE")
                echo ";"
                ;;
            "ENE")
                echo "<"
                ;;
            "E")
                echo "="
                ;;
            "ESE")
                echo ">"
                ;;
            "SE")
                echo "?"
                ;;
            "SSE")
                echo "@"
                ;;
        esac
    }
    
    
    #Put your intellicast extended forecast address here
    address="http://www.intellicast.com/Local/Forecast.aspx?unit=C&location=CAXX0342"
    
    wget -O /home/dorian/Conky/Scripts/conky_intellicast/info $address
    sed -i '/Monday\|Tuesday\|Wednesday\|Thursday\|Friday\|Saturday\|Sunday\|Rise:\|Set:\|Moon Phase:\|Wind Speed:\|Wind Direction:/!d' /home/dorian/Conky/Scripts/conky_intellicast/info
    sed -i -e 's/^.*Rise://g' -e 's/^.*Set://g' -e 's/^.*Moon Phase://g' -e 's/^.*Wind Speed//g' -e 's/^.*Wind Direction//g' /home/dorian/Conky/Scripts/conky_intellicast/info
    sed -i -e 's/^.*<td colspan="2"><strong>//g' -e '1,2d' -e 's/^.*<\/strong> //g' -e 's/<\/td>.*$//g' /home/dorian/Conky/Scripts/conky_intellicast/info
    sed -i -e 's/,.*$//g' -e 's/^.*(//g' -e 's/ <br \/>.*$//g' -e 's/)//g' /home/dorian/Conky/Scripts/conky_intellicast/info
    #sed -i -e 's/Monday/MONDAY/' -e 's/Tuesday/TUESDAY/' -e 's/Wednesday/WEDNESDAY/' -e 's/Thursday/THURSDAY/' -e 's/Friday/FRIDAY/' -e 's/Saturday/SATURDAY/' -e 's/Sunday/SUNDAY/' /home/dorian/Conky/Scripts/conky_intellicast/info
    sed -i -e 's/Monday/Mon/' -e 's/Tuesday/Tue/' -e 's/Wednesday/Wed/' -e 's/Thursday/Thurs/' -e 's/Friday/Fri/' -e 's/Saturday/Sat/' -e 's/Sunday/Sun/' /home/dorian/Conky/Scripts/conky_intellicast/info
    
    for (( i=8; i<=80; i+=8 ))
    	do
    		sed -i "${i}s/.$//" /home/dorian/Conky/Scripts/conky_intellicast/info
    	done
    moon_phase_letter "$(sed -n 6p /home/dorian/Conky/Scripts/conky_intellicast/info)" > /home/dorian/Conky/Scripts/conky_intellicast/moon_phase_letters
    for (( i=14; i<=78; i+=8 ))
        do
            m_phase=$(sed -n ${i}p /home/dorian/Conky/Scripts/conky_intellicast/info)
            moon_phase_letter "$m_phase" >> /home/dorian/Conky/Scripts/conky_intellicast/moon_phase_letters
        done
    test_wind_message "$(sed -n 8p /home/dorian/Conky/Scripts/conky_intellicast/info)" > /home/dorian/Conky/Scripts/conky_intellicast/wind_dir_letters
    for (( i=16; i<=80; i+=8 ))
        do
            w_dir=$(sed -n ${i}p /home/dorian/Conky/Scripts/conky_intellicast/info)
            test_wind_message "$w_dir" >> /home/dorian/Conky/Scripts/conky_intellicast/wind_dir_letters
        done
    wunderground-script
    Code:
    #!/bin/bash
    
    #function: test_weather_message
    test_weather_message () {
      if [[ $1 == "Chance of Flurries" || $1 == Flurries ]]; then
          echo p
        elif [[ $1 == "Chance of Rain" ]]; then
          echo h
    	elif [[ $1 == "Chance of Freezing Rain" || $1 == "Light Freezing Rain" || $1 == "Freezing Rain" ]]; then
          echo v
    	elif [[ $1 == "Chance of Sleet" || $1 == Sleet ]]; then
          echo w
    	elif [[ $1 == "Chance of Snow" ]]; then
          echo q 
    	elif [[ $1 ==  "Chance of Thunderstorms" || $1 == Thunderstorms || $1 == Thunderstorm ]]; then
          echo n
    	elif [[ $1 ==  "Chance of a Thunderstorm" ]]; then
          echo m
    	elif [[ $1 ==  Clear || $1 == Sunny ]]; then
          echo a
    	elif [[ $1 ==  Cloudy ]]; then
          echo d
    	elif [[ $1 ==  Fog || $1 == Haze ]]; then
          echo 0
    	elif [[ $1 ==  "Mostly Cloudy" || $1 == "Partly Cloudy" || $1 == "Partly Sunny" ]]; then
          echo c
    	elif [[ $1 ==  "Mostly Sunny" || $1 == "Scattered Clouds" ]]; then
          echo b
    	elif [[ $1 ==  Rain ]]; then
          echo i
    	elif [[ $1 ==  Snow ]]; then
          echo r
    	elif [[ $1 ==  Overcast ]]; then
          echo e
        else echo -
      fi	
    } 
    
    #function: test_weather_message_night
    test_weather_message_night () {
      if [[ $1 == "Chance of Flurries" || $1 == Flurries || $1 == "Chance of Snow" || $1 ==  Snow ]]; then
          echo O
        elif [[ $1 == "Chance of Rain" || $1 == "Chance of Freezing Rain" || $1 == "Light Freezing Rain" || $1 == "Freezing Rain" || $1 == "Chance of Sleet" || $1 == Sleet || $1 ==  Rain ]]; then
          echo G
    	elif [[ $1 ==  "Chance of Thunderstorms" || $1 == Thunderstorms || $1 == Thunderstorm ]]; then
          echo K
    	elif [[ $1 ==  "Chance of a Thunderstorm" ]]; then
          echo m
    	elif [[ $1 ==  Clear || $1 == Sunny ]]; then
          echo A
    	elif [[ $1 ==  Cloudy ]]; then
          echo D
    	elif [[ $1 ==  Fog || $1 == Haze ]]; then
          echo 0
    	elif [[ $1 ==  "Mostly Cloudy" || $1 == "Partly Cloudy" || $1 == "Partly Sunny" ]]; then
          echo C
    	elif [[ $1 ==  "Mostly Sunny" || $1 == "Scattered Clouds" ]]; then
          echo B
    	elif [[ $1 ==  Overcast ]]; then
          echo D
        else echo -
      fi	
    } 
    
    #function: test_wind_message
    test_wind_message () {
      if [[ $1 == Sou ]]; then
          echo 1
        elif [[ $1 == SSW ]]; then
          echo 2
    	elif [[ $1 == "SW " ]]; then
          echo 3
    	elif [[ $1 == WSW || $1 == Sleet ]]; then
          echo 4
    	elif [[ $1 == Wes ]]; then
          echo 5 
    	elif [[ $1 ==  WNW ]]; then
          echo 6
    	elif [[ $1 ==  "NW " ]]; then
          echo 7
    	elif [[ $1 ==  NNW ]]; then
          echo 8
    	elif [[ $1 ==  Nor ]]; then
          echo 9
    	elif [[ $1 ==  NNE ]]; then
          echo ":"
    	elif [[ $1 ==  "NE " ]]; then
          echo ";"
    	elif [[ $1 ==  ENE ]]; then
          echo "<"
    	elif [[ $1 ==  Eas ]]; then
          echo "="
    	elif [[ $1 ==  ESE ]]; then
          echo ">"
    	elif [[ $1 ==  "SE " ]]; then
          echo "?"
        elif [[ $1 ==  SSE ]]; then
          echo "@"
        else echo "-"
      fi	
    } 
    
    
    rm ~/Conky/Scripts/conky_wunderground2/yes
    rm ~/Conky/Scripts/conky_wunderground2/weather_icons
    wget -O ~/Conky/Scripts/conky_wunderground2/ics http://ical.wunderground.com/auto/ical/global/stations/71639.ics?units=metric
    egrep -i 'DESCRIPTION' ~/Conky/Scripts/conky_wunderground2/ics > ~/Conky/Scripts/conky_wunderground2/messages.wun
    sed -i 's/\\n/\n/g' ~/Conky/Scripts/conky_wunderground2/messages.wun
    sed -i 's/DESCRIPTION://g' ~/Conky/Scripts/conky_wunderground2/messages.wun
    sed -i 's/ - /\n/g' ~/Conky/Scripts/conky_wunderground2/messages.wun
    sed -i 's/High/\nHigh/g' ~/Conky/Scripts/conky_wunderground2/messages.wun
    sed -i 's/Low/\nLow/g' ~/Conky/Scripts/conky_wunderground2/messages.wun
    sed -i 's/Wind /\n/g' ~/Conky/Scripts/conky_wunderground2/messages.wun
    sed -i 's/\..*//g' ~/Conky/Scripts/conky_wunderground2/messages.wun
    #-----Comment out next line for full weekday names.
    sed -i -e 's/Monday/Mon/' -e 's/Tuesday/Tue/' -e 's/Wednesday/Wed/' -e 's/Thursday/Thurs/' -e 's/Friday/Fri/' -e 's/Saturday/Sat/' -e 's/Sunday/Sun/' ~/Conky/Scripts/conky_wunderground2/messages.wun
    
    for (( i=2; i<=100; i+=8 ))
      do
       test_line=$(sed -n "${i}p" ~/Conky/Scripts/conky_wunderground2/messages.wun)
       if [[ $test_line == "" ]]; then
         break
       fi
       test_weather_message "$test_line" >> ~/Conky/Scripts/conky_wunderground2/weather_icons
       j=$((i+2))
       test_line=$(sed -n "${j}p" ~/Conky/Scripts/conky_wunderground2/messages.wun|cut -c1-3)
       if [[ $test_line == "" ]]; then
         break
       fi
       test_wind_message "$test_line" >> ~/Conky/Scripts/conky_wunderground2/weather_icons
       j=$((i+4))
       test_line=$(sed -n "${j}p" ~/Conky/Scripts/conky_wunderground2/messages.wun)
       if [[ $test_line == "" ]]; then
         break
       fi
       test_weather_message_night "$test_line" >> ~/Conky/Scripts/conky_wunderground2/weather_icons
       j=$((i+6))
       test_line=$(sed -n "${j}p" ~/Conky/Scripts/conky_wunderground2/messages.wun|cut -c1-3)
       if [[ $test_line == "" ]]; then
         break
       fi
       test_wind_message "$test_line" >> ~/Conky/Scripts/conky_wunderground2/weather_icons
      done
    days_no=$(($(cat ~/Conky/Scripts/conky_wunderground2/weather_icons|wc -l)/4))
    if [[ $days_no == 8 ]]; then
       touch ~/Conky/Scripts/conky_wunderground2/yes
    fi
    .conky.killswitch
    Code:
    #!/bin/bash
    
    killall conky
    rm /home/dorian/Conky/Scripts/conky_intellicast/info
    rm /home/dorian/Conky/Scripts/conky_intellicast/moon_phase_letters
    rm /home/dorian/Conky/Scripts/conky_intellicast/wind_dir_letters
    rm /home/dorian/Conky/Scripts/conky_wunderground2/ics
    rm /home/dorian/Conky/Scripts/conky_wunderground2/messages.wun
    rm /home/dorian/Conky/Scripts/conky_wunderground2/weather_icons
    Just one screenshot this time. It says enough on it's own. Plus background image and zip of my weather fonts. Enjoy and all that.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by 42dorian; April 20th, 2012 at 03:29 AM.

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

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by 42dorian View Post
    And, to add insult to injury, I can't seem to get the script to look the way I was hoping. I'm trying to set the dials so that it shows every single unit number when it's highlighted, like a clock obviously, but only shows the next number before and after it on the dial at any given time. Ideally, without losing the actual number. Every time I set it, it seems to be checking a percentage of the way up from the bottom... or something...

    'Twas a good idea at first, but I think I might ditch it for now. Keep that clock script around somewhere! If I'm feeling adventurous I might attack it again some day. For now, though, I feel like I'm trying to Rube-Goldburg your script just for a clock My new layout is different enough already. I don't need to overdo it with a clock script just yet.
    hmm..., ill have to take another look at the script, i thought i had run it as a clock but now im not sure
    but i am sure it can be easily adapted

    the original version was quite processor intensive, the update is entirely redesign mechanics wise and far lighter

    got some lua projects in holding patterns for the next couple of weeks however

  3. #19603
    Join Date
    Mar 2009
    Location
    Singapore
    Beans
    88
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Post your .conkyrc files w/ screenshots

    OK, so it now seems the 4-character problem is intermittent - it was working fine this morning, then I reloaded conky and it reappeared. So I deleted all the related files, downloaded a new Teo script, changed only the file paths and this is the resulting curr_cond:
    1.Today
    2.psus
    3.a brief shower or two
    4.17
    5.4
    6.Sat
    7.psu
    8.partly sunny
    9.18
    10.3
    11.Sun
    12.psu
    13.partly sunny
    14.18
    15.5
    16.Mon
    17.mc
    18.increasing clouds
    19.19
    20.8
    21.Tue
    22.psu
    23.partly sunny
    24.23
    25.7
    26.day
    27.h
    28.A Shower
    29.9
    30.6
    31.SSE
    32.16km/h
    33.56%
    34.100.40 kPa
    35.89%
    36.1
    37.1
    38.14 km
    39.6:48 AM
    40.8:20 PM
    41.6:04 AM
    42.7:47 PM
    Attached Files Attached Files

  4. #19604
    Join Date
    Apr 2007
    Beans
    195

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by mrpeachy View Post
    hmm..., ill have to take another look at the script, i thought i had run it as a clock but now im not sure
    but i am sure it can be easily adapted

    the original version was quite processor intensive, the update is entirely redesign mechanics wise and far lighter

    got some lua projects in holding patterns for the next couple of weeks however
    Don't rush. I like my layout. This was going to be a "Would be Nice" feature, and if you end up working it out, then I think it'd be good for your lua resume more than it would be good for my current layout. This is a really good reason to use it, as a kind of rotary flip clock, where each dial is always showing the accurate value. Given enough refresh time, it would even appear to the naked eye to be animated (though that would just be an optical illusion.) and that's just flat out cool.

    Work on other stuff first though. It was a random thought as I was doing all this rearranging today. It was literally "Hey... what ever happened to...?" hence asking.

  5. #19605
    Join Date
    Apr 2012
    Beans
    15

    Re: Post your .conkyrc files w/ screenshots

    My .conkyrc and screenshot.
    Attached Images Attached Images
    Attached Files Attached Files

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

    Re: Post your .conkyrc files w/ screenshots

    Attached are all my conky files. Screen size is 1366x768.

    Bash scripts are all sorted so that the central logo now changes with sunrise/sunset times. The only problem outstanding is the weather script showing more than 1 icon.
    Attached Images Attached Images
    Last edited by RichardCain; May 6th, 2012 at 04:42 PM.

  7. #19607
    Join Date
    Apr 2007
    Beans
    195

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by RichardCain View Post
    Attached are all my conky files. Screen size is 1366x768.

    Bash scripts are all sorted so that the central logo now changes with sunrise/sunset times. The only problem outstanding is the weather script showing more than 1 icon.
    It's easier to help you if you use code tags in the post instead of a zip file. I know, it's nit-picking, but it's just easier.

  8. #19608
    Join Date
    Mar 2009
    Location
    Singapore
    Beans
    88
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by 42dorian View Post
    It's easier to help you if you use code tags in the post instead of a zip file. I know, it's nit-picking, but it's just easier.
    Well, here goes:

    .conkyrc
    Code:
    # Conky settings #
    background yes
    update_interval 1
    
    cpu_avg_samples 2
    net_avg_samples 2
    
    override_utf8_locale yes
    
    double_buffer yes
    no_buffers yes
    
    text_buffer_size 2048
    #imlib_cache_size 0
    
    temperature_unit celsius
    
    # Window specifications #
    
    own_window yes
    own_window_argb_visual yes
    own_window_transparent yes
    own_window_hints undecorated,sticky,skip_taskbar,skip_pager,below
    
    border_inner_margin 0
    border_outer_margin 0
    
    minimum_size 200 2500
    maximum_width 200
    #max_text_width 35
    
    alignment top_right
    gap_x 0
    gap_y 0
    
    # Graphics settings #
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders no
    
    # Text settings #
    use_xft yes
    xftfont arial:size=8
    xftalpha 0.5
    
    uppercase no
    
    temperature_unit celsius
    
    
    default_color e5e5e5
    
    # Lua Load  #
    lua_load ~/.conky/scripts/clock_rings-6.lua
    lua_draw_hook_pre clock_rings
    #lua_load ~/.conky/scripts/v9000/v9000.lua
    #lua_draw_hook_pre weather
    #lua_load ~/.conky/scripts/v9000/weather_testing.lua
    
    TEXT
    ${voffset 8}${font arial:size=16}${time %A}${font}${voffset -8}${alignr 50}${font arial:size=38}${time %e}${font}
    ${voffset -30}${font arial:size=18}${time %b}${font}${voffset -3} ${font arial:size=20}${time %Y}${font}${hr}
    #   LOAD WEATHER   #
    ${execi 500 bash $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/acc_int_cwfont}
    
    ${if_match ${time %H%M}<=${exec bash $HOME/.conky/scripts/sunrise}}${image ~/.conky/moon.png -p 70,120 -s 60x60}  ${else}${if_match ${time %H%M}<=${exec bash $HOME/.conky/scripts/sunset}}  ${image ~/.conky/sun.png -p 70,120 -s 60x60}  ${else}${if_match ${time %H%M}>${exec bash $HOME/.conky/scripts/sunset}}${image ~/.conky/moon.png -p 70,120 -s 60x60}${else}
    ${endif}${endif}${endif}
    #
    #   CLOCK MARKS   #
    #
    ${voffset -23}${goto 99}${font arial:size=10}I${font}
    ${voffset 34}${goto 37}${font arial:size=12}_${goto 154}_${font}
    ${voffset 49}${goto 99}${font arial:size=10}I${font}
    #
    #   RING INFO  #
    #
    ${voffset 35}${font arial:size=7}${goto 28}${cpu cpu0}${goto 95}${memperc}${goto 162}${swapperc}
    ${font arial:size=8}CPU${goto 67}MEM${goto 133}SWP
    ${voffset 30}${font arial:size=7}${goto 62}${fs_used_perc /}${goto 128}${fs_used_perc /home}
    ${font arial:size=8}${goto 85}/${goto 150}~/
    ${goto 102}${voffset 38}${font arial:size=7}${upspeed wlan0}
    ${goto 102}${downspeed wlan0}
    ${font arial:size=8}${goto 102}${voffset -3}NET
    #
    #   SYSTEM INFO   #
    #
    ${voffset -12}${alignr} Run ${running_processes}
    Temps: ${alignr} Proc ${processes}
    CPU: ${exec sensors | grep -n 'temp1' | cut -c 18,19,22,23,24}${alignr} Up ${uptime_short}
    HDD: ${execi 10 hddtemp /dev/sda | awk '{print $4}'}${alignr}${kernel}
    BAT:  ${exec acpi -t | cut -c 16,17}°C${alignr}${pre_exec cat /etc/issue.net}
    ${voffset -5}$hr
    #
    #   GMAIL      #
    #
    ${voffset -18}${font Martin Vogel\'s Symbols:size=25}B$font ${voffset -7}${font arial:size=10}You have ${texeci 60 perl ~/.conky/scripts/gmail.pl n} new email(s)
    ${voffset -5}$hr
    #
    #   WEATHER   #
    #
    ${alignc}${font arial:size=12}Surat Thani
    
    ${goto 10}${font arial:size=10}N: ${execpi 600 sed -n '5p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond}°${goto 150}H: ${execpi 600 sed -n '9p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond}°
    ${goto 150}L: ${execpi 600 sed -n '10p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond}°
    ${goto 60}${voffset -45}${font conkyweather:size=40}${execpi 600 sed -n '2p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond}${font}
    ${font arial:size=10}${alignc}${execpi 600 sed -n '3p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond}${font}
    ${font arial:size=8}Sunrise: ${exec bash $HOME/.conky/scripts/sunrise}  ${alignr}Sunset: ${exec bash $HOME/.conky/scripts/sunset}
    ${goto 17}${font conkyweather:size=20}${execpi 600 sed -n '11p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days}\
    ${goto 88}${execpi 600 sed -n '16p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days}\
    ${goto 157}${execpi 600 sed -n '21p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days}${font}
    ${font arial:size=8}\
    ${goto 15}${execpi 600 sed -n '13p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days}°/${execpi 600 sed -n '14p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days}°\
    ${goto 85}${execpi 600 sed -n '18p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days}°/${execpi 600 sed -n '19p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days}°\
    ${goto 155}${execpi 600 sed -n '23p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days}°/${execpi 600 sed -n '24p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days}°
    ${voffset -4}${goto 20}${voffset 3}${execpi 600 sed -n '10p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days | cut -c 1,2,3}\
    ${goto 90}${execpi 600 sed -n '15p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days | cut -c 1,2,3}\
    ${goto 160}${execpi 600 sed -n '20p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days | cut -c 1,2,3}
    ${voffset -4}$hr
    #
    #   WORLD TIMES   #
    #
    Bangkok:${goto 60}${tztime Asia/Bangkok  %H:%M} ${alignr}Edinburgh: ${tztime Europe/London  %H:%M}
    Dubai:${goto 60}${tztime Asia/Dubai  %H:%M} ${alignr}New York: ${tztime America/New_York  %H:%M}
    ${voffset -4}$hr
    #
    ${execi 150 fortune}
    acc_inf_cwfont:
    Code:
    #!/bin/bash
    
    #function: test_image_day
    test_image_day () {
        case $1 in
             su)
               echo a
             ;;
             msu)
               echo b 
             ;;
             psu)
               echo c
             ;;
             ic)
               echo c
             ;;
             h)
               echo c
             ;;
             mc)
               echo d
             ;;
             c)
               echo e
             ;;
             d)
               echo e
             ;;
             f)
               echo 0
             ;;
             s)
               echo h
             ;;
             mcs)
               echo g
             ;;
             psus)
               echo g
             ;;
             t)
               echo l
             ;;
             mct)
               echo k
             ;;
             psut)
               echo k
             ;;
             r)
               echo i
             ;;
             fl)
               echo p
             ;;
             mcfl)
               echo o
             ;;
             psfl)
               echo o
             ;;
             sn)
               echo r
             ;;
             mcsn)
               echo o
             ;;
             i)
               echo E
             ;;
             sl)
               echo u
             ;;
             fr)
               echo i
             ;;
             rsn)
               echo v
             ;;
             w)
               echo 6
             ;;
             ho)
               echo 5
             ;;
             co)
               echo E
             ;;
             cl)
               echo A
             ;;
             mcl)
               echo B
             ;;
             pc)
               echo C
             ;;
             pcs)
               echo G
             ;;
             pct)
               echo K
             ;;
            esac
    } 
    
    #function: test_image_night
    test_image_night () {
        case $1 in
    		 su)
               echo a
             ;;
             msu)
               echo b
             ;;
             psu)
               echo c
             ;;
             c)
               echo f
             ;;
             d)
               echo f
             ;;
             f)
               echo f
             ;;
             s)
               echo h
             ;;
             psus)
               echo g
             ;;
             t)
               echo l
             ;;
             psut)
               echo k
             ;;
             r)
               echo i
             ;;
             fl)
               echo p
             ;;
             psfl)
               echo o
             ;;
             sn)
               echo r
             ;;
             i)
               echo E
             ;;
             sl)
               echo u
             ;;
             fr)
               echo i
             ;;
             rsn)
               echo v
             ;;
             ho)
               echo 5
             ;;
             co)
               echo E
             ;;
             cl)
               echo A
             ;;
             w)
               echo 6
             ;;
             mcl)
               echo B
             ;;
             pc)
               echo C
             ;;
             ic)
               echo B
             ;;
             h)
               echo B
             ;;
             mc)
               echo C
             ;;
             pcs)
               echo G
             ;;
             mcs)
               echo G
             ;;
             pct)
               echo K
             ;;
             mct)
               echo K
             ;;
             mcfl)
               echo O
             ;;
             mcsn)
               echo O
             ;;
            esac
    }
    
    
    #put your Accuweather address here
    address="http://www.accuweather.com/en/th/surat-thani/320998/weather-forecast/320998"
    
    loc_id=$(echo $address|sed 's/\/weather-forecast.*$//'|sed 's/^.*\///')
    last_number=$(echo $address|sed 's/^.*\///')
    
    curr_addr="$(echo $address|sed 's/weather-forecast.*$//')"current-weather/"$last_number"
    addr1="$(echo $address|sed 's/weather-forecast.*$//')"daily-weather-forecast/"$last_number"
    addr2="$addr1"?day=6
    
    kill -STOP $(pidof conky)
    killall wget
    
    wget --save-cookies $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/cookie -O $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond_raw $curr_addr
    wget --load-cookies $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/cookie -O $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days_raw $addr1
    wget --load-cookies $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/cookie -O $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/last_days_raw $addr2
    
    #Current Conditions - curr_cond file
    if [[ -s $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond_raw ]]; then
    
        egrep -i '"detail-tab-panel |>Today<\/a>|>Tonight<\/a>|>Early AM<\/a>|>Overnight<\/a>|>Mon<\/a>|>Tue<\/a>|>Wed<\/a>|>Thu<\/a>|>Fri<\/a>|>Sat<\/a>|>Sun<\/a>|icon i-|"cond"|"temp"|var d = '\''|var s = '\''|Humidity: |Pressure: |Cloud Cover: |UV Index: |Dew Point: |Precipitation(1 hr): |Visibility: |am<\/span>|pm<\/span>' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond_raw > $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond
        sed -i -e 's/^[ \t]*//g' -e 's/^.*icon i-//g' -e 's/^.*"cond">//g' -e 's/>Lo</\n/g' -e 's/RealFeel/\n/g' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond
        sed -i -e 's/^.*"#">//g' -e 's/^.*<strong class="temp"//g' -e 's/^>//g' -e 's/<span>&deg.*$//g' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond
        sed -i -e 's/<\/a>.*$//g' -e 's/\/span> //g' -e 's/var d = //g' -e 's/var s = //g' -e 's/"temp">/\n/g' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond
        sed -i -e 's/^.*"start">//g' -e 's/^.*"finish">//g' -e 's/<li>//g' -e 's/<strong>//g' -e 's/<<span.*$//g' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond
        sed -i -e 's/<\/span>//g' -e 's/<\/strong><\/li>//g' -e 's/ "><\/div>//g' -e 's/'\''//g' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond
        sed -i -e 's/"><\/div>//g' -e 's/^.*; //g' -e 's/&#.*$//g' -e 's/ i-alarm.*$//g' -e 's/;//g' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond
        sed -i -e 's/Humidity: //g' -e 's/Pressure: //g' -e 's/Cloud Cover: //g' -e 's/UV Index: //g' -e 's/Dew Point: //g' -e 's/Visibility: //g' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond
        sed -i -e 's/^.*detail-tab-panel //g' -e 's/">//g' -e 's/\r//g' -e 's/ *$//g' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond
        time=$(sed -n 1p $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond)
        if [[ $time == Tonight || $time == Overnight || $time == "Early AM" ]]; then
            sed -i 3a- $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond
    	fi
        time=$(sed -n 26p $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond)
    	image=$(sed -n 27p $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond)
        if [[ $time == day ]]; then
    	    sed -i 27s/$image/$(test_image_day $image)/ $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond
    	elif [[ $time == night ]]; then
    	    sed -i 27s/$image/$(test_image_night $image)/ $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond
    	fi
    
    fi
    
    
    #First 5days - first_days file 
    if [[ -s $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days_raw ]]; then
    
        egrep -i '>Today<|<p>[a-z]|>Mon<\/a>|>Tue<\/a>|>Wed<\/a>|>Thu<\/a>|>Fri<\/a>|>Sat<\/a>|>Sun<\/a>|icon i-|"cond"|"temp"|realfeel">RealFeel|realfeel">Precipitation' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days_raw > $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days
        sed -i -e 's/^[ \t]*//g' -e 's/^.*icon i-//g' -e 's/^.*"cond">//g' -e 's/>Lo</\n/g' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days
        sed -i -e 's/ "><\/div>//g' -e 's/"><\/div>//g' -e 's/^.*"temp">//g' -e 's/<span>&deg.*$//g' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days
        sed -i -e 's/<p>//g' -e 's/<\/p>//g' -e 's/^.*"#">//g' -e 's/\/span> //g' -e 's/^.*>Precipitation //g' -e 's/^.*; //g' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days
        sed -i -e 's/&#.*$//g' -e 's/<.*$//g' -e 's/ i-alarm.*$//g' -e 's/\r//g' -e 's/ *$//g' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days
    	sed -i -e 's/Today/TODAY/' -e 's/Mon/MONDAY/' -e 's/Tue/TUESDAY/' -e 's/Wed/WEDNESDAY/' -e 's/Thu/THURSDAY/' -e 's/Fri/FRIDAY/' -e 's/Sat/SATURDAY/' -e 's/Sun/SUNDAY/' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days
        time=$(sed -n 1p $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond)
        if [[ $time == Tonight || $time == Overnight || $time == "Early AM" ]]; then
            sed -i 2a- $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days
    	fi
    	L1=$(sed -n 1p $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days)
        if [[ $L1 == TODAY ]]; then
            sed -i 1d $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days
    	fi
        for (( i=6; i<=21; i+=5 ))
    	  do
    	      image_raw=$(sed -n "${i}"p $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days)
    	      sed -i ${i}s/$image_raw/$(test_image_day $image_raw)/ $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days
    	  done
        image_raw=$(sed -n 25p $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days)
    	sed -i 25s/$image_raw/$(test_image_day $image_raw)/ $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days
        image_raw=$(sed -n 30p $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days)
    	sed -i 30s/$image_raw/$(test_image_day $image_raw)/ $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days
    
    fi
    
    
    #Last 5days - last_days file 
    if [[ -s $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/last_days_raw ]]; then
    
        egrep -i '>Mon<\/a>|>Tue<\/a>|>Wed<\/a>|>Thu<\/a>|>Fri<\/a>|>Sat<\/a>|>Sun<\/a>|icon i-|"cond"|"temp"|realfeel">RealFeel|realfeel">Precipitation' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/last_days_raw > $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/last_days
        sed -i -e 's/^[ \t]*//g' -e 's/^.*icon i-//g' -e 's/^.*"cond">//g' -e 's/>Lo</\n/g' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/last_days
        sed -i -e 's/ "><\/div>//g' -e 's/"><\/div>//g' -e 's/^.*"temp">//g' -e 's/<span>&deg.*$//g' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/last_days
        sed -i -e 's/^.*"#">//g' -e 's/\/span> //g' -e 's/^.*>Precipitation //g' -e 's/^.*; //g' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/last_days
        sed -i -e 's/&#.*$//g' -e 's/<.*$//g' -e 's/ i-alarm.*$//g' -e 's/\r//g' -e 's/ *$//g' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/last_days
    	sed -i -e 's/Mon/MONDAY/' -e 's/Tue/TUESDAY/' -e 's/Wed/WEDNESDAY/' -e 's/Thu/THURSDAY/' -e 's/Fri/FRIDAY/' -e 's/Sat/SATURDAY/' -e 's/Sun/SUNDAY/' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/last_days
        for (( i=2; i<=22; i+=5 ))
    	  do
    	      image_raw=$(sed -n "${i}"p $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/last_days)
    	      sed -i ${i}s/$image_raw/$(test_image_day $image_raw)/ $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/last_days
    	  done
    
    fi
    
    #messages file
    sed -n 28p $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond | cut -c -20 > $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/messages
    sed -n 29p $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days | cut -c -20 >> $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/messages
    sed -n 34p $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days | cut -c -20 >> $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/messages
    for (( i=7; i<=22; i+=5 ))
      do
          sed -n ${i}p $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days | cut -c -20 >> $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/messages
      done
    for (( i=3; i<=23; i+=5 ))
      do
          sed -n ${i}p $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/last_days | cut -c -20 >> $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/messages
      done
    
    kill -CONT $(pidof conky)
    clock_rings-6.lua
    Code:
    --[[
    Clock Rings by Linux Mint (2011) reEdited by Richard Cain
    
    This script draws percentage meters as rings, and also draws clock hands if you want! It is fully customisable; all options are described in the script. This script is based off a combination of my clock.lua script and my rings.lua script.
    
    IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement on line 343 uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num>5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num>3; conversely if you update Conky every 0.5s, you should use update_num>10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.
    
    To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
        lua_load ~/scripts/clock_rings.lua
        lua_draw_hook_pre clock_rings
        
    Changelog:
    + v1.0 -- Original release (30.09.2009)
       v1.1p -- Jpope edit londonali1010 (05.10.2009)
    *v 2011mint -- reEdit despot77 (18.02.2011)
    *v 2012 -- reEdit richardcain2
    ]]
    
    settings_table = {
        {
            -- Edit this table to customise your rings.
            -- You can create more rings simply by adding more elements to settings_table.
            -- "name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
            name='time',
            -- "arg" is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, 'cpu0' would be the argument. If you would not use an argument in the Conky variable, use ''.
            arg='%I.%M',
            -- "max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
            max=12,
            -- "bg_colour" is the colour of the base ring.
            bg_colour=0xe0e0e0,
            -- "bg_alpha" is the alpha value of the base ring.
            bg_alpha=0.2,
            -- "fg_colour" is the colour of the indicator part of the ring.
            fg_colour=0xe0e0e0,
            -- "fg_alpha" is the alpha value of the indicator part of the ring.
            fg_alpha=0.8,
            -- "x" and "y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.
            x=100, y=150,
            -- "radius" is the radius of the ring.
            radius=50,
            -- "thickness" is the thickness of the ring, centred around the radius.
            thickness=5,
            -- "start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
            start_angle=0,
            -- "end_angle" is the ending angle of the ring, in degrees, clockwise from top. Value can be either positive or negative, but must be larger than start_angle.
            end_angle=360
        },
        {
            name='time',
            arg='%M',
            max=60,
            bg_colour=0xe0e0e0,
            bg_alpha=0.2,
            fg_colour=0xe0e0e0,
            fg_alpha=0.8,
            x=100, y=150,
            radius=66,
            thickness=5,
            start_angle=0,
            end_angle=360
        },
        {
            name='time',
            arg='%S',
            max=60,
            bg_colour=0xe0e0e0,
            bg_alpha=0.2,
            fg_colour=0xe0e0e0,
            fg_alpha=0.8,
            x=100, y=150,
            radius=70,
            thickness=1,
            start_angle=0,
            end_angle=360
        },
        {
            name='cpu',
            arg='cpu0',
            max=100,
            bg_colour=0xe0e0e0,
            bg_alpha=0.2,
            fg_colour=0xe0e0e0,
            fg_alpha=0.8,
            x=33, y=260,
            radius=25,
            thickness=2,
            start_angle=-90,
            end_angle=180
        },
        {
            name='memperc',
            arg='',
            max=100,
            bg_colour=0xe0e0e0,
            bg_alpha=0.2,
            fg_colour=0xe0e0e0,
            fg_alpha=0.8,
            x=100, y=260,
            radius=25,
            thickness=2,
            start_angle=-90,
            end_angle=180
        },
        {
            name='swapperc',
            arg='',
            max=100,
            bg_colour=0xe0e0e0,
            bg_alpha=0.2,
            fg_colour=0xe0e0e0,
            fg_alpha=0.8,
            x=167, y=260,
            radius=25,
            thickness=2,
            start_angle=-90,
            end_angle=180
        },
        {
            name='fs_used_perc',
            arg='/',
            max=100,
            bg_colour=0xe0e0e0,
            bg_alpha=0.2,
            fg_colour=0xe0e0e0,
            fg_alpha=0.8,
            x=67, y=315,
            radius=25,
            thickness=2,
            start_angle=-180,
            end_angle=90
        },
        {
            name='fs_used_perc',
            arg='/home',
            max=100,
            bg_colour=0xe0e0e0,
            bg_alpha=0.2,
            fg_colour=0xe0e0e0,
            fg_alpha=0.8,
            x=133, y=315,
            radius=25,
            thickness=2,
            start_angle=-180,
            end_angle=90
        },
        {
            name='downspeedf',
            arg='wlan0',
            max=1500,
            bg_colour=0xe0e0e0,
            bg_alpha=0.2,
            fg_colour=0xe0e0e0,
            fg_alpha=0.8,
            x=100, y=370,
            radius=25,
            thickness=2,
            start_angle=-180,
            end_angle=90
        },
        {
            name='upspeedf',
            arg='wlan0',
            max=100,
            bg_colour=0xe0e0e0,
            bg_alpha=0.2,
            fg_colour=0xe0e0e0,
            fg_alpha=0.8,
            x=100, y=370,
            radius=22,
            thickness=2,
            start_angle=-180,
            end_angle=90
        },
    }
    
    
    -- Use these settings to define the origin and extent of your clock.
    
    clock_r=65
    
    -- "clock_x" and "clock_y" are the coordinates of the centre of the clock, in pixels, from the top left of the Conky window.
    
    clock_x=100
    clock_y=150
    
    show_seconds=true
    
    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 draw_ring(cr,t,pt)
        local w,h=conky_window.width,conky_window.height
        
        local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
        local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']
    
        local angle_0=sa*(2*math.pi/360)-math.pi/2
        local angle_f=ea*(2*math.pi/360)-math.pi/2
        local t_arc=t*(angle_f-angle_0)
    
        -- Draw background ring
    
        cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
        cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
        cairo_set_line_width(cr,ring_w)
        cairo_stroke(cr)
        
        -- Draw indicator ring
    
        cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
        cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
        cairo_stroke(cr)        
    end
    
    function draw_clock_hands(cr,xc,yc)
        local secs,mins,hours,secs_arc,mins_arc,hours_arc
        local xh,yh,xm,ym,xs,ys
        
        secs=os.date("%S")    
        mins=os.date("%M")
        hours=os.date("%I")
            
        secs_arc=(2*math.pi/60)*secs
        mins_arc=(2*math.pi/60)*mins+secs_arc/60
        hours_arc=(2*math.pi/12)*hours+mins_arc/12
            
        -- Draw hour hand
        
    --    xh=xc+0.7*clock_r*math.sin(hours_arc)
    --    yh=yc-0.7*clock_r*math.cos(hours_arc)
    --    cairo_move_to(cr,xc,yc)
    --    cairo_line_to(cr,xh,yh)
        
    --    cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
    --    cairo_set_line_width(cr,5)
    --    cairo_set_source_rgba(cr,1.0,1.0,1.0,1.0)
    --    cairo_stroke(cr)
        
        -- Draw minute hand
        
    --    xm=xc+clock_r*math.sin(mins_arc)
    --    ym=yc-clock_r*math.cos(mins_arc)
    --    cairo_move_to(cr,xc,yc)
    --    cairo_line_to(cr,xm,ym)
        
    --    cairo_set_line_width(cr,3)
    --    cairo_stroke(cr)
        
        -- Draw seconds hand
        
        if show_seconds then
    --        xs=xc+clock_r*math.sin(secs_arc)
    --        ys=yc-clock_r*math.cos(secs_arc)
    --        cairo_move_to(cr,xc,yc)
    --        cairo_line_to(cr,xs,ys)
        
    --        cairo_set_line_width(cr,1)
    --        cairo_stroke(cr)
        end
    end
    
    function conky_clock_rings()
        local function setup_rings(cr,pt)
            local str=''
            local value=0
            
            str=string.format('${%s %s}',pt['name'],pt['arg'])
            str=conky_parse(str)
            
            value=tonumber(str)
            if pt['name']=='hddtemp' then
            	if value==nil then value=tmp_HDDTemp else tmp_HDDTemp=value end
            end
            pct=value/pt['max']
            
            draw_ring(cr,pct,pt)
        end
        
        -- Check that Conky has been running for at least 5s
    
        if conky_window==nil then return end
        local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
        
        local cr=cairo_create(cs)    
        
        local updates=conky_parse('${updates}')
        update_num=tonumber(updates)
        
        if update_num>5 then
            for i in pairs(settings_table) do
                setup_rings(cr,settings_table[i])
            end
        end
        
        draw_clock_hands(cr,clock_x,clock_y)
    end
    sunrise
    Code:
    #!/bin/bash
    #
    #   This is a script to convert sunrise times from 12hr to 24hr format.
    #
    X=`sed -n '39p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond | cut -c 1,3,4`
    echo "0$X"
    #
    exit 0
    and finally:
    sunset
    Code:
    #!/bin/bash
    #
    #   This is a script to convert sunset times from 12hr to 24hr format.
    #
    V=12
    X=`sed -n '40p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond | cut -c 1`
    Y=`sed -n '40p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond | cut -c 3,4`
    Z=$(($X + $V))
    echo "$Z$Y"
    #
    exit 0
    I just can't work out why the curr_cond file generated by acc_inf_cwfont contains the line:
    Code:
    2 psut
    when there should only be one letter there.

  9. #19609
    Join Date
    Apr 2007
    Beans
    195

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by RichardCain View Post
    Well, here goes:

    .conkyrc
    Code:
    # Conky settings #
    background yes
    update_interval 1
    
    cpu_avg_samples 2
    net_avg_samples 2
    
    override_utf8_locale yes
    
    double_buffer yes
    no_buffers yes
    
    text_buffer_size 2048
    #imlib_cache_size 0
    
    temperature_unit celsius
    
    # Window specifications #
    
    own_window yes
    own_window_argb_visual yes
    own_window_transparent yes
    own_window_hints undecorated,sticky,skip_taskbar,skip_pager,below
    
    border_inner_margin 0
    border_outer_margin 0
    
    minimum_size 200 2500
    maximum_width 200
    #max_text_width 35
    
    alignment top_right
    gap_x 0
    gap_y 0
    
    # Graphics settings #
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders no
    
    # Text settings #
    use_xft yes
    xftfont arial:size=8
    xftalpha 0.5
    
    uppercase no
    
    temperature_unit celsius
    
    
    default_color e5e5e5
    
    # Lua Load  #
    lua_load ~/.conky/scripts/clock_rings-6.lua
    lua_draw_hook_pre clock_rings
    #lua_load ~/.conky/scripts/v9000/v9000.lua
    #lua_draw_hook_pre weather
    #lua_load ~/.conky/scripts/v9000/weather_testing.lua
    
    TEXT
    ${voffset 8}${font arial:size=16}${time %A}${font}${voffset -8}${alignr 50}${font arial:size=38}${time %e}${font}
    ${voffset -30}${font arial:size=18}${time %b}${font}${voffset -3} ${font arial:size=20}${time %Y}${font}${hr}
    #   LOAD WEATHER   #
    ${execi 500 bash $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/acc_int_cwfont}
    
    ${if_match ${time %H%M}<=${exec bash $HOME/.conky/scripts/sunrise}}${image ~/.conky/moon.png -p 70,120 -s 60x60}  ${else}${if_match ${time %H%M}<=${exec bash $HOME/.conky/scripts/sunset}}  ${image ~/.conky/sun.png -p 70,120 -s 60x60}  ${else}${if_match ${time %H%M}>${exec bash $HOME/.conky/scripts/sunset}}${image ~/.conky/moon.png -p 70,120 -s 60x60}${else}
    ${endif}${endif}${endif}
    #
    #   CLOCK MARKS   #
    #
    ${voffset -23}${goto 99}${font arial:size=10}I${font}
    ${voffset 34}${goto 37}${font arial:size=12}_${goto 154}_${font}
    ${voffset 49}${goto 99}${font arial:size=10}I${font}
    #
    #   RING INFO  #
    #
    ${voffset 35}${font arial:size=7}${goto 28}${cpu cpu0}${goto 95}${memperc}${goto 162}${swapperc}
    ${font arial:size=8}CPU${goto 67}MEM${goto 133}SWP
    ${voffset 30}${font arial:size=7}${goto 62}${fs_used_perc /}${goto 128}${fs_used_perc /home}
    ${font arial:size=8}${goto 85}/${goto 150}~/
    ${goto 102}${voffset 38}${font arial:size=7}${upspeed wlan0}
    ${goto 102}${downspeed wlan0}
    ${font arial:size=8}${goto 102}${voffset -3}NET
    #
    #   SYSTEM INFO   #
    #
    ${voffset -12}${alignr} Run ${running_processes}
    Temps: ${alignr} Proc ${processes}
    CPU: ${exec sensors | grep -n 'temp1' | cut -c 18,19,22,23,24}${alignr} Up ${uptime_short}
    HDD: ${execi 10 hddtemp /dev/sda | awk '{print $4}'}${alignr}${kernel}
    BAT:  ${exec acpi -t | cut -c 16,17}°C${alignr}${pre_exec cat /etc/issue.net}
    ${voffset -5}$hr
    #
    #   GMAIL      #
    #
    ${voffset -18}${font Martin Vogel\'s Symbols:size=25}B$font ${voffset -7}${font arial:size=10}You have ${texeci 60 perl ~/.conky/scripts/gmail.pl n} new email(s)
    ${voffset -5}$hr
    #
    #   WEATHER   #
    #
    ${alignc}${font arial:size=12}Surat Thani
    
    ${goto 10}${font arial:size=10}N: ${execpi 600 sed -n '5p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond}°${goto 150}H: ${execpi 600 sed -n '9p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond}°
    ${goto 150}L: ${execpi 600 sed -n '10p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond}°
    ${goto 60}${voffset -45}${font conkyweather:size=40}${execpi 600 sed -n '2p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond}${font}
    ${font arial:size=10}${alignc}${execpi 600 sed -n '3p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond}${font}
    ${font arial:size=8}Sunrise: ${exec bash $HOME/.conky/scripts/sunrise}  ${alignr}Sunset: ${exec bash $HOME/.conky/scripts/sunset}
    ${goto 17}${font conkyweather:size=20}${execpi 600 sed -n '11p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days}\
    ${goto 88}${execpi 600 sed -n '16p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days}\
    ${goto 157}${execpi 600 sed -n '21p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days}${font}
    ${font arial:size=8}\
    ${goto 15}${execpi 600 sed -n '13p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days}°/${execpi 600 sed -n '14p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days}°\
    ${goto 85}${execpi 600 sed -n '18p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days}°/${execpi 600 sed -n '19p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days}°\
    ${goto 155}${execpi 600 sed -n '23p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days}°/${execpi 600 sed -n '24p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days}°
    ${voffset -4}${goto 20}${voffset 3}${execpi 600 sed -n '10p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days | cut -c 1,2,3}\
    ${goto 90}${execpi 600 sed -n '15p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days | cut -c 1,2,3}\
    ${goto 160}${execpi 600 sed -n '20p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days | cut -c 1,2,3}
    ${voffset -4}$hr
    #
    #   WORLD TIMES   #
    #
    Bangkok:${goto 60}${tztime Asia/Bangkok  %H:%M} ${alignr}Edinburgh: ${tztime Europe/London  %H:%M}
    Dubai:${goto 60}${tztime Asia/Dubai  %H:%M} ${alignr}New York: ${tztime America/New_York  %H:%M}
    ${voffset -4}$hr
    #
    ${execi 150 fortune}
    acc_inf_cwfont:
    Code:
    #!/bin/bash
    
    #function: test_image_day
    test_image_day () {
        case $1 in
             su)
               echo a
             ;;
             msu)
               echo b 
             ;;
             psu)
               echo c
             ;;
             ic)
               echo c
             ;;
             h)
               echo c
             ;;
             mc)
               echo d
             ;;
             c)
               echo e
             ;;
             d)
               echo e
             ;;
             f)
               echo 0
             ;;
             s)
               echo h
             ;;
             mcs)
               echo g
             ;;
             psus)
               echo g
             ;;
             t)
               echo l
             ;;
             mct)
               echo k
             ;;
             psut)
               echo k
             ;;
             r)
               echo i
             ;;
             fl)
               echo p
             ;;
             mcfl)
               echo o
             ;;
             psfl)
               echo o
             ;;
             sn)
               echo r
             ;;
             mcsn)
               echo o
             ;;
             i)
               echo E
             ;;
             sl)
               echo u
             ;;
             fr)
               echo i
             ;;
             rsn)
               echo v
             ;;
             w)
               echo 6
             ;;
             ho)
               echo 5
             ;;
             co)
               echo E
             ;;
             cl)
               echo A
             ;;
             mcl)
               echo B
             ;;
             pc)
               echo C
             ;;
             pcs)
               echo G
             ;;
             pct)
               echo K
             ;;
            esac
    } 
    
    #function: test_image_night
    test_image_night () {
        case $1 in
    		 su)
               echo a
             ;;
             msu)
               echo b
             ;;
             psu)
               echo c
             ;;
             c)
               echo f
             ;;
             d)
               echo f
             ;;
             f)
               echo f
             ;;
             s)
               echo h
             ;;
             psus)
               echo g
             ;;
             t)
               echo l
             ;;
             psut)
               echo k
             ;;
             r)
               echo i
             ;;
             fl)
               echo p
             ;;
             psfl)
               echo o
             ;;
             sn)
               echo r
             ;;
             i)
               echo E
             ;;
             sl)
               echo u
             ;;
             fr)
               echo i
             ;;
             rsn)
               echo v
             ;;
             ho)
               echo 5
             ;;
             co)
               echo E
             ;;
             cl)
               echo A
             ;;
             w)
               echo 6
             ;;
             mcl)
               echo B
             ;;
             pc)
               echo C
             ;;
             ic)
               echo B
             ;;
             h)
               echo B
             ;;
             mc)
               echo C
             ;;
             pcs)
               echo G
             ;;
             mcs)
               echo G
             ;;
             pct)
               echo K
             ;;
             mct)
               echo K
             ;;
             mcfl)
               echo O
             ;;
             mcsn)
               echo O
             ;;
            esac
    }
    
    
    #put your Accuweather address here
    address="http://www.accuweather.com/en/th/surat-thani/320998/weather-forecast/320998"
    
    loc_id=$(echo $address|sed 's/\/weather-forecast.*$//'|sed 's/^.*\///')
    last_number=$(echo $address|sed 's/^.*\///')
    
    curr_addr="$(echo $address|sed 's/weather-forecast.*$//')"current-weather/"$last_number"
    addr1="$(echo $address|sed 's/weather-forecast.*$//')"daily-weather-forecast/"$last_number"
    addr2="$addr1"?day=6
    
    kill -STOP $(pidof conky)
    killall wget
    
    wget --save-cookies $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/cookie -O $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond_raw $curr_addr
    wget --load-cookies $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/cookie -O $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days_raw $addr1
    wget --load-cookies $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/cookie -O $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/last_days_raw $addr2
    
    #Current Conditions - curr_cond file
    if [[ -s $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond_raw ]]; then
    
        egrep -i '"detail-tab-panel |>Today<\/a>|>Tonight<\/a>|>Early AM<\/a>|>Overnight<\/a>|>Mon<\/a>|>Tue<\/a>|>Wed<\/a>|>Thu<\/a>|>Fri<\/a>|>Sat<\/a>|>Sun<\/a>|icon i-|"cond"|"temp"|var d = '\''|var s = '\''|Humidity: |Pressure: |Cloud Cover: |UV Index: |Dew Point: |Precipitation(1 hr): |Visibility: |am<\/span>|pm<\/span>' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond_raw > $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond
        sed -i -e 's/^[ \t]*//g' -e 's/^.*icon i-//g' -e 's/^.*"cond">//g' -e 's/>Lo</\n/g' -e 's/RealFeel/\n/g' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond
        sed -i -e 's/^.*"#">//g' -e 's/^.*<strong class="temp"//g' -e 's/^>//g' -e 's/<span>&deg.*$//g' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond
        sed -i -e 's/<\/a>.*$//g' -e 's/\/span> //g' -e 's/var d = //g' -e 's/var s = //g' -e 's/"temp">/\n/g' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond
        sed -i -e 's/^.*"start">//g' -e 's/^.*"finish">//g' -e 's/<li>//g' -e 's/<strong>//g' -e 's/<<span.*$//g' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond
        sed -i -e 's/<\/span>//g' -e 's/<\/strong><\/li>//g' -e 's/ "><\/div>//g' -e 's/'\''//g' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond
        sed -i -e 's/"><\/div>//g' -e 's/^.*; //g' -e 's/&#.*$//g' -e 's/ i-alarm.*$//g' -e 's/;//g' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond
        sed -i -e 's/Humidity: //g' -e 's/Pressure: //g' -e 's/Cloud Cover: //g' -e 's/UV Index: //g' -e 's/Dew Point: //g' -e 's/Visibility: //g' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond
        sed -i -e 's/^.*detail-tab-panel //g' -e 's/">//g' -e 's/\r//g' -e 's/ *$//g' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond
        time=$(sed -n 1p $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond)
        if [[ $time == Tonight || $time == Overnight || $time == "Early AM" ]]; then
            sed -i 3a- $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond
    	fi
        time=$(sed -n 26p $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond)
    	image=$(sed -n 27p $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond)
        if [[ $time == day ]]; then
    	    sed -i 27s/$image/$(test_image_day $image)/ $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond
    	elif [[ $time == night ]]; then
    	    sed -i 27s/$image/$(test_image_night $image)/ $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond
    	fi
    
    fi
    
    
    #First 5days - first_days file 
    if [[ -s $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days_raw ]]; then
    
        egrep -i '>Today<|<p>[a-z]|>Mon<\/a>|>Tue<\/a>|>Wed<\/a>|>Thu<\/a>|>Fri<\/a>|>Sat<\/a>|>Sun<\/a>|icon i-|"cond"|"temp"|realfeel">RealFeel|realfeel">Precipitation' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days_raw > $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days
        sed -i -e 's/^[ \t]*//g' -e 's/^.*icon i-//g' -e 's/^.*"cond">//g' -e 's/>Lo</\n/g' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days
        sed -i -e 's/ "><\/div>//g' -e 's/"><\/div>//g' -e 's/^.*"temp">//g' -e 's/<span>&deg.*$//g' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days
        sed -i -e 's/<p>//g' -e 's/<\/p>//g' -e 's/^.*"#">//g' -e 's/\/span> //g' -e 's/^.*>Precipitation //g' -e 's/^.*; //g' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days
        sed -i -e 's/&#.*$//g' -e 's/<.*$//g' -e 's/ i-alarm.*$//g' -e 's/\r//g' -e 's/ *$//g' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days
    	sed -i -e 's/Today/TODAY/' -e 's/Mon/MONDAY/' -e 's/Tue/TUESDAY/' -e 's/Wed/WEDNESDAY/' -e 's/Thu/THURSDAY/' -e 's/Fri/FRIDAY/' -e 's/Sat/SATURDAY/' -e 's/Sun/SUNDAY/' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days
        time=$(sed -n 1p $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond)
        if [[ $time == Tonight || $time == Overnight || $time == "Early AM" ]]; then
            sed -i 2a- $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days
    	fi
    	L1=$(sed -n 1p $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days)
        if [[ $L1 == TODAY ]]; then
            sed -i 1d $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days
    	fi
        for (( i=6; i<=21; i+=5 ))
    	  do
    	      image_raw=$(sed -n "${i}"p $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days)
    	      sed -i ${i}s/$image_raw/$(test_image_day $image_raw)/ $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days
    	  done
        image_raw=$(sed -n 25p $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days)
    	sed -i 25s/$image_raw/$(test_image_day $image_raw)/ $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days
        image_raw=$(sed -n 30p $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days)
    	sed -i 30s/$image_raw/$(test_image_day $image_raw)/ $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days
    
    fi
    
    
    #Last 5days - last_days file 
    if [[ -s $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/last_days_raw ]]; then
    
        egrep -i '>Mon<\/a>|>Tue<\/a>|>Wed<\/a>|>Thu<\/a>|>Fri<\/a>|>Sat<\/a>|>Sun<\/a>|icon i-|"cond"|"temp"|realfeel">RealFeel|realfeel">Precipitation' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/last_days_raw > $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/last_days
        sed -i -e 's/^[ \t]*//g' -e 's/^.*icon i-//g' -e 's/^.*"cond">//g' -e 's/>Lo</\n/g' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/last_days
        sed -i -e 's/ "><\/div>//g' -e 's/"><\/div>//g' -e 's/^.*"temp">//g' -e 's/<span>&deg.*$//g' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/last_days
        sed -i -e 's/^.*"#">//g' -e 's/\/span> //g' -e 's/^.*>Precipitation //g' -e 's/^.*; //g' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/last_days
        sed -i -e 's/&#.*$//g' -e 's/<.*$//g' -e 's/ i-alarm.*$//g' -e 's/\r//g' -e 's/ *$//g' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/last_days
    	sed -i -e 's/Mon/MONDAY/' -e 's/Tue/TUESDAY/' -e 's/Wed/WEDNESDAY/' -e 's/Thu/THURSDAY/' -e 's/Fri/FRIDAY/' -e 's/Sat/SATURDAY/' -e 's/Sun/SUNDAY/' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/last_days
        for (( i=2; i<=22; i+=5 ))
    	  do
    	      image_raw=$(sed -n "${i}"p $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/last_days)
    	      sed -i ${i}s/$image_raw/$(test_image_day $image_raw)/ $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/last_days
    	  done
    
    fi
    
    #messages file
    sed -n 28p $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond | cut -c -20 > $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/messages
    sed -n 29p $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days | cut -c -20 >> $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/messages
    sed -n 34p $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days | cut -c -20 >> $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/messages
    for (( i=7; i<=22; i+=5 ))
      do
          sed -n ${i}p $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/first_days | cut -c -20 >> $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/messages
      done
    for (( i=3; i<=23; i+=5 ))
      do
          sed -n ${i}p $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/last_days | cut -c -20 >> $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/messages
      done
    
    kill -CONT $(pidof conky)
    clock_rings-6.lua
    Code:
    --[[
    Clock Rings by Linux Mint (2011) reEdited by Richard Cain
    
    This script draws percentage meters as rings, and also draws clock hands if you want! It is fully customisable; all options are described in the script. This script is based off a combination of my clock.lua script and my rings.lua script.
    
    IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement on line 343 uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num>5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num>3; conversely if you update Conky every 0.5s, you should use update_num>10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.
    
    To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
        lua_load ~/scripts/clock_rings.lua
        lua_draw_hook_pre clock_rings
        
    Changelog:
    + v1.0 -- Original release (30.09.2009)
       v1.1p -- Jpope edit londonali1010 (05.10.2009)
    *v 2011mint -- reEdit despot77 (18.02.2011)
    *v 2012 -- reEdit richardcain2
    ]]
    
    settings_table = {
        {
            -- Edit this table to customise your rings.
            -- You can create more rings simply by adding more elements to settings_table.
            -- "name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
            name='time',
            -- "arg" is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, 'cpu0' would be the argument. If you would not use an argument in the Conky variable, use ''.
            arg='%I.%M',
            -- "max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
            max=12,
            -- "bg_colour" is the colour of the base ring.
            bg_colour=0xe0e0e0,
            -- "bg_alpha" is the alpha value of the base ring.
            bg_alpha=0.2,
            -- "fg_colour" is the colour of the indicator part of the ring.
            fg_colour=0xe0e0e0,
            -- "fg_alpha" is the alpha value of the indicator part of the ring.
            fg_alpha=0.8,
            -- "x" and "y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.
            x=100, y=150,
            -- "radius" is the radius of the ring.
            radius=50,
            -- "thickness" is the thickness of the ring, centred around the radius.
            thickness=5,
            -- "start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
            start_angle=0,
            -- "end_angle" is the ending angle of the ring, in degrees, clockwise from top. Value can be either positive or negative, but must be larger than start_angle.
            end_angle=360
        },
        {
            name='time',
            arg='%M',
            max=60,
            bg_colour=0xe0e0e0,
            bg_alpha=0.2,
            fg_colour=0xe0e0e0,
            fg_alpha=0.8,
            x=100, y=150,
            radius=66,
            thickness=5,
            start_angle=0,
            end_angle=360
        },
        {
            name='time',
            arg='%S',
            max=60,
            bg_colour=0xe0e0e0,
            bg_alpha=0.2,
            fg_colour=0xe0e0e0,
            fg_alpha=0.8,
            x=100, y=150,
            radius=70,
            thickness=1,
            start_angle=0,
            end_angle=360
        },
        {
            name='cpu',
            arg='cpu0',
            max=100,
            bg_colour=0xe0e0e0,
            bg_alpha=0.2,
            fg_colour=0xe0e0e0,
            fg_alpha=0.8,
            x=33, y=260,
            radius=25,
            thickness=2,
            start_angle=-90,
            end_angle=180
        },
        {
            name='memperc',
            arg='',
            max=100,
            bg_colour=0xe0e0e0,
            bg_alpha=0.2,
            fg_colour=0xe0e0e0,
            fg_alpha=0.8,
            x=100, y=260,
            radius=25,
            thickness=2,
            start_angle=-90,
            end_angle=180
        },
        {
            name='swapperc',
            arg='',
            max=100,
            bg_colour=0xe0e0e0,
            bg_alpha=0.2,
            fg_colour=0xe0e0e0,
            fg_alpha=0.8,
            x=167, y=260,
            radius=25,
            thickness=2,
            start_angle=-90,
            end_angle=180
        },
        {
            name='fs_used_perc',
            arg='/',
            max=100,
            bg_colour=0xe0e0e0,
            bg_alpha=0.2,
            fg_colour=0xe0e0e0,
            fg_alpha=0.8,
            x=67, y=315,
            radius=25,
            thickness=2,
            start_angle=-180,
            end_angle=90
        },
        {
            name='fs_used_perc',
            arg='/home',
            max=100,
            bg_colour=0xe0e0e0,
            bg_alpha=0.2,
            fg_colour=0xe0e0e0,
            fg_alpha=0.8,
            x=133, y=315,
            radius=25,
            thickness=2,
            start_angle=-180,
            end_angle=90
        },
        {
            name='downspeedf',
            arg='wlan0',
            max=1500,
            bg_colour=0xe0e0e0,
            bg_alpha=0.2,
            fg_colour=0xe0e0e0,
            fg_alpha=0.8,
            x=100, y=370,
            radius=25,
            thickness=2,
            start_angle=-180,
            end_angle=90
        },
        {
            name='upspeedf',
            arg='wlan0',
            max=100,
            bg_colour=0xe0e0e0,
            bg_alpha=0.2,
            fg_colour=0xe0e0e0,
            fg_alpha=0.8,
            x=100, y=370,
            radius=22,
            thickness=2,
            start_angle=-180,
            end_angle=90
        },
    }
    
    
    -- Use these settings to define the origin and extent of your clock.
    
    clock_r=65
    
    -- "clock_x" and "clock_y" are the coordinates of the centre of the clock, in pixels, from the top left of the Conky window.
    
    clock_x=100
    clock_y=150
    
    show_seconds=true
    
    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 draw_ring(cr,t,pt)
        local w,h=conky_window.width,conky_window.height
        
        local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
        local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']
    
        local angle_0=sa*(2*math.pi/360)-math.pi/2
        local angle_f=ea*(2*math.pi/360)-math.pi/2
        local t_arc=t*(angle_f-angle_0)
    
        -- Draw background ring
    
        cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
        cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
        cairo_set_line_width(cr,ring_w)
        cairo_stroke(cr)
        
        -- Draw indicator ring
    
        cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
        cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
        cairo_stroke(cr)        
    end
    
    function draw_clock_hands(cr,xc,yc)
        local secs,mins,hours,secs_arc,mins_arc,hours_arc
        local xh,yh,xm,ym,xs,ys
        
        secs=os.date("%S")    
        mins=os.date("%M")
        hours=os.date("%I")
            
        secs_arc=(2*math.pi/60)*secs
        mins_arc=(2*math.pi/60)*mins+secs_arc/60
        hours_arc=(2*math.pi/12)*hours+mins_arc/12
            
        -- Draw hour hand
        
    --    xh=xc+0.7*clock_r*math.sin(hours_arc)
    --    yh=yc-0.7*clock_r*math.cos(hours_arc)
    --    cairo_move_to(cr,xc,yc)
    --    cairo_line_to(cr,xh,yh)
        
    --    cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
    --    cairo_set_line_width(cr,5)
    --    cairo_set_source_rgba(cr,1.0,1.0,1.0,1.0)
    --    cairo_stroke(cr)
        
        -- Draw minute hand
        
    --    xm=xc+clock_r*math.sin(mins_arc)
    --    ym=yc-clock_r*math.cos(mins_arc)
    --    cairo_move_to(cr,xc,yc)
    --    cairo_line_to(cr,xm,ym)
        
    --    cairo_set_line_width(cr,3)
    --    cairo_stroke(cr)
        
        -- Draw seconds hand
        
        if show_seconds then
    --        xs=xc+clock_r*math.sin(secs_arc)
    --        ys=yc-clock_r*math.cos(secs_arc)
    --        cairo_move_to(cr,xc,yc)
    --        cairo_line_to(cr,xs,ys)
        
    --        cairo_set_line_width(cr,1)
    --        cairo_stroke(cr)
        end
    end
    
    function conky_clock_rings()
        local function setup_rings(cr,pt)
            local str=''
            local value=0
            
            str=string.format('${%s %s}',pt['name'],pt['arg'])
            str=conky_parse(str)
            
            value=tonumber(str)
            if pt['name']=='hddtemp' then
            	if value==nil then value=tmp_HDDTemp else tmp_HDDTemp=value end
            end
            pct=value/pt['max']
            
            draw_ring(cr,pct,pt)
        end
        
        -- Check that Conky has been running for at least 5s
    
        if conky_window==nil then return end
        local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
        
        local cr=cairo_create(cs)    
        
        local updates=conky_parse('${updates}')
        update_num=tonumber(updates)
        
        if update_num>5 then
            for i in pairs(settings_table) do
                setup_rings(cr,settings_table[i])
            end
        end
        
        draw_clock_hands(cr,clock_x,clock_y)
    end
    sunrise
    Code:
    #!/bin/bash
    #
    #   This is a script to convert sunrise times from 12hr to 24hr format.
    #
    X=`sed -n '39p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond | cut -c 1,3,4`
    echo "0$X"
    #
    exit 0
    and finally:
    sunset
    Code:
    #!/bin/bash
    #
    #   This is a script to convert sunset times from 12hr to 24hr format.
    #
    V=12
    X=`sed -n '40p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond | cut -c 1`
    Y=`sed -n '40p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond | cut -c 3,4`
    Z=$(($X + $V))
    echo "$Z$Y"
    #
    exit 0
    I just can't work out why the curr_cond file generated by acc_inf_cwfont contains the line:
    Code:
    2 psut
    when there should only be one letter there.
    I don't know either. For now though, try this in place of that particular execi call:

    Code:
    ${execpi 600 sed -n '2p' $HOME/.conky/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond | cut -c 1}
    For now anyways. Until you can have Teo look into it further.
    Last edited by 42dorian; April 23rd, 2012 at 07:15 AM.

  10. #19610
    Join Date
    Jun 2005
    Location
    Buenavista, ADN, Phils
    Beans
    285

    Re: Post your .conkyrc files w/ screenshots

    Soon as I get 1204 going I am gonna have to start working with LUA and Cairo.. You guys Conkys are making mine look weak.. LOL

    Good job everyone..
    Mac Mini: OSX 10.9 Mavericks, i7-3720QM 2.6Ghz, 16GB RAM, 1.25TB Fusion Array, Intel HD4000 iGPU
    Photo Blog on Youtube: www.youtube.com/user/ExodistPhotoBlog
    Linux User: 380654

Page 1961 of 2348 FirstFirst ... 961146118611911195119591960196119621963197120112061 ... 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
  •