Page 1691 of 2316 FirstFirst ... 6911191159116411681168916901691169216931701174117912191 ... LastLast
Results 16,901 to 16,910 of 23156

Thread: Post your .conkyrc files w/ screenshots

  1. #16901
    Join Date
    Oct 2009
    Location
    Under a rock
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    just took a quick look at execbar and execgraph

    execbar works as expected

    Code:
    ${execbar  df -h | grep 'F801-488C' | awk '{print $5}'}
    in fact you dont even have to strip the % symbol off, it only uses the numbers

    execgraph on the other hand... you would think the line used for the bar should use for the graph like so
    Code:
    ${execgraph  df -h | grep 'F801-488C' | awk '{print $5}'}
    BUT its doesnt

    for some reason
    this reason most likely
    "All the exec-related vars use /bin/sh which is on many systems a very
    limited shell, so if you want to use bash-stuff, put it in a shellscript
    and use that shellscript with the $exec's" from http://sourceforge.net/tracker/index...75&atid=757308

    so i made a simple bash script

    Code:
    #!/bin/bash
    number=$( df -h | grep 'F801-488C' | awk '{print $5}')
    echo $number
    did this in conkyrc
    Code:
    ${execgraph /home/mcdowall/lua/testgraph.sh}
    and now it works
    Last edited by mrpeachy; April 1st, 2011 at 10:02 PM.

  2. #16902
    Join Date
    Apr 2007
    Beans
    195

    Re: Post your .conkyrc files w/ screenshots

    Code:
    Conky: llua_do_call: function conky_draw_ring execution failed: attempt to call a nil value
    These phantom error fairies keep popping up. For everything I know about lua, it's telling me there is no reason for them.

    Killed the execi bit, just using exec now. wtimer from the bandwidth script to time it every 30 seconds?

  3. #16903
    Join Date
    Oct 2009
    Location
    Under a rock
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    @ 42 dorian... the other thing to watch out for is quote markse

    change your first lines of code to this
    Code:
    mounted=conky_parse("${if_match ${exec df -h | grep -c 'SANSA CLIPP'} == 1}1${else}0${endif}")
    if tonumber(mounted)==1 then
    co=tonumber(conky_parse("${execi 30 df -h | grep 'SANSA CLIPP' | awk '{print $5}' | sed 's/%//'}"))
    yes, that timer method is how you get an execi like interval in the lua

    with the quote marks (using gedit) everything quoted turns pink
    you want
    conky_parse("everything here pink")

    actually, seeing as we are on the subject there is a lua native way of running commands... dont know if it is any lighter than the conky parse method, but i thought i would mention it...

    for the above you could do
    Code:
    local f = io.popen("df -h | grep 'SANSA CLIPP' | awk '{print $5}' | sed 's/%//'") -- runs command
    mount_perc=tonumber(f:read("*a")) -- read output of command
    f:close()
    Last edited by mrpeachy; April 1st, 2011 at 09:48 PM.

  4. #16904
    Join Date
    Apr 2007
    Beans
    195

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by mrpeachy View Post
    @ 42 dorian... the other thing to watch out for is quote markse

    change your first lines of code to this
    Code:
    mounted=conky_parse("${if_match ${exec df -h | grep -c 'SANSA CLIPP'} == 1}1${else}0${endif}")
    if tonumber(mounted)==1 then
    co=tonumber(conky_parse("${execi 30 df -h | grep 'SANSA CLIPP' | awk '{print $5}' | sed 's/%//'}"))
    yes, that timer method is how you get an execi like interval in the lua

    with the quote marks (using gedit) everything quoted turns pink
    you want
    conky_parse("everything here pink")

    actually, seeing as we are on the subject there is a lua native way of running commands... dont know if it is any lighter than the conky parse method, but i thought i would mention it...

    for the above you could do
    Code:
    local f = io.popen("df -h | grep 'SANSA CLIPP' | awk '{print $5}' | sed 's/%//'") -- runs command
    mount_perc=tonumber(f:read("*a")) -- read output of command
    f:close()
    First Thing's First... ALL WORKING NOW! Thank you. Give me a few minutes and I'll post the results in a data dump. Then we'll talk implementing this other method of grabbing the data for the ring.

  5. #16905
    Join Date
    Apr 2007
    Beans
    195

    Re: Post your .conkyrc files w/ screenshots

    Fresh Backup post. New MP3 player section!

    .conkyrc.main Now accommodates MP3 player when plugged in!
    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 2048
    max_user_text 16384
    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 1024
    imlib_cache_size 0
    
    #-----Layout Settings
    alignment top_right
    gap_x 60
    gap_y 25
    maximum_width 600
    minimum_size 360 20
    use_spacer right
    
    #-----Colors
    default_color 808080          #Grey Default
    default_outline_color ffffff  #White Outlines
    default_shade_color c0c0c0    #Silver Shade
    color0 ff0000									#Red
    color1 ffff00									#Yellow
    color2 ffffff									#White
    color3 808080									#Grey
    color4 00ff00									#Green
    color5 c0c0c0									#Silver
    color6 ffd700									#Gold
    color7 00ffff									#Pale?
    color8 0000FF									#Blue
    color9 404040									#DarkGrey
    
    #-----Lua To Load
    lua_load /home/dorian/Conky/Scripts/ringtest.lua
    lua_draw_hook_pre draw_ring
    
    TEXT#-----System Header, Conky Version(Only When Needed), and Xubuntu Graphic
    ${font}${color1}Xubuntu 10.10 (Maverick Meerkat)
    ${sysname} ${kernel} on ${machine}
    ${color2}Uptime:${goto 100}${uptime}
    #${conky_version}
    #-----LEDs (Indicators)
    ${image ~/Conky/Icons/XubuntuLogoForConky.png -p 250,0 -s 80x80}${if_match "${exec xset q | grep LED | awk '{ print $10 }'}" < "00000002"}${image ~/Conky/Icons/NUMLEDW.png -p 100,57 -s 20x20}${else}${image ~/Conky/Icons/NUMLEDY.png -p 100,57 -s 20x20}${endif}${if_match "${exec xset q | grep LED | awk '{ print $10 }'}" < "00000003"}${image ~/Conky/Icons/CAPSLEDW.png -p 120,57 -s 20x20}${else}${image ~/Conky/Icons/CAPSLEDY.png -p 120,57 -s 20x20}${endif}
    ${if_match ${execi 60 ink -p usb | grep 'Photoblack' | awk '{print $2}' | sed 's/%//'}<50}${image ~/Conky/Icons/LowInkBlackLED.png -p 145,57 -s 20x20}${else}${if_match ${execi 60 ink -p usb | grep 'Photoblack' | awk '{print $2}' | sed 's/%//'}>=50}${if_match ${execi 60 ink -p usb | grep 'Photoblack' | awk '{print $2}' | sed 's/%//'}<60}${image ~/Conky/Icons/HalfInkBlackLED.png -p 145,57 -s 20x20}${else}${image ~/Conky/Icons/NormInkBlackLED.png -p 145,57 -s 20x20}${endif}${endif}${endif}${if_match ${execi 60 ink -p usb | grep 'Yellow' | awk '{print $2}' | sed 's/%//'}<50}${image ~/Conky/Icons/LowInkYellowLED.png -p 170,57 -s 20x20}${else}${if_match ${execi 60 ink -p usb | grep 'Yellow' | awk '{print $2}' | sed 's/%//'}>=50}${if_match ${execi 60 ink -p usb | grep 'Yellow' | awk '{print $2}' | sed 's/%//'}<60}${image ~/Conky/Icons/HalfInkYellowLED.png -p 170,57 -s 20x20}${else}${image ~/Conky/Icons/NormInkYellowLED.png -p 170,57 -s 20x20}${endif}${endif}${endif}${if_match ${execi 60 ink -p usb | grep 'Magenta' | awk '{print $2}' | sed 's/%//'}<50}${image ~/Conky/Icons/LowInkMagentaLED.png -p 195,57 -s 20x20}${else}${if_match ${execi 60 ink -p usb | grep 'Magenta' | awk '{print $2}' | sed 's/%//'}>=50}${if_match ${execi 60 ink -p usb | grep 'Magenta' | awk '{print $2}' | sed 's/%//'}<60}${image ~/Conky/Icons/HalfInkMagentaLED.png -p 195,57 -s 20x20}${else}${image ~/Conky/Icons/NormInkMagentaLED.png -p 195,57 -s 20x20}${endif}${endif}${endif}${if_match ${execi 60 ink -p usb | grep 'Cyan' | awk '{print $2}' | sed 's/%//'}<50}${image ~/Conky/Icons/LowInkCyanLED.png -p 220,57 -s 20x20}${else}${if_match ${execi 60 ink -p usb | grep 'Cyan' | awk '{print $2}' | sed 's/%//'}>=50}${if_match ${execi 60 ink -p usb | grep 'Cyan' | awk '{print $2}' | sed 's/%//'}<60}${image ~/Conky/Icons/HalfInkCyanLED.png -p 220,57 -s 20x20}${else}${image ~/Conky/Icons/NormInkCyanLED.png -p 220,57 -s 20x20}${endif}${endif}${endif}
    ${voffset -40}${font}Indicators:${voffset 20}
    ${font TransponderAOE:bold:size=8}${voffset -20}${goto 150}${execi 60 ink -p usb | grep 'Photoblack' | awk '{print $2}'}${goto 170}${execi 60 ink -p usb | grep 'Yellow' | awk '{print $2}'}${goto 195}${execi 60 ink -p usb | grep 'Magenta' | awk '{print $2}'}${goto 220}${execi 60 ink -p usb | grep 'Cyan' | awk '{print $2}'}${font}${voffset -15}
    ${color2}WEATHER: ${execi 3600 conkyForecast -d CN}${color0}${hr 1}${color2}
    Now${goto 75}${execi 3600 conkyForecast -d DW -w -s 1}${goto 135}${execi 3600 conkyForecast -d DW -w -s 2}${goto 195}${execi 3600 conkyForecast -d DW -w -s 3}
    #-----High Temp:
    H:${font TransponderAOE:bold}${execi 3600 conkyForecast -d HT -u -x}°C${goto 75}${execi 3600 conkyForecast -d HT -u -x -s 2}°C${goto 135}${execi 3600 conkyForecast -d HT -u -x -s 4}°C${goto 195}${execi 3600 conkyForecast -d HT -u -x -s 4}°C${font}
    #-----Low Temp:
    L:${font TransponderAOE:bold}${execi 3600 conkyForecast -d LT -u -x}°C${goto 75}${execi 3600 conkyForecast -d LT -u -x -s 2}°C${goto 135}${execi 3600 conkyForecast -d LT -u -x -s 4}°C${goto 195}${execi 3600 conkyForecast -d LT -u -x -s 4}°C${font}
    #-----Weather Conditions:
    ${color1}${font conkyWeather:size=30}${execi 3600 conkyForecast -d WF}${goto 75}${execi 3600 conkyForecast -d WF -s 2}${goto 135}${execi 3600 conkyForecast -d WF -s 3}${goto 195}${execi 3600 conkyForecast -d WF -s 4}${color2}${font}
    ${goto 100}Night Values:#-----Night Values:High Temp
    ${voffset 25}${goto 5}H:${font TransponderAOE:bold}${execi 3600 conkyForecast -d HT -u -x -n}°C${goto 75}${execi 3600 conkyForecast -d HT -u -x -s 2 -n}°C${goto 135}${execi 3600 conkyForecast -d HT -u -x -s 3 -n}°C${goto 195}${execi 3600 conkyForecast -d HT -u -x -s 4 -n}°C${font}
    #-----Low Temp:Night
    L:${font TransponderAOE:bold}${execi 3600 conkyForecast -d LT -u -x -n}°C${goto 75}${execi 3600 conkyForecast -d LT -u -x -s 2 -n}°C${goto 135}${execi 3600 conkyForecast -d LT -u -x -s 3 -n}°C${goto 195}${execi 3600 conkyForecast -d LT -u -x -s 4 -n}°C
    #-----Weather Conditions:Night 
    ${color1}${font conkyWeather:size=30}${execi 3600 conkyForecast -d WF -n}${goto 75}${execi 3600 conkyForecast -d WF -s 2 -n}${goto 135}${execi 3600 conkyForecast -d WF -s 3 -n}${goto 195}${execi 3600 conkyForecast -d WF -s 4 -n}${color2}${font}
    #-----Wind Direction
    ${font ConkyWindNESW:size=40}${execi 3600 conkyForecast -d BF}${goto 75}${execi 3600 conkyForecast -d BF -s 2}${goto 135}${execi 3600 conkyForecast -d BF -s 3}${goto 195}${execi 3600 conkyForecast -d BF -s 4}${font}
    #-----Wind Speed(With spacing edit by VinDSL)
    ${execi 3600 conkyForecast -d WS | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${goto 75}${execi 3600 conkyForecast -d WS -s 2 | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${goto 135}${execi 3600 conkyForecast -d WS -s 3 | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${goto 195}${execi 3600 conkyForecast -d WS -s 4 | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}
    #-----Sunrise/Sunset
    ${voffset -285}${goto 255}Tomorrow:
    ${goto 255}Sunrise:
    ${goto 255}${color1}${execi 3600 conkyForecast -d SR -s 2}${color2}
    ${goto 255}Sunset:
    ${goto 255}${color1}${execi 3600 conkyForecast -d SS -s 2}${color2}
    #-----Moon Phase
    ${goto 255}Moon 
    ${goto 255}Phase:
    ${voffset -40}${goto 310}${font MoonPhases:size=25}${execi 3600 conkyForecast -d MF}${font}
    ${goto 255}${execi 3600 conkyForecast -d MP}
    #-----Lattitude and Longitude
    ${voffset 10}${goto 250}Decimal
    ${goto 250}${color2}Lat:${goto 285}${color1}${font TransponderAOE:bold:size=12}${execi 30 conkyLatLong -L}${font}
    ${goto 250}${color2}Long:${goto 285}${color1}${font TransponderAOE:bold:size=12}${execi 30 conkyLatLong -l}${font}
    ${goto 250}${color2}Standard
    ${goto 250}${color2}Lat:${goto 285}${color1}${font TransponderAOE:bold:size=12}${execi 30 conkyLatLong -L -i}${font}
    ${goto 250}${color2}Long:${goto 285}${color1}${font TransponderAOE:bold:size=12}${execi 30 conkyLatLong -l -i}${font}
    #-----System/Drive Info
    ${voffset 5}${font}${color2}SYSTEM ${color0}${hr 1}${color2}
    CPU1:${goto 55}${freq_g 1}Ghz${goto 125}${color1}Right:${goto 175}${color0}${cpu cpu1}%
    ${color2}CPU2:${goto 55}${freq_g 2}Ghz${goto 125}${color1}Left:${goto 175}${color0}${cpu cpu2}%
    ${color2}RAM:${goto 55}${memmax}${goto 125}${color}Middle:${goto 175}${color2}${memperc}%${color2}
    ${color2}SWAP:${goto 55}${swapmax}${goto 125}${color5}Centre:${goto 175}${color0}${swapperc}%${color2}
    #-----Main Drives
    ${color2}SYSTEM DRIVES ${color0}${hr 1}${color2}
    ${color2}Root:${goto 55}${fs_size /}${goto 135}${color0}${fs_used_perc /}%${goto 175}${color2}Used${goto 220}${color0}${fs_bar 5,120 /}
    ${color2}Home:${goto 55}${fs_size /home}${goto 135}${color1}${fs_used_perc /home}%${goto 175}${color2}Used${goto 220}${color1}${fs_bar 5,120 /home}
    ${color2}Test1:${goto 55}${fs_size /media/Test1}${goto 135}${color5}${fs_used_perc /media/Test1}%${goto 175}${color2}Used${goto 220}${color5}${fs_bar 5,120 /media/Test1}
    ${color2}Test2:${goto 55}${fs_size /media/Test2}${goto 135}${color5}${fs_used_perc /media/Test2}%${goto 175}${color2}Used${goto 220}${color5}${fs_bar 5,120 /media/Test2}
    #-----USB Drives (Special because it checks to see if they're plugged in first.)
    ${color2}USB CONNECTED DRIVES ${color0}${hr 1}${color2}
    NAME${goto 60}|${goto 70}SIZE${goto 120}|${goto 130}USED
    ${if_mounted /media/7GBACKUP}${color2}7G1:${goto 70}${color1}${fs_size /media/7GBACKUP}${goto 130}${color0}${fs_used_perc /media/7GBACKUP}%${image ~/Conky/Icons/USB7G1Y.png -p 235,615 -s 40x40}${else}${color2}7G1:${goto 70}${color0}N/C${image ~/Conky/Icons/USB7G1R.png -p 235,615 -s 40x40}${endif}
    ${if_mounted /media/7GBACKUP2}${color2}7G2:${goto 70}${color1}${fs_size /media/7GBACKUP2}${goto 130}${color0}${fs_used_perc /media/7GBACKUP2}%${image ~/Conky/Icons/USB7G2Y.png -p 235,655 -s 40x40}${else}${color2}7G2:${goto 70}${color0}N/C${image ~/Conky/Icons/USB7G2R.png -p 235,655 -s 40x40}${endif}
    ${if_mounted /media/7GBACKUP3}${color2}7G3:${goto 70${color1}}${fs_size /media/7GBACKUP3}${goto 130}${color0}${fs_used_perc /media/7GBACKUP3}%${image ~/Conky/Icons/USB7G3Y.png -p 195,655 -s 40x40}${else}${color2}7G3:${goto 70}${color0}N/C${image ~/Conky/Icons/USB7G3R.png -p 195,655 -s 40x40}${endif}
    ${color2}${if_mounted /media/120}120:${goto 70}${color1}${fs_size /media/120}${goto 130}${color0}${fs_used_perc /media/120}%${image ~/Conky/Icons/USB120Y.png -p 195,615 -s 40x40}${else}${color2}120:${goto 70}${color0}N/C${image ~/Conky/Icons/USB120R.png -p 195,615 -s 40x40}${endif}
    ${color2}${if_match ${exec df -h | grep -c "SANSA CLIPP"} == 1}Sansa:${goto 70}${color1}${execi 30 df -h | grep "SANSA CLIPP" | awk '{print $2}'}${goto 130}${color0}${execi 30 df -h | grep "SANSA CLIPP" | awk '{print $5}' | sed 's/%//'}%${image ~/Conky/Icons/Sansa.png -p 300,595 -s 45x66}${else}${color2}Sansa:${goto 70}${color0}N/C${endif}
    .conkyrc.network No changes since last update. Still don't have a card for my private network, so it remains "No Address" for now.
    Code:
    #-----Conky Settings
    background yes
    no_buffers yes
    out_to_console no
    top_cpu_separate no
    cpu_avg_samples 2
    net_avg_samples 3
    total_run_times 0
    update_interval 1
    
    #-----Text Settings
    uppercase no
    override_utf8_locale yes
    short_units no
    pad_percents 0
    text_buffer_size 2048
    max_user_text 16384
    use_xft yes
    xftalpha 1.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 1024
    imlib_cache_size 0
    
    #-----Layout Settings
    alignment bottom_right
    gap_x 65
    gap_y 85
    minimum_size 360 0
    maximum_width 600
    use_spacer right
    
    #-----Colors
    default_color 808080          #Grey Default
    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
    
    #-----Lua Script To Load "Not" working right now.
    lua_load ~/Conky/Scripts/netring.lua
    lua_draw_hook_pre conky_draw_netring
    
    TEXT
    #-----Network Info
    ${color2}NETWORK TRAFFIC${color0}${hr 1}${color2}
    ${color2}Hostname${goto 95}${nodename}${goto 145}|${goto 165}Inbound${goto 235}|${goto 245}Outbound
    INet: 
    ${addr eth0}${goto 145}|${goto 165}${color4}${downspeed eth0}${goto 220}/s${goto 235}${color2}|${goto 245}${color1}${upspeed eth0}${goto 305}/s${image ~/Conky/Icons/Globe.png -p 330,50 -s 20x20}
    ${color2}Private
    ${addr eth1}${goto 145}|${goto 165}${color4}${downspeed eth1}${goto 220}/s${goto 235}${color2}|${goto 245}${color1}${upspeed eth1}${goto 305}/s${image ~/Conky/Icons/Private.png -p 330,90 -s 20x20}
    ${color2}Bluetooth
    ${addr pan1}${goto 145}|${goto 165}${color4}${downspeed pan1}${goto 220}/s${goto 235}${color2}|${goto 245}${color1}${upspeed pan1}${goto 305}/s${image ~/Conky/Icons/bluetooth.png -p 330,130 -s 20x20}
    #-----Monthly/Daily Bandwidth Usage
    ${color2}NETWORK DATA USE${color0}${hr 1}${color2}
    ${goto 35}${color2}Today${goto 125}Monthly 
    ${color2}${goto 15}U:${goto 30}${color1}${execi 60 vnstat -d | grep "`date +"%D"`" | awk '{print $5}'}${goto 85}${execi 60 vnstat -d | grep "`date +"%D"`" | awk '{print $6}'}${goto 120}${if_match ${time %e}>=12}${execi 60 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $6}'}${goto 175}${execi 60 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $7}'}${endif}${if_match ${time %-e}<12}${if_match ${time %m}==01}${execi 60 vnstat -m | grep "Dec" | awk '{print $6}'}${goto 175}${execi 60 vnstat -m | grep "Dec" | awk '{print $7}'}${else}${if_match ${time %m}==02}${execi 60 vnstat -m | grep "Jan" | awk '{print $6}'}${goto 175}${execi 60 vnstat -m | grep "Jan" | awk '{print $7}'}${else}${if_match ${time %m}==03}${execi 60 vnstat -m | grep "Feb" | awk '{print $6}'}${goto 175}${execi 60 vnstat -m | grep "Feb" | awk '{print $7}'}${else}${if_match ${time %m}==04}${execi 60 vnstat -m | grep "Mar" | awk '{print $6}'}${goto 175}${execi 60 vnstat -m | grep "Mar" | awk '{print $7}'}${else}${if_match ${time %m}==05}${execi 60 vnstat -m | grep "Apr" | awk '{print $6}'}${goto 175}${execi 60 vnstat -m | grep "Apr" | awk '{print $7}'}${else}${if_match ${time %m}==06}${execi 60 vnstat -m | grep "May" | awk '{print $6}'}${goto 175}${execi 60 vnstat -m | grep "May" | awk '{print $7}'}${else}${if_match ${time %m}==07}${execi 60 vnstat -m | grep "Jun" | awk '{print $6}'}${goto 175}${execi 60 vnstat -m | grep "Jun" | awk '{print $7}'}${else}${if_match ${time %m}==08}${execi 60 vnstat -m | grep "Jul" | awk '{print $6}'}${goto 175}${execi 60 vnstat -m | grep "Jul" | awk '{print $7}'}${else}${if_match ${time %m}==09}${execi 60 vnstat -m | grep "Aug" | awk '{print $6}'}${goto 175}${execi 60 vnstat -m | grep "Aug" | awk '{print $7}'}${else}${if_match ${time %m}==10}${execi 60 vnstat -m | grep "Sep" | awk '{print $6}'}${goto 175}${execi 60 vnstat -m | grep "Sep" | awk '{print $7}'}${else}${if_match ${time %m}==11}${execi 60 vnstat -m | grep "Oct" | awk '{print $6}'}${goto 175}${execi 60 vnstat -m | grep "Oct" | awk '{print $7}'}${else}${if_match ${time %m}==12}${execi 60 vnstat -m | grep "Nov" | awk '{print $6}'}${goto 175}${execi 60 vnstat -m | grep "Nov" | awk '{print $7}'}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${color2}${goto 265}25
    ${color2}${goto 15}D:${goto 30}${color4}${execi 60 vnstat -d | grep "`date +"%D"`" | awk '{print $2}'}${goto 85}${execi 60 vnstat -d | grep "`date +"%D"`" | awk '{print $3}'}${goto 120}${if_match ${time %e}>=12}${execi 60 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $3}'}${goto 175}${execi 60 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $4}'}${endif}${if_match ${time %-e}<12}${if_match ${time %m}==01}${execi 60 vnstat -m | grep "Dec" | awk '{print $3}'}${goto 175}${execi 60 vnstat -m | grep "Dec" | awk '{print $4}'}${else}${if_match ${time %m}==02}${execi 60 vnstat -m | grep "Jan" | awk '{print $3}'}${goto 175}${execi 60 vnstat -m | grep "Jan" | awk '{print $4}'}${else}${if_match ${time %m}==03}${execi 60 vnstat -m | grep "Feb" | awk '{print $3}'}${goto 175}${execi 60 vnstat -m | grep "Feb" | awk '{print $4}'}${else}${if_match ${time %m}==04}${execi 60 vnstat -m | grep "Mar" | awk '{print $3}'}${goto 175}${execi 60 vnstat -m | grep "Mar" | awk '{print $4}'}${else}${if_match ${time %m}==05}${execi 60 vnstat -m | grep "Apr" | awk '{print $3}'}${goto 175}${execi 60 vnstat -m | grep "Apr" | awk '{print $4}'}${else}${if_match ${time %m}==06}${execi 60 vnstat -m | grep "May" | awk '{print $3}'}${goto 175}${execi 60 vnstat -m | grep "May" | awk '{print $4}'}${else}${if_match ${time %m}==07}${execi 60 vnstat -m | grep "Jun" | awk '{print $3}'}${goto 175}${execi 60 vnstat -m | grep "Jun" | awk '{print $4}'}${else}${if_match ${time %m}==08}${execi 60 vnstat -m | grep "Jul" | awk '{print $3}'}${goto 175}${execi 60 vnstat -m | grep "Jul" | awk '{print $4}'}${else}${if_match ${time %m}==09}${execi 60 vnstat -m | grep "Aug" | awk '{print $3}'}${goto 175}${execi 60 vnstat -m | grep "Aug" | awk '{print $4}'}${else}${if_match ${time %m}==10}${execi 60 vnstat -m | grep "Sep" | awk '{print $3}'}${goto 175}${execi 60 vnstat -m | grep "Sep" | awk '{print $4}'}${else}${if_match ${time %m}==11}${execi 60 vnstat -m | grep "Oct" | awk '{print $3}'}${goto 175}${execi 60 vnstat -m | grep "Oct" | awk '{print $4}'}${else}${if_match ${time %m}==12}${execi 60 vnstat -m | grep "Nov" | awk '{print $3}'}${goto 175}${execi 60 vnstat -m | grep "Nov" | awk '{print $4}'}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${color2}${goto 265}GB
    ${color2}${goto 15}T:${goto 30}${color5}${execi 60 vnstat -d | grep "`date +"%D"`" | awk '{print $8}'}${goto 85}${execi 60 vnstat -d | grep "`date +"%D"`" | awk '{print $9}'}${goto 120}${if_match ${time %e}>=12}${execi 60 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $9}'}${goto 175}${execi 60 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $10}'}${endif}${if_match ${time %-e}<12}${if_match ${time %m}==01}${execi 60 vnstat -m | grep "Dec" | awk '{print $9}'}${goto 175}${execi 60 vnstat -m | grep "Dec" | awk '{print $10}'}${else}${if_match ${time %m}==02}${execi 60 vnstat -m | grep "Jan" | awk '{print $9}'}${goto 175}${execi 60 vnstat -m | grep "Jan" | awk '{print $10}'}${else}${if_match ${time %m}==03}${execi 60 vnstat -m | grep "Feb" | awk '{print $9}'}${goto 175}${execi 60 vnstat -m | grep "Feb" | awk '{print $10}'}${else}${if_match ${time %m}==04}${execi 60 vnstat -m | grep "Mar" | awk '{print $9}'}${goto 175}${execi 60 vnstat -m | grep "Mar" | awk '{print $10}'}${else}${if_match ${time %m}==05}${execi 60 vnstat -m | grep "Apr" | awk '{print $9}'}${goto 175}${execi 60 vnstat -m | grep "Apr" | awk '{print $10}'}${else}${if_match ${time %m}==06}${execi 60 vnstat -m | grep "May" | awk '{print $9}'}${goto 175}${execi 60 vnstat -m | grep "May" | awk '{print $10}'}${else}${if_match ${time %m}==07}${execi 60 vnstat -m | grep "Jun" | awk '{print $9}'}${goto 175}${execi 60 vnstat -m | grep "Jun" | awk '{print $10}'}${else}${if_match ${time %m}==08}${execi 60 vnstat -m | grep "Jul" | awk '{print $9}'}${goto 175}${execi 60 vnstat -m | grep "Jul" | awk '{print $10}'}${else}${if_match ${time %m}==09}${execi 60 vnstat -m | grep "Aug" | awk '{print $9}'}${goto 175}${execi 60 vnstat -m | grep "Aug" | awk '{print $10}'}${else}${if_match ${time %m}==10}${execi 60 vnstat -m | grep "Sep" | awk '{print $9}'}${goto 175}${execi 60 vnstat -m | grep "Sep" | awk '{print $10}'}${else}${if_match ${time %m}==11}${execi 60 vnstat -m | grep "Oct" | awk '{print $9}'}${goto 175}${execi 60 vnstat -m | grep "Oct" | awk '{print $10}'}${else}${if_match ${time %m}==12}${execi 60 vnstat -m | grep "Nov" | awk '{print $9}'}${goto 175}${execi 60 vnstat -m | grep "Nov" | awk '{print $10}'}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${color2}${goto 220}Total Allowance${font}
    .conkyrc.clock No changes. Still works beautifully now.
    Code:
    #-----Conky Settings
    background yes
    no_buffers yes
    out_to_console no
    top_cpu_separate no
    cpu_avg_samples 2
    net_avg_samples 3
    total_run_times 0
    update_interval 1
    
    #-----Text Settings
    uppercase yes
    override_utf8_locale yes
    short_units no
    pad_percents 0
    text_buffer_size 4096
    max_user_text 32768
    use_xft yes
    xftalpha 0.5
    xftfont AGaramond:size=32
    
    #-----Window Settings
    own_window yes
    own_window_colour 000000
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    own_window_type normal
    
    #-----Graphics Settings
    double_buffer yes
    draw_borders no
    draw_graph_borders yes
    draw_shades no
    draw_outline no
    max_specials 1024
    imlib_cache_size 0
    
    #-----Layout Settings
    alignment bottom_left
    gap_x 0
    gap_y 30
    maximum_width 420
    minimum_size 350 10
    use_spacer right
    
    #-----Lua Script
    lua_load ~/Conky/Scripts/calendar.lua
    lua_draw_hook_pre conky_draw_fig
    lua_draw_hook_post conky_draw_box
    
    #-----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}
    #-----This is how to do a proper shadow hilight.
    ${font TransponderAOE:size=60}${color7}${voffset -25}${goto 12}${time %l:%M:%S %p}
    #-----Calendar by dk75: date box/mrpeachy: calendar body
    ${voffset -65}${font AGaramond:bold:size=16}${color0}${goto 5}Calendar:${goto 140}${execpi 60 date +'%B${offset 6}%Y'}
    ${voffset -15}${color6}${hr 1}${color2}
    ${voffset 150}${color6}${hr 1}${color2}
    ringtest.lua 9th ring to check how much of the MP3 player's internal memory is used. I could make a Lord of the Rings joke, but I'm not gonna.
    Code:
    --Insert into Conky when Ready:
    --lua_load /home/dorian/Conky/Scripts/ringtest.lua
    --lua_draw_hook_pre draw_ring
    
    require 'cairo'
    function draw_ring(co, across, down, rad, inlw, rstart, rend, bgr, bgg, bgb, bga, inr, ing, inb, ina)
    local angle_0=rstart*(2*math.pi/360)-math.pi/2
    local angle_f=rend*(2*math.pi/360)-math.pi/2
    local t_arc=(co/100)*(angle_f-angle_0)
    -- Draw background ring
    cairo_arc(cr,across,down,rad,angle_0,angle_f)
    cairo_set_source_rgba(cr,bgr,bgg,bgb,bga)
    cairo_set_line_width(cr,inlw)
    cairo_stroke(cr)
    -- Draw indicator ring
    cairo_arc(cr,across,down,rad,angle_0,angle_0+t_arc)
    cairo_set_source_rgba(cr,inr,ing,inb,ina)
    cairo_stroke(cr)
    end
    
    function conky_draw_ring()
    if conky_window == nil then return end
    local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
    cr = cairo_create(cs)
    local updates=tonumber(conky_parse('${updates}'))
    if updates>=5 then
    --RING 1 SETUP:CPU Ring-----------------------------------------------------------------------------
    --conky object to be displayed-----
    co=tonumber(conky_parse('${cpu cpu1}'))
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=290
    down=455
    --radius of ring-----------------------
    rad=40
    --ring width---------------------------
    inlw=10
    --start and end angles---------------
    rstart=0
    rend=180
    --color and alpha for indicator----
    inr,ing,inb,ina=255,0,0,1
    --background ring color and alpha-----
    bgr,bgg,bgb,bga=255,255,0,1
    --calculation, do not edit below---------
    co=(co/max)*100
    draw_ring(co, across, down, rad, inlw, rstart, rend, bgr, bgg, bgb, bga, inr, ing, inb, ina)
    --END RING 1 SETUP---------------copy setup section and paste for additional rings----------
    --RING 2 SETUP:CPU2 Ring-----------------------------------------------------------------------------
    --conky object to be displayed-----
    co=tonumber(conky_parse('${cpu cpu2}'))
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=290
    down=455
    --radius of ring-----------------------
    rad=40
    --ring width---------------------------
    inlw=10
    --start and end angles---------------
    rstart=180
    rend=360
    --color and alpha for indicator----
    inr,ing,inb,ina=255,0,0,1
    --background ring color and alpha-----
    bgr,bgg,bgb,bga=255,255,0,1
    --calculation, do not edit below---------
    co=(co/max)*100
    draw_ring(co, across, down, rad, inlw, rstart, rend, bgr, bgg, bgb, bga, inr, ing, inb, ina)
    --END RING 2 SETUP---------------copy setup section and paste for additional rings----------
    --RING 3 SETUP:RAM Ring-----------------------------------------------------------------------------
    --conky object to be displayed-----
    co=tonumber(conky_parse('${memperc}'))
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=290
    down=455
    --radius of ring-----------------------
    rad=25
    --ring width---------------------------
    inlw=10
    --start and end angles---------------
    rstart=-180
    rend=180
    --color and alpha for indicator----
    inr,ing,inb,ina=128,128,128,0.75
    --background ring color and alpha-----
    bgr,bgg,bgb,bga=128,128,128,0.5
    --calculation, do not edit below---------
    co=(co/max)*100
    draw_ring(co, across, down, rad, inlw, rstart, rend, bgr, bgg, bgb, bga, inr, ing, inb, ina)
    --END RING 3 SETUP---------------copy setup section and paste for additional rings----------
    --RING 4 SETUP:SWAP Ring-----------------------------------------------------------------------------
    --conky object to be displayed-----
    co=tonumber(conky_parse('${swapperc}'))
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=290
    down=455
    --radius of ring-----------------------
    rad=8
    --ring width---------------------------
    inlw=16
    --start and end angles---------------
    rstart=-180
    rend=180
    --color and alpha for indicator----
    inr,ing,inb,ina=255,0,0,1.0
    --background ring color and alpha-----
    bgr,bgg,bgb,bga=255,255,255,0.75
    --calculation, do not edit below---------
    co=(co/max)*100
    draw_ring(co, across, down, rad, inlw, rstart, rend, bgr, bgg, bgb, bga, inr, ing, inb, ina)
    --END RING 4 SETUP---------------copy setup section and paste for additional rings----------
    --RING 5 SETUP:7GBACKUP Ring-----------------------------------------------------------------------------
    --conky object to be displayed-----
    mounted=conky_parse('${if_mounted /media/7GBACKUP}1${else}0${endif}')
    if tonumber(mounted)==1 then
    co=tonumber(conky_parse('${fs_used_perc /media/7GBACKUP}'))
    else
    co=0
    end
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=240
    down=660
    --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=255,0,0,1.0
    --background ring color and alpha-----
    mounted=conky_parse('${if_mounted /media/7GBACKUP}1${else}0${endif}')
    if tonumber(mounted)==1 then
    bgr,bgg,bgb,bga=192,192,0,1.0
    else
    bgr,bgg,bgb,bga=255,255,255,1.0
    end
    --calculation, do not edit below---------
    co=(co/max)*100
    draw_ring(co, across, down, rad, inlw, rstart, rend, bgr, bgg, bgb, bga, inr, ing, inb, ina)
    --END RING 5 SETUP---------------copy setup section and paste for additional rings----------
    --RING 6 SETUP:7GBACKUP2 Ring-----------------------------------------------------------------------------
    --conky object to be displayed-----
    mounted=conky_parse('${if_mounted /media/7GBACKUP2}1${else}0${endif}')
    if tonumber(mounted)==1 then
    co=tonumber(conky_parse('${fs_used_perc /media/7GBACKUP2}'))
    else
    co=0
    end
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=240
    down=660
    --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=255,0,0,1.0
    --background ring color and alpha-----
    mounted=conky_parse('${if_mounted /media/7GBACKUP2}1${else}0${endif}')
    if tonumber(mounted)==1 then
    bgr,bgg,bgb,bga=192,192,0,1.0
    else
    bgr,bgg,bgb,bga=255,255,255,1.0
    end
    --calculation, do not edit below---------
    co=(co/max)*100
    draw_ring(co, across, down, rad, inlw, rstart, rend, bgr, bgg, bgb, bga, inr, ing, inb, ina)
    --END RING 6 SETUP---------------copy setup section and paste for additional rings----------
    --RING 7 SETUP:7GBACKUP3 Ring-----------------------------------------------------------------------------
    --conky object to be displayed-----
    mounted=conky_parse('${if_mounted /media/7GBACKUP3}1${else}0${endif}')
    if tonumber(mounted)==1 then
    co=tonumber(conky_parse('${fs_used_perc /media/7GBACKUP3}'))
    else
    co=0
    end
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=240
    down=660
    --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=255,0,0,1.0
    --background ring color and alpha-----
    mounted=conky_parse('${if_mounted /media/7GBACKUP3}1${else}0${endif}')
    if tonumber(mounted)==1 then
    bgr,bgg,bgb,bga=192,192,0,1.0
    else
    bgr,bgg,bgb,bga=255,255,255,1.0
    end
    --calculation, do not edit below---------
    co=(co/max)*100
    draw_ring(co, across, down, rad, inlw, rstart, rend, bgr, bgg, bgb, bga, inr, ing, inb, ina)
    --END RING 7 SETUP---------------copy setup section and paste for additional rings----------
    --RING 8 SETUP:120 Ring-----------------------------------------------------------------------------
    --conky object to be displayed-----
    mounted=conky_parse('${if_mounted /media/120}1${else}0${endif}')
    if tonumber(mounted)==1 then
    co=tonumber(conky_parse('${fs_used_perc /media/120}'))
    else
    co=0
    end
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=240
    down=660
    --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=255,0,0,1.0
    --background ring color and alpha-----
    mounted=conky_parse('${if_mounted /media/120}1${else}0${endif}')
    if tonumber(mounted)==1 then
    bgr,bgg,bgb,bga=192,192,0,1.0
    else
    bgr,bgg,bgb,bga=255,255,255,1.0
    end
    --calculation, do not edit below---------
    co=(co/max)*100
    draw_ring(co, across, down, rad, inlw, rstart, rend, bgr, bgg, bgb, bga, inr, ing, inb, ina)
    --END RING 8 SETUP---------------copy setup section and paste for additional rings----------
    --RING 9 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=645
    --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=255,192,0,1.0
    --background ring color and alpha-----
    bgr,bgg,bgb,bga=255,255,255,0.0
    --calculation, do not edit below---------
    co=(co/max)*100
    draw_ring(co, across, down, rad, inlw, rstart, rend, bgr, bgg, bgb, bga, inr, ing, inb, ina)
    --END RING 9 SETUP---------------copy setup section and paste for additional rings----------
    end
    end
    netring.lua Working properly. Still no label in the script, but every time I touch this one it gets nil values, so it waits for another time.
    Code:
    --Insert into Conky when Ready:
    --lua_load ~/Conky/Scripts/netring.lua
    --lua_draw_hook_pre conky_draw_netring
    
    require 'cairo'
    function string:split(delimiter)
    local result = { }
    local from  = 1
    local delim_from, delim_to = string.find( self, delimiter, from  )
    while delim_from do
    table.insert( result, string.sub( self, from , delim_from-1 ) )
    from  = delim_to + 1
    delim_from, delim_to = string.find( self, delimiter, from  )
    end
    table.insert( result, string.sub( self, from  ) )
    return result
    end
    
    function draw_ring(co, across, down, rad, inlw, rstart, rend, bgr, bgg, bgb, bga, inr, ing, inb, ina)
    local angle_0=rstart*(2*math.pi/360)-math.pi/2
    local angle_f=rend*(2*math.pi/360)-math.pi/2
    local t_arc=(co/100)*(angle_f-angle_0)
    -- Draw background ring
    cairo_arc(cr,across,down,rad,angle_0,angle_f)
    cairo_set_source_rgba(cr,bgr,bgg,bgb,bga)
    cairo_set_line_width(cr,inlw)
    cairo_stroke(cr)
    -- Draw indicator ring
    cairo_arc(cr,across,down,rad,angle_0,angle_0+t_arc)
    cairo_set_source_rgba(cr,inr,ing,inb,ina)
    cairo_stroke(cr)
    end
    
    function conky_draw_netring()
    if conky_window == nil then return end
    local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
    cr = cairo_create(cs)
    local updates=tonumber(conky_parse('${updates}'))
    
    if updates> 5 then
    --RING 1 SETUP-----------------------------------------------------------------------------
    --conky object to be displayed-----
    wtimer=(updates % 30)+1
    months = {"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"}
    monthnum=tonumber(os.date('%m'))
    monthname=os.date('%b')
    day=tonumber(os.date('%d'))
    if day<12 then
        if monthnum==1 then
        monthbeforenum=12
        else
        monthbeforenum=monthnum-1
        end
    month=months[monthbeforenum]
    else    
    month=monthname
    end
    if updates==6 or wtimer==1 then    
    co=(conky_parse("${exec vnstat -m | grep -n '" .. month .. "' | sed -n 1p | awk -F'|' '{print $3}'}"))
    co=string.gsub(co," ","")
    num=tonumber((string.gsub(co,"%a","")))
    units=(string.gsub(co,"[%p%d]",""))
    end
    if num==nil then num=0 end
    print (num,units)
    --max number--------------------------
    if units=="GB" or units=="GiB" then max=25 end
    if units =="MB" or units=="MiB"  then max=25600 end
    if units =="KB" or units=="KiB"  then max=26214400 end
    if max==nil then max=0 end
    --position-----------------------------
    across=275
    down=210
    --radius of ring-----------------------
    rad=25
    --ring width---------------------------
    inlw=15
    --start and end angles---------------
    rstart=-135
    rend=135
    --color and alpha for indicator----
    inr,ing,inb,ina=255,0,0,1
    --background ring color and alpha-----
    bgr,bgg,bgb,bga=255,255,0,1
    --calculation, do not edit below---------
    co=(num/max)*100
    draw_ring(co, across, down, rad, inlw, rstart, rend, bgr, bgg, bgb, bga, inr, ing, inb, ina)
    --END RING 1 SETUP---------------copy setup section and paste for additional rings----------
    end
    end
    calendar.lua Perfect working order.
    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>13 and place<23 then
    cy=down+gapt+gapl+gapl
    elseif
    place>21 and place<29 then
    cy=down+gapt+gapl+gapl+gapl
    elseif
    place>28 and place<36 then
    cy=down+gapt+gapl+gapl+gapl+gapl
    end
    placey=place %7
    if placey==1 then
    cx=across
    elseif
    placey==2 then
    cx=across+(gaph*1)
    elseif
    placey==3 then
    cx=across+(gaph*2)
    elseif
    placey==4 then
    cx=across+(gaph*3)
    elseif
    placey==5 then
    cx=across+(gaph*4)
    elseif
    placey==6 then
    cx=across+(gaph*5)
    elseif
    placey==0 then
    cx=across+(gaph*6)
    end
    cairo_rectangle (cr,cx-xadjust,cy+yadjust,width,-height)
    cairo_stroke (cr)
    end
    --###################################################
    cairo_rotate (cr,(math.pi/180)*(rotate*-1))
    --end of calendar
    --###################################################
    --#################################################################################
    end--end if 5
    end--end main function
    
    --################################################################################
    --Box Function
    --################################################################################
    do
    
    require "cairo"
    local cs, cr = nil
    
    local function conky_set_the_font(cr, fface, fsize, fbold)
    		if fbold == 1 then
    			cairo_select_font_face(cr, fface, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD)
    		else
    			cairo_select_font_face(cr, fface, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL)
    		end
    		cairo_set_font_size(cr, fsize)
    end
    
    local function conky_draw_date(cr, extents, string, fred, fgreen ,fblue, falpha, tacross, down)
    		cairo_set_source_rgba(cr, fred, fgreen, fblue, falpha)
    		cairo_move_to(cr, tacross - (extents.width /2 ), down)
    		cairo_show_text(cr, string)
    end
    
    function conky_draw_box(cs, cr)
    	if conky_window == nil then return end
    	if cs == nil or cairo_xlib_surface_get_width(cs) ~= conky_window.width or cairo_xlib_surface_get_height(cs) ~= conky_window.height then
    		if cs then cairo_surface_destroy(cs) end
    		cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
    	end
    	if cr then cairo_destroy(cr) end
    	cr = cairo_create(cs)
    	local updates = tonumber(conky_parse('${updates}'))
    	--####################################################################################################
    	if updates>5 then -- starts the display
    	--####################################################################################################
    		--Weekday text color
    		local wred, wgreen, wblue, walpha = 1, 1, 1, 1
    		--Weekday text font
    		local wfont = "TransponderAOE"
    		--Weekday text size
    		local wfontsize = 16
    		--Weekday font bold? Set to 1 for bold font
    		local wfbold = 1
    		--###################################################
    		--Month text color
    		local mred, mgreen, mblue, malpha = 1, 0, 0, 1
    		--Month text font
    		local mfont = "TransponderAOE"
    		--Month text size
    		local mfontsize = 18
    		--Month font bold? Set to 1 for bold font
    		local mfbold = 1
    		--###################################################
    		--Day text color
    		local dred, dgreen, dblue, dalpha = 1, 1, 0, 1
    		--Day font
    		local dfont = "TransponderAOE"
    		--Day size
    		local dfontsize = 30
    		--Day font bold? Set to 1 for bold font
    		local dfbold = 1
    		--###################################################
    		--Year text color
    		local yred, ygreen, yblue, yalpha = 1, 1, 1, 1
    		--year font
    		local yfont = "TransponderAOE"
    		--Year size
    		local yfontsize = 18
    		--Year font bold? Set to 1 for bold font
    		local yfbold = 1
    		--###################################################
    		--indicator box enter 1 for box or 0 for no box
    		local box = 1
    		--use the following 2 numbers to adjust box position
    		local xadjust = 20
    		local yadjust = 180
    		--set the box dimensions
    		local width = 104
    		local height = 110
    		--box thickness
    		local bthick = 8
    		--box color
    		local bxred, bxgreen, bxblue, bxalpha = 0, 0, 0.753, 1
    		--###################################################
    		--Today's Date Box ###############################
    		--###################################################
    		--position
    		local down = yadjust + bthick
    		--###################################################
    		--gap from sides
    		local gaph = 10
    		--###################################################
    		--variables (need to set font face, font size and text string in order to populate text extents structure with text measurements)
    		-- Weekday
    		local wdays = os.date("%A")
    		local ext_wdays = cairo_text_extents_t:create()
    		conky_set_the_font(cr, wfont, wfontsize, wfbold)
    		cairo_text_extents(cr, wdays, ext_wdays)
    		-- Month
    		local month = os.date("%B")
    		local ext_month = cairo_text_extents_t:create()
    		conky_set_the_font(cr, mfont, mfontsize, mfbold)
    		cairo_text_extents(cr, month, ext_month)
    		-- Today
    		local today = tonumber(os.date("%d"))
    		local ext_today = cairo_text_extents_t:create()
    		conky_set_the_font(cr, dfont, dfontsize, dfbold)
    		cairo_text_extents(cr, today, ext_today)
    		-- Year
    		local year = os.date("%G")
    		local ext_year = cairo_text_extents_t:create()
    		conky_set_the_font(cr, yfont, yfontsize, yfbold)
    		cairo_text_extents(cr, year, ext_year)
    		-- text across box center axis
    		local tacross = xadjust + (width / 2)
    		-- gap between lines (with 4 lines it will be 3 gaps)
    		local gapl = (height - (bthick * 2) - (gaph * 2) - ext_wdays.height - ext_month.height - ext_today.height - ext_year.height) / 3
    		--###################################################
    		--print box 
    		--###################################################
    		--Weekday
    		down = down + gaph + ext_wdays.height
    		conky_set_the_font(cr, wfont, wfontsize, wfbold)
    		conky_draw_date(cr, ext_wdays, wdays, wred, wgreen ,wblue, walpha, tacross, down)
    		--Month
    		down = down + gapl + ext_month.height
    		conky_set_the_font(cr, mfont, mfontsize, mfbold)
    		conky_draw_date(cr, ext_month, month, mred, mgreen ,mblue, malpha, tacross, down)
    		--Day
    		down = down + gapl + ext_today.height
    		conky_set_the_font(cr, dfont, dfontsize, dfbold)
    		conky_draw_date(cr, ext_today, today, dred, dgreen ,dblue, dalpha, tacross, down)
    		--Year
    		down = down + gapl + ext_year.height
    		conky_set_the_font(cr, yfont, yfontsize, yfbold)
    		conky_draw_date(cr, ext_year, year, yred, ygreen ,yblue, yalpha, tacross, down)
    		--box around
    		if box == 1 then
    			cairo_set_source_rgba(cr, bxred, bxgreen, bxblue, bxalpha)
    			cairo_rectangle(cr, xadjust, yadjust, width, height)
    			cairo_set_line_width(cr, bthick)
    			cairo_stroke(cr)
    		end
    		cairo_stroke(cr)
    		--#################################################################################
    	end--end if 5
    end--end box function
    
    end
    .conkyForecast.config For completion's sake.
    Code:
    # config settings for conkyForecast.py
    DEFAULT_LOCATION = <Censored>
    CACHE_FOLDERPATH = /tmp/
    CONNECTION_TIMEOUT = 10
    EXPIRY_MINUTES = 30
    TIME_FORMAT = %I:%M %p
    DATE_FORMAT = %d-%m-%Y
    LOCALE = 
    XOAP_PARTNER_ID = <Censored>
    XOAP_LICENCE_KEY = <Censored>
    MAXIMUM_DAYS_FORECAST = 4
    AUTO_NIGHT = False
    BASE_XOAP_URL = http://xoap.weather.com/weather/local/<LOCATION>?cc=*&dayf=5&link=xoap&prod=xoap&par=<XOAP_PARTNER_ID>&key=<XOAP_LICENCE_KEY>&unit=m
    #BASE_XOAP_URL = http://xml.weather.com/weather/local/<LOCATION>?cc=*&dayf=10&link=xoap&prod=xoap&par=<XOAP_PARTNER_ID>&key=<XOAP_LICENCE_KEY>&unit=m
    PROXY_HOST = 
    PROXY_PORT = 8080
    PROXY_USERNAME = 
    PROXY_PASSWORD =
    Screenshots. Two this time. Before and after USB drives unplugged.
    Attached Images Attached Images

  6. #16906
    Join Date
    Oct 2009
    Location
    Under a rock
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    spot the difference
    old conky setup


    new conky setup


    the difference is the first one is constructed (except for the calendar) using commands and text typed directly into a conkyrc file (along with many goto's and voffset's)

    the second setup is almost entirely in a lua script
    ive used the conkyrc to generate the graphs (those built in graphs are quick and easy)

    but all of the text and the bars are in a lua file...

    and the lua based setup runs at around 1% while the conkyrc based setup was running at around 3%

    new setup
    Code:
    --conky setup by mrpeachy April 2011
    --[[
    call in conky rc (above text)
    top_name_width 5 --needed for processes to fit
    
    lua_load /path to file/display.lua
    lua_draw_hook_pre draw_fig
    
    ]]
    require 'cairo'
    function string:split(delimiter)
    local result = { }
    local from  = 1
    local delim_from, delim_to = string.find( self, delimiter, from  )
    while delim_from do
    table.insert( result, string.sub( self, from , delim_from-1 ) )
    from  = delim_to + 1
    delim_from, delim_to = string.find( self, delimiter, from  )
    end
    table.insert( result, string.sub( self, from  ) )
    return result
    end
    
    function round(num, idp)
      local mult = 10^(idp or 0)
      return math.floor(num * mult + 0.5) / mult
    end
    
    function max(a)
    local mi = 1                        --index of max value
    local m = a[mi]                        --max value
    for i, val in ipairs(a) do      --can use pairs() as well, ipairs() indicates an array-like table
    if val > m then
    mi = i
    m = val
    end
    end
    return m, mi        --neat feature of lua, can return multiple values
    end
    
    function dnumg(s)
    str=string.gsub(s,"[ /%a]","")
    return str
    end
    
    function dunit(s)
    str=string.gsub(s,"[%d%p ]","")
    return str
    end
    
    --------------------------------------------------------------------------------
    function conky_draw_fig()
    if conky_window == nil then return end
    local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
    cr = cairo_create(cs)
    local updates=tonumber(conky_parse('${updates}'))
    --####################################################################################################
    if updates>5 then -- starts the display
    --####################################################################################################
    --conkyrc text
    flx=5;fly=28;lw=11
    --add=fly+((line-1)*lw)
    --settings
    line=0;pass={line=line,hr=1};write(pass)
    line=line+1;pass={line=line,text="S Y S T E M    I N F O",textx=flx,texty=fly};write(pass)
    line=line+1;pass={line=line,hr=1};write(pass)
    line=line+1;pass={line=line,text="UPTIME",textx=flx};write(pass)
    uptime=": " .. conky_parse("${uptime}")
            pass={line=line,text=uptime,textx=flx+88};write(pass)
    line=line+1;pass={line=line,text="MEMORY",textx=flx};write(pass)
    memory=": " .. conky_parse("${mem}") .. "/" .. conky_parse("${memmax}")
            pass={line=line,text=memory,textx=flx+88};write(pass)
    memperc=conky_parse("${memperc}") .. "%"
    line=line+1.5;pass={line=line,text=memperc,textx=flx,fsize=18};write(pass)
    line=line+0.5;pass={line=line,text="PROCESSES BY MEM:",textx=flx+40};write(pass)
    line=line+1;pass={line=line,text="NAME",textx=flx+88};write(pass)
            pass={line=line,text="MEM%",textx=flx+135};write(pass)
            pass={line=line,text="PID",textx=flx+180};write(pass)
    tmn1=conky_parse("${top_mem name 1}")
    tmn2=conky_parse("${top_mem name 2}")
    tmn3=conky_parse("${top_mem name 3}")
    tmm1=conky_parse("${top_mem mem 1}")
    tmm2=conky_parse("${top_mem mem 2}")
    tmm3=conky_parse("${top_mem mem 3}")
    tmp1=conky_parse("${top_mem pid 1}")
    tmp2=conky_parse("${top_mem pid 2}")
    tmp3=conky_parse("${top_mem pid 3}")
    line=line+1;pass={line=line,text=tmn1,textx=flx+88};write(pass)
            pass={line=line,text=tmm1,textx=flx+135};write(pass)
            pass={line=line,text=tmp1,textx=flx+180};write(pass)
    line=line+1;pass={line=line,text=tmn2,textx=flx+88};write(pass)
            pass={line=line,text=tmm2,textx=flx+135};write(pass)
            pass={line=line,text=tmp2,textx=flx+180};write(pass)
    line=line+1;pass={line=line,text=tmn3,textx=flx+88};write(pass)
            pass={line=10,text=tmm3,textx=flx+135};write(pass)
            pass={line=10,text=tmp3,textx=flx+180};write(pass)
    line=line+1;pass={line=line,text="VOLUMES:",textx=flx};write(pass)
    line=line+1;pass={line=line,text="ROOT",textx=flx};write(pass)
    root=": " .. conky_parse("${fs_used /}") .. "/" .. conky_parse("${fs_size /}")
            pass={line=line,text=root,textx=flx+40};write(pass)
    line=line+2;pass={line=line,text="HOME",textx=flx};write(pass)
    home=": " .. conky_parse("${fs_used /home}") .. "/" .. conky_parse("${fs_size /home}")
            pass={line=line,text=home,textx=flx+40};write(pass)
    line=line+2;pass={line=line,text="CENTRAL PROCESSOR:",textx=flx};write(pass)
    line=line+1;pass={line=line,text="CORE 1",textx=flx+40};write(pass)
    core1=": " .. conky_parse("${cpu cpu1}")
            pass={line=line,text=core1 .. "%",textx=flx+88};write(pass)
    line=line+1;pass={line=line,text="CORE 2",textx=flx+40};write(pass)
    core2=": " .. conky_parse("${cpu cpu2}")
            pass={line=line,text=core2 .. "%",textx=flx+88};write(pass)
    line=line+1;pass={line=line,text="CORE 3",textx=flx+40};write(pass)
    core3=": " .. conky_parse("${cpu cpu3}")
            pass={line=line,text=core3 .. "%",textx=flx+88};write(pass)
    totcpu=conky_parse("${cpu cpu0}") .. "%"
    line=line-1;pass={line=line,text=totcpu,textx=flx,fsize=18};write(pass)
    line=line+2;pass={line=line,text="PROCESSES BY CPU:",textx=flx+40};write(pass)
    line=line+1;pass={line=line,text="NAME",textx=flx+88};write(pass)
            pass={line=line,text="CPU%",textx=flx+135};write(pass)
            pass={line=line,text="PID",textx=flx+180};write(pass)
    tcn1=conky_parse("${top name 1}")
    tcn2=conky_parse("${top name 2}")
    tcn3=conky_parse("${top name 3}")
    tcc1=conky_parse("${top cpu 1}")
    tcc2=conky_parse("${top cpu 2}")
    tcc3=conky_parse("${top cpu 3}")
    tcp1=conky_parse("${top pid 1}")
    tcp2=conky_parse("${top pid 2}")
    tcp3=conky_parse("${top pid 3}")
    line=line+1;pass={line=line,text=tcn1,textx=flx+88};write(pass)
            pass={line=line,text=tcc1,textx=flx+135};write(pass)
            pass={line=line,text=tcp1,textx=flx+180};write(pass)
    line=line+1;pass={line=line,text=tcn2,textx=flx+88};write(pass)
            pass={line=line,text=tcc2,textx=flx+135};write(pass)
            pass={line=line,text=tcp2,textx=flx+180};write(pass)
    line=line+1;pass={line=line,text=tcn3,textx=flx+88};write(pass)
            pass={line=line,text=tcc3,textx=flx+135};write(pass)
            pass={line=line,text=tcp3,textx=flx+180};write(pass)
    line=line+1;pass={line=line,hr=1};write(pass)
    line=line+1;pass={line=line,text="D A T E    A N D    T I M E",textx=flx};write(pass)
    line=line+1;pass={line=line,hr=1};write(pass)
    line=line+1;pass={line=line,text="DATE",textx=flx};write(pass)
    date=": " .. os.date("%m/%d/%Y")
            pass={line=line,text=date,textx=flx+88};write(pass)
    line=line+1;pass={line=line,text="TIME",textx=flx};write(pass)
    time=": " .. os.date("%H:%M:%S")
            pass={line=line,text=time,textx=flx+88};write(pass)
    --####################################################################################################
    --CALENDAR
    --title text color
    tred,tgreen,tblue,talpha=1,1,1,1
    --title text font
    tfont="Acknowledge TT BRK"
    --title text size
    tfontsize=12
    --###################################################
    --main body text color
    bred,bgreen,bblue,balpha=1,1,1,1
    --main body text font
    mfont="Acknowledge TT BRK"
    --main body text size
    mfontsize=12
    --###################################################
    --highlight text color
    hred,hgreen,hblue,halpha=1,1,0,1
    --highlight font
    hfont="Acknowledge TT BRK"
    --highlight size
    hfontsize=12
    --###################################################
    --surrounding numbers (previous and next month) 1=on, 0=off
    surround=1
    --surrounding dates text color
    sred,sgreen,sblue,salpha=0.6,0.6,0.6,1
    --surrounding font
    sfont="Acknowledge TT BRK"
    --surounding size
    sfontsize=12
    --##################################################
    --position
    across=50
    flx=5;fly=28;lw=11
    down=fly+((30-1)*lw)
    --###################################################
    --horizontal gap between dates
    gaph=25
    --###################################################
    --gap between day titles and first line
    gapt=11
    --###################################################
    --gap between calendar line
    gapl=11
    --###################################################
    --spacer -- this can help with alignment enter 0, 1 space or 2 spaces between the ""
    spacer=""
    --###################################################
    --start day, enter 0 for sunday, 1 for monday
    sday=0
    --###################################################
    --## END OF CALENDAR SETUP ##########################
    --###################################################
    --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-sday
    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
    --###################################################
    --print calendar titles
    --###################################################
    cairo_select_font_face (cr, tfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, tfontsize);
    cairo_set_source_rgba (cr,tred,tgreen,tblue,talpha)
    if sday==0 then
    dys={"SU","MO","TU","WE","TH","FR","SA"}
    else
    dys={"MO","TU","WE","TH","FR","SA","SU"}
    end
    --------------------------------
    for i=1,7 do
    cairo_move_to (cr, across+(gaph*(i-1)), down)
    cairo_show_text (cr, dys[i])
    cairo_stroke (cr)
    end
    cairo_select_font_face (cr, mfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    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)),down+gapt+(gapl*((fn-1)/7)))
    cairo_show_text (cr, dnum[i])
    cairo_stroke (cr)
    end
    end
    cairo_select_font_face (cr, hfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    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)),down+gapt+(gapl*((fn-1)/7)))
    cairo_show_text (cr, dnumh[i])
    cairo_stroke (cr)
    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
    cairo_select_font_face (cr, sfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    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)),down+gapt+(gapl*((fn-1)/7)))
    cairo_show_text (cr, snum[i])
    cairo_stroke (cr)
    end
    end
    end
    --###################################################
    --end of calendar
    if mdays+start_day<36 then 
    line=line
    else 
    line=line+1
    end
    --####################################################################################################
    line=line+7;pass={line=line,hr=1};write(pass)
    line=line+1;pass={line=line,text="N E T W O R K",textx=flx};write(pass)
    line=line+1;pass={line=line,hr=1};write(pass)
    line=line+1;pass={line=line,text="CURRENT ACTIVITY:",textx=flx};write(pass)
    line=line+1;pass={line=line,text="UPSPEED",textx=flx+40};write(pass)
    upspeed=": " .. conky_parse("${upspeed eth1}")
            pass={line=line,text=upspeed,textx=flx+125};write(pass)
    line=line+1;pass={line=line,text="UPLOADED",textx=flx+40};write(pass)
    uploaded=": " .. conky_parse("${totalup eth1}")
            pass={line=line,text=uploaded,textx=flx+125};write(pass)
    line=line+3;pass={line=line,text="DOWNSPEED",textx=flx+40};write(pass)
    downspeed=": " .. conky_parse("${downspeed eth1}")
            pass={line=line,text=downspeed,textx=flx+125};write(pass)
    line=line+1;pass={line=line,text="DOWNLOADED",textx=flx+40};write(pass)
    downloaded=": " .. conky_parse("${totaldown eth1}")
            pass={line=line,text=downloaded,textx=flx+125};write(pass)
    line=line+3;pass={line=line,text="NETWORK DATA:",textx=flx};write(pass)
    nwtime=os.date("%a %D")
    line=line+1;pass={line=line,text=nwtime,textx=flx};write(pass)
    nwmnth=os.date("%B")
            pass={line=line,text=nwmnth,textx=flx+115};write(pass)
    --#################################################
    --network info on 1800 timer
    nwtimer=(updates %1800)+1
    if nwtimer==1 or updates==10 then--update
    --daily
    lookup=os.date("%D")
    local f = io.popen("vnstat -d |grep '" .. lookup .. "' | awk -F'" .. lookup .. "' '{print $2}' |awk -F'|' '{print $2}'| sed -e 's/^[ \t]*//'") -- runs command
    rxd=f:read("*a") -- read output of command
    rxd=string.gsub(rxd,"[\t\n\r]","")
    f:close()
    local f = io.popen("vnstat -d |grep '" .. lookup .. "' | awk -F'" .. lookup .. "' '{print $2}' |awk -F'|' '{print $3}'| sed -e 's/^[ \t]*//'") -- runs command
    txd= f:read("*a") -- read output of command
    txd=string.gsub(txd,"[\t\n\r]","")
    f:close()
    local f = io.popen("vnstat -d |grep '" .. lookup .. "' | awk -F'" .. lookup .. "' '{print $2}' |awk -F'|' '{print $4}'| sed -e 's/^[ \t]*//'") -- runs command
    tld= f:read("*a") -- read output of command
    tld=string.gsub(tld,"[\t\n\r]","")
    f:close()
    local f = io.popen("vnstat -d |grep '" .. lookup .. "' | awk -F'" .. lookup .. "' '{print $2}' |awk -F'|' '{print $5}'| sed -e 's/^[ \t]*//'") -- runs command
    avd= f:read("*a") -- read output of command
    avd=string.gsub(avd,"[\t\n\r]","")
    f:close()
    --monthly
    lookup=os.date("%h")
    local f = io.popen("vnstat -m |grep '" .. lookup .. "' | awk -F'" .. lookup .. "' '{print $2}' |awk -F'|' '{print $2}'| sed -e 's/^[ \t]*//'") -- runs command
    rxm= f:read("*a") -- read output of command
    rxm=string.gsub(rxm,"[\t\n\r]","")
    f:close()
    local f = io.popen("vnstat -m |grep '" .. lookup .. "' | awk -F'" .. lookup .. "' '{print $2}' |awk -F'|' '{print $3}'| sed -e 's/^[ \t]*//'") -- runs command
    txm= f:read("*a") -- read output of command
    txm=string.gsub(txm,"[\t\n\r]","")
    f:close()
    local f = io.popen("vnstat -m |grep '" .. lookup .. "' | awk -F'" .. lookup .. "' '{print $2}' |awk -F'|' '{print $4}'| sed -e 's/^[ \t]*//'") -- runs command
    tlm= f:read("*a") -- read output of command
    tlm=string.gsub(tlm,"[\t\n\r]","")
    f:close()
    local f = io.popen("vnstat -m |grep '" .. lookup .. "' | awk -F'" .. lookup .. "' '{print $2}' |awk -F'|' '{print $5}'| sed -e 's/^[ \t]*//'") -- runs command
    avm= f:read("*a") -- read output of command
    avm=string.gsub(avm,"[\t\n\r]","")
    f:close()
    end
    --#################################################
    line=line+1;pass={line=line,text="RX:",textx=flx};write(pass)
            pass={line=line,text="RX:",textx=flx+115};write(pass)
            pass={line=line,text=rxd,textx=flx+25};write(pass)
            pass={line=line,text=rxm,textx=flx+140};write(pass)
    line=line+1;pass={line=line,text="TX:",textx=flx};write(pass)
            pass={line=line,text="TX:",textx=flx+115};write(pass)
            pass={line=line,text=txd,textx=flx+25};write(pass)
            pass={line=line,text=txm,textx=flx+140};write(pass)
    line=line+1;pass={line=line,text="TL:",textx=flx};write(pass)
            pass={line=line,text="TL:",textx=flx+115};write(pass)
            pass={line=line,text=tld,textx=flx+25};write(pass)
            pass={line=line,text=tlm,textx=flx+140};write(pass)
    line=line+1;pass={line=line,text="AV:",textx=flx};write(pass)
            pass={line=line,text="AV:",textx=flx+115};write(pass)
            pass={line=line,text=avd,textx=flx+25};write(pass)
            pass={line=line,text=avm,textx=flx+140};write(pass)
    line=line+1.5;pass={line=line,text="30 DAY RX",textx=flx};write(pass)
            pass={line=line,text="30 DAY TX",textx=flx+110};write(pass)
    --####################################################################################################
    --vnstat graphs
    timer1=(updates % 1800)+1
    if timer1==1 or updates==8 then
    local f = io.popen("vnstat -d | grep '|' | tail -n 31 | sed ':a;N;$!ba;s/\\n/ /g' | sed -e 's/estimated/| |/' -e 's/--//g' -e 's/ //g'") -- runs command
    vnday=f:read("*a") -- read output of command
    f:close()
    print (vnday)
    vnday=string.split(vnday, "|")
    
    lvntab=#vnday-1
    for i=1,lvntab do
    if vnday[i]=="" then vnday[i]="1nodata" end
    --print (vnday[i])
    end
    if dunit(vnday[6+4])=="KiB" then
    end
    
    vnday30rx={}
    for i=0,(lvntab/9) do
    if vnday[5+(i*4)]=="nil" then vnday[5+(i*4)]="1nodata" end
    if dunit(vnday[5+(i*4)])=="GiB" then 
    vnday30rx[i]=tonumber(dnumg(vnday[5+(i*4)]))*1024
    end 
    if dunit(vnday[5+(i*4)])=="KiB" then 
    vnday30rx[i]=tonumber(dnumg(vnday[5+(i*4)]))/1024 
    end
    if dunit(vnday[5+(i*4)])=="MiB" then 
    vnday30rx[i]=tonumber(dnumg(vnday[5+(i*4)]))
    end--if
    end--for
    
    vnday30tx={}
    for i=1,(lvntab/9) do
    if vnday[6+(i*4)]=="nil" then vnday[6+(i*4)]="1nodata" end
    if tostring(dunit(vnday[6+(i*4)]))=="GiB" then 
    vnday30tx[i]=tonumber(dnumg(vnday[6+(i*4)]))*1024
    end
    if tostring(dunit(vnday[6+(i*4)]))=="KiB" then 
    vnday30tx[i]=tonumber(dnumg(vnday[6+(i*4)]))/1024
    end
    if tostring(dunit(vnday[6+(i*4)]))=="MiB" then 
    vnday30tx[i]=tonumber(dnumg(vnday[6+(i*4)]))
    end--if
    end--for
    end--timer
    --###############################################################################
    --rx----------------------------------------------------
    --graph position
    acrossx=6.5
    flx=5;fly=28;lw=11
    downy=(fly+((line+5)*lw))+0.5
    gheight=55
    --calculate table height----------------------------
    heightm,position=max(vnday30rx)
    ht=string.split(heightm, "%p")
    ht=string.gsub(ht[1],"^.","")
    htl=string.len(ht)
    add=10^(htl-1)
    addn=add
    while heightm>add do
    add=add+addn
    end--while
    heightm=(add)
    ----------------------------------------------------
    cairo_set_line_width (cr,1)
    height=(gheight/(heightm/100))
    across=acrossx
    down=downy
    for i=1,31 do
    cairo_set_source_rgba (cr,1,1,1,1)
    adjust=2.5
    if vnday30rx[i]==nil then vnday30rx[i]=0 end
    if vnday30rx[i+1]==nil then vnday30rx[i+1]=0 end
    idata=(vnday30rx[i]/100)*height
    iplus=(vnday30rx[i+1]/100)*height
    --if iplus==0 then cairo_set_source_rgba (cr,1,1,1,0) end
    cairo_move_to (cr,(across+(31*adjust))-(i*adjust),down-idata)
    cairo_line_to (cr,(across+(31*adjust))-((i+1)*adjust),down-iplus)
    cairo_stroke (cr)
    heightrx=gheight
    end--for
    font="Acknowledge TT BRK"
    fontsize=12
    tadjrx=-30*adjust-5
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, fontsize);
    cairo_move_to (cr,across-tadjrx,down-((heightrx/4)*0))
    cairo_show_text (cr, "0 M")
    cairo_stroke (cr)
    cairo_move_to (cr,across-tadjrx,down-((heightrx/4)*1))
    cairo_show_text (cr, round((heightm/4)*1,2))
    cairo_stroke (cr)
    cairo_move_to (cr,across-tadjrx,down-((heightrx/4)*2))
    cairo_show_text (cr, round((heightm/4)*2,2))
    cairo_stroke (cr)
    cairo_move_to (cr,across-tadjrx,down-((heightrx/4)*3))
    cairo_show_text (cr, round((heightm/4)*3,2))
    cairo_stroke (cr)
    cairo_move_to (cr,across-tadjrx,down-((heightrx/4)*4))
    cairo_show_text (cr, heightm)
    cairo_stroke (cr)
    --x axis label
    across=across--6
    downs=down+10
    cairo_move_to (cr,across,downs)
    cairo_show_text (cr, "30")
    cairo_stroke (cr)
    add=adjust*10
    cairo_move_to (cr,across+add,downs)
    cairo_show_text (cr, "20")
    cairo_stroke (cr)
    add=add+adjust*10
    cairo_move_to (cr,across+add,downs)
    cairo_show_text (cr, "10")
    cairo_stroke (cr)
    add=add+adjust*10
    cairo_move_to (cr,across+add+2,downs)
    cairo_show_text (cr, "0")
    cairo_stroke (cr)
    --tx-------------------------------------------------------------------------
    --graph position
    acrossx=115.5
    flx=5;fly=28;lw=11
    downy=(fly+((line+5)*lw))+0.5
    gheight=55
    --calculate table height----------------------------
    heightm,position=max(vnday30tx)
    ht=string.split(heightm, "%p")
    ht=string.gsub(ht[1],"^.","")
    htl=string.len(ht)
    add=10^(htl-1)
    addn=add
    while heightm>add do
    add=add+addn
    end--while
    heightm=(add)
    ----------------------------------------------------
    height=(gheight/(heightm/100))
    adjust=2.5
    across=acrossx
    down=downy
    for i=1,31 do
    cairo_set_source_rgba (cr,1,1,1,1)
    if vnday30tx[i]==nil then vnday30tx[i]=0 end
    if vnday30tx[i+1]==nil then vnday30tx[i+1]=0 end
    idata=(vnday30tx[i]/100)*height
    iplus=(vnday30tx[i+1]/100)*height
    cairo_move_to (cr,(across+(31*adjust))-(i*adjust),down-idata)
    cairo_line_to (cr,(across+(31*adjust))-((i+1)*adjust),down-iplus)
    cairo_stroke (cr)
    heighttx=gheight
    end--for
    font="Acknowledge TT BRK"
    fontsize=12
    tadjrx=-30*adjust-5
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
    cairo_set_font_size (cr, fontsize);
    cairo_move_to (cr,across-tadjrx,down-((heighttx/4)*0))
    cairo_show_text (cr, "0 M")
    cairo_stroke (cr)
    cairo_move_to (cr,across-tadjrx,down-((heighttx/4)*1))
    cairo_show_text (cr, round((heightm/4)*1,2))
    cairo_stroke (cr)
    cairo_move_to (cr,across-tadjrx,down-((heighttx/4)*2))
    cairo_show_text (cr, round((heightm/4)*2,2))
    cairo_stroke (cr)
    cairo_move_to (cr,across-tadjrx,down-((heighttx/4)*3))
    cairo_show_text (cr, round((heightm/4)*3,2))
    cairo_stroke (cr)
    cairo_move_to (cr,across-tadjrx,down-((heighttx/4)*4))
    cairo_show_text (cr, heightm)
    cairo_stroke (cr)
    --x axis label
    across=across--6
    downs=down+10
    cairo_move_to (cr,across,downs)
    cairo_show_text (cr, "30")
    cairo_stroke (cr)
    add=adjust*10
    cairo_move_to (cr,across+add,downs)
    cairo_show_text (cr, "20")
    cairo_stroke (cr)
    add=add+adjust*10
    cairo_move_to (cr,across+add,downs)
    cairo_show_text (cr, "10")
    cairo_stroke (cr)
    add=add+adjust*10
    cairo_move_to (cr,across+add+2,downs)
    cairo_show_text (cr, "0")
    cairo_stroke (cr)
    --end of vnstat graphs
    --####################################################################################################
    line=line+8.5;pass={line=line,hr=1};write(pass)
    line=line+1;pass={line=line,text="W E A T H E R",textx=flx};write(pass)
    line=line+1;pass={line=line,hr=1};write(pass)
    --weather data
    --reads KSDK website and extracts current weather conditions-------------------------------------------
    timerw=(updates %1800)+1
    if timerw==1 or updates==8 then
    local f = io.popen("curl -L 'http://www.ksdk.com/weather/default.aspx' | grep -A37 '<h3>CURRENT CONDITIONS</h3>'")
    data1= f:read("*a")
    f:close()
    local f = io.popen("echo '" .. data1 .. "' | gawk -F'>' -v RS='<' 'RT{print $NF}' | sed -e '/^[ \r]*$/d' -e 's/&deg;/°/g' -e 's/%/%/g'")
    data= f:read("*a")
    data=string.split(data,"\n")
    f:close()
    end
    line=line+1;pass={line=line,text=data[2],textx=flx};write(pass)
    line=line+1;pass={line=line,text="CONDITIONS: " .. data[5],textx=flx};write(pass)
    line=line+1;pass={line=line,text="TEMP: " .. data[3] .. data[4],textx=flx};write(pass)
    line=line+1;pass={line=line,text=data[6] .. " " .. data[7],textx=flx};write(pass)
    line=line+1;pass={line=line,text=data[8] .. " " .. data[9],textx=flx};write(pass)
    line=line+1;pass={line=line,text=data[10] .. " " .. data[11],textx=flx};write(pass)
    line=line+2;pass={line=line,text="FORECAST",textx=flx};write(pass)
    line=line+1;pass={line=line,text=data[12],textx=flx};write(pass)
            pass={line=line,text=data[14],textx=flx+65};write(pass)
            pass={line=line,text=data[16],textx=flx+125};write(pass)
    line=line+1;pass={line=line,text=data[13],textx=flx};write(pass)
            pass={line=line,text=data[15],textx=flx+65};write(pass)
            pass={line=line,text=data[17],textx=flx+125};write(pass)
    --#################################################################################
    --bars -- bnum,barx,bary,bhigh,blong,bout
    flx=5;fly=28;lw=11
    ---------------------
    memperc=conky_parse("${memperc}");add=fly+((4)*lw)
    pass={bnum=memperc,barx=flx+40,bary=add,bhigh=6,blong=173,bout=1};bar(pass)
    rootbar=tonumber(conky_parse("${fs_used_perc /}"));add=fly+((12)*lw)
    pass={bnum=rootbar,barx=flx,bary=add,bhigh=6,blong=150,bout=1};bar(pass)
    homebar=tonumber(conky_parse("${fs_used_perc /home}"));add=fly+((14)*lw)
    pass={bnum=rootbar,barx=flx,bary=add,bhigh=6,blong=150,bout=1};bar(pass)
    core1=tonumber(conky_parse("${cpu cpu1}"));add=fly+((16)*lw)
    pass={bnum=core1,barx=flx+130,bary=add,bhigh=6,blong=82,bout=1};bar(pass)
    core2=tonumber(conky_parse("${cpu cpu2}"));add=fly+((17)*lw)
    pass={bnum=core2,barx=flx+130,bary=add,bhigh=6,blong=82,bout=1};bar(pass)
    core3=tonumber(conky_parse("${cpu cpu3}"));add=fly+((18)*lw)
    pass={bnum=core3,barx=flx+130,bary=add,bhigh=6,blong=82,bout=1};bar(pass)
    end--end if 5
    end--end main function
    
    function write(t)
    flx=5;fly=28;lw=11
    local line=t.line
    add=fly+((line-1)*lw)
    --set default font,fsize and face
    if t.textx==nil then textx=flx else textx=t.textx end
    if t.texty==nil then texty=add else texty=t.texty end
    if t.hr==nil then hr=0 else hr=t.hr end
    if t.font==nil then font="Acknowledge tt BRK" else font=t.font end
    if t.fsize==nil then fsize=14 else fsize=t.fsize end
    if t.face==nil then face=CAIRO_FONT_WEIGHT_NORMAL end
    if t.face=="bold" then face=CAIRO_FONT_WEIGHT_BOLD end
    if t.tred==nil then tred=1 else tred=t.tred end
    if t.tgreen==nil then tgreen=1 else tgreen=t.tgreen end
    if t.tblue==nil then tblue=1 else tblue=t.tblue end
    if t.talpha==nil then talpha=1 else talpha=t.talpha end
    if t.talpha==nil then talpha=1 else talpha=t.talpha end
    if t.text~=nil then
    local text=t.text
    cairo_move_to(cr,textx,texty)
    cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, face)
    cairo_set_font_size (cr, fsize);
    cairo_set_source_rgba (cr,tred,tgreen,tblue,talpha)
    cairo_show_text (cr,text)
    cairo_stroke (cr)
    end
    if t.hrl==nil then hrl=250 else hrl=t.hrl end
    if t.hr~=nil then
    cairo_set_source_rgba (cr,1,1,1,1)
    cairo_move_to (cr,textx,texty+0.5-3)
    cairo_set_line_width (cr,1)
    cairo_rel_line_to (cr,hrl,0)
    cairo_stroke (cr)
    end
    end
    
    function bar(t)
    local bnum=t.bnum
    if t.bmax==nil then bmax=100 else bmax=t.bmax end
    local barx=t.barx+0.5
    local bary=t.bary+0.5
    local bhigh=t.bhigh
    local blong=t.blong
    local bout=t.bout
    local length=((bnum/bmax)*blong)
    cairo_rectangle (cr,barx,bary,length,-bhigh)
    cairo_set_source_rgba (cr,1,1,1,1)
    cairo_fill (cr)
    if bout==1 then
    cairo_rectangle (cr,barx,bary,blong,-bhigh)
    cairo_set_source_rgba (cr,1,1,1,1)
    cairo_set_line_width (cr,1)
    cairo_stroke (cr)
    end
    end
    conkyrc
    Code:
    ##############################################
    #  Settings
    ##############################################
    max_specials 1999000
    max_user_text 1900000
    background no
    use_xft yes
    xftfont Acknowledge TT BRK:size=10
    xftalpha 1
    update_interval 1
    total_run_times 0
    own_window yes
    own_window_transparent yes
    own_window_type override
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
    minimum_size 210 900
    maximum_width 210
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders yes
    default_color white
    default_shade_color black
    default_outline_color white
    alignment top_right
    gap_x 10
    gap_y 0
    no_buffers yes
    uppercase no
    cpu_avg_samples 2
    override_utf8_locale yes
    text_buffer_size 100000
    top_name_width 5
    
    lua_load /home/mcdowall/lua/calendar2.lua
    lua_draw_hook_pre draw_fig
    
    TEXT
    
    
    
    
    
    
    ${voffset 6}${memgraph 40,80}
    ${goto 160}${diskiograph_read sdb 20,53}
    ${voffset -6}${goto 160}${diskiograph_write sdb 20,53}
     
     
     
    ${voffset 9}${cpugraph 40,80}
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
    ${goto 45}${upspeedgraph 15,172 eth0}
    
    ${voffset 6}${goto 45}${downspeedgraph 15,172 eth0}
    Last edited by mrpeachy; April 2nd, 2011 at 01:48 AM.

  7. #16907
    Join Date
    Feb 2009
    Beans
    413

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by mrpeachy View Post
    try this
    Code:
    ${if_match ${exec ls /media | grep -c "Ext VID1.5"} == 1}${voffset 5}${voffset -2}${font DroidSansFallback:size=8.3}${offset 4}Ext VID1.5: ${font DroidSans:size=8.3} ${fs_used /media/Ext VID1.5}/ ${fs_size /media/Ext VID1.5}${alignr}${fs_used_perc /media/Ext VID1.5}%${font}${else}${voffset 5}${voffset -2}${font DroidSansFallback:size=8.3}${offset 4}${color dark red}Ext VID1.5: ${font DroidSans:size=6.4}${color red} NOT CONNECTED ${alignr}${fs_used_perc /media/Ext VID1.5}%${font}${endif}
    thanks, that worked perfectly

  8. #16908
    Join Date
    Mar 2011
    Location
    Netherlands
    Beans
    35
    Distro
    Ubuntu 12.04 Precise Pangolin

    Talking Re: Post your .conkyrc files w/ screenshots

    mrpeachy

    now you do it again...
    make me think of changing it all.....
    just as i thought i was ready to keep it like this for a while....

    Proud user of - Ubuntu desktop - Ubuntu Server - Backtrack
    - Preaching Ubuntu since 2006 -
    Long time user of Enigma & Enigma2
    <<Ubuntu user 33417>>

  9. #16909
    Join Date
    Oct 2009
    Location
    Under a rock
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Clicksights View Post
    mrpeachy

    now you do it again...
    make me think of changing it all.....
    just as i thought i was ready to keep it like this for a while....

    The above is just how i like my conky... BUSY
    lots of info, lots of bits and pieces and NO gaps (im in the process of filling the existing gaps right now!)

    and sooner or later (with conky 2, we will all be constructing our conkies in lua )
    Last edited by mrpeachy; April 2nd, 2011 at 07:08 AM.

  10. #16910
    Join Date
    Dec 2010
    Location
    France, Paris
    Beans
    49
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Post your .conkyrc files w/ screenshots

    Hello conky users! I've been fidling with conky for a couple of hours and (you've probably been asked for this a lot) I can't make it transparent.

    I have Lucid 64bit and compiz in normal mode.

    Here is my .conkyrc (default with some modification for double buffers and other stuff)
    Code:
    alignment top_right
    background no
    border_width 1
    cpu_avg_samples 2
    default_color white
    default_outline_color white
    default_shade_color white
    draw_borders no
    draw_graph_borders yes
    draw_outline no
    draw_shades no
    use_xft yes
    xftfont DejaVu Sans Mono:size=12
    gap_x 5
    gap_y 60
    minimum_size 5 5
    net_avg_samples 2
    double_buffer yes
    out_to_console no
    out_to_stderr no
    extra_newline no
    own_window yes
    own_window_class Conky
    own_window_type desktop
    own_window_transparent yes
    #own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    stippled_borders 0
    update_interval 1.0
    uppercase no
    use_spacer none
    show_graph_scale no
    show_graph_range no
    
    TEXT
    ${scroll 16 $nodename - $sysname $kernel on $machine | }
    $hr
    ${color grey}Uptime:$color $uptime
    ${color grey}Frequency (in MHz):$color $freq
    ${color grey}Frequency (in GHz):$color $freq_g
    ${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 4}
    ${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4}
    ${color grey}CPU Usage:$color $cpu% ${cpubar 4}
    ${color grey}Processes:$color $processes  ${color grey}Running:$color $running_processes
    $hr
    ${color grey}File systems:
     / $color${fs_used /}/${fs_size /} ${fs_bar 6 /}
    ${color grey}Networking:
    Up:$color ${upspeed eth0} ${color grey} - Down:$color ${downspeed eth0}
    $hr
    ${color grey}Name              PID   CPU%   MEM%
    ${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
    ${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
    ${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
    ${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
    Meet me at the pier at midnight. We will stare out at the ocean one last time..

Page 1691 of 2316 FirstFirst ... 6911191159116411681168916901691169216931701174117912191 ... 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
  •