Page 1590 of 2348 FirstFirst ... 5901090149015401580158815891590159115921600164016902090 ... LastLast
Results 15,891 to 15,900 of 23480

Thread: Post your .conkyrc files w/ screenshots

  1. #15891
    Join Date
    Feb 2011
    Beans
    1

    Exclamation My Laptop keys are not working after connecting with wireless keyboard (Please Help)

    My Laptop keys are not working after connecting with wireless keyboard (Please Help)


    I'm using ubuntu for more than a year in my laptop right now using Ubuntu 10.04.

    My laptop keyboard keys are not working
    Recently i brought wireless keyboard, so i started using my wireless keyboard. Few days later only i find out in my Laptop Keyboard keys are not working properly.
    Please anyone tell me how to change to the previous setting, i have tried System >> Preference >> Keyboard in that keyboard model

    Normally
    abcdefghijklmnopqrstuvwxyz

    I'm Getting in my laptop
    abcdefgh51230n6*qrst4vwxyz

    Wireless Keyboard Details
    Brand Name : HP
    Product No.: GM322AA
    Model No. : 5309URF

    Laptop Details
    Brand Name : Compaq Presario
    Model No. : C700

    Help me out, i can't able to take my laptop outside without my wireless keyboard, and i have searched a lot to find some result, but i can't able to find anything.

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

    Re: Post your .conkyrc files w/ screenshots

    m.sridhaar you definately posted in the wrong place. I would post in Absolute Beginner talk if I were you
    Quote Originally Posted by 42dorian View Post
    Yes. But, the PM system limits you to 5 people at a time. So, yes, "Everyone" should know, but at 5 per message it'd take up a lot of time and message space (We're only allowed 500 total in our Inboxes) for a single person to undertake. I picked the 5 most recent frequent/knowledgeable posters in the "Old" thread.

    I think it'd be safe to keep a link to the old thread handy for reference until this thread has grown into it's own.
    when i say everyone I mean frequent posters to the old thread. Sector11, mobilediesel, dk75, K, BoredOOMM, Crinos512, etc. who havent yet posted here
    I'm a super power user

  3. #15893
    Join Date
    Apr 2007
    Beans
    195

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by djyoung4 View Post
    m.sridhaar you definately posted in the wrong place. I would post in Absolute Beginner talk if I were you

    when i say everyone I mean frequent posters to the old thread. Sector11, mobilediesel, dk75, K, BoredOOMM, Crinos512, etc. who havent yet posted here
    As did I. "Everyone" isn't a list I remember every name of I'm afraid. I've sent 2 messages so far, 10 people notified basically. I didn't get to dk75, "K" (Unless you mean kaivalagi), BOOMM, or Crinos512. Got many others though. Kinda hoping their presence will bring the rest to be honest.

  4. #15894
    Join Date
    Aug 2005
    Location
    Mars
    Beans
    245

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by 42dorian View Post
    So, is this the "New" thread then?






  5. #15895
    Join Date
    Apr 2007
    Beans
    195

    Re: Post your .conkyrc files w/ screenshots

    Well, it's been a few posts since it was about Conky, so, I'm posting a few updates I've made. I'm still not getting the right output on my Network conky. Seems weird to me.

    .conkyrc.main
    Code:
    #-----Conky Settings
    background yes
    no_buffers yes
    out_to_console no
    top_cpu_separate no
    cpu_avg_samples 2
    net_avg_samples 3
    total_run_times 0
    update_interval 1
    
    #-----Text Settings
    uppercase no
    override_utf8_locale yes
    short_units no
    pad_percents 0
    text_buffer_size 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 top_right
    gap_x 60
    gap_y 25
    maximum_width 600
    minimum_size 360 40
    use_spacer right
    
    #-----Colors
    default_color 808080
    default_outline_color ffffff
    default_shade_color c0c0c0
    color0 ff0000
    color1 ffff00
    color2 ffffff
    color3 808080
    color4 00ff00
    color5 c0c0c0
    color6 ffd700
    color7 00ffff
    color8 808080
    color9 404040
    
    #-----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}
    ${image /home/dorian/Conky/Icons/XubuntuLogoForConky.png -p 250,0 -s 80x80}
    ${color2}WEATHER: ${execi 3600 conkyForecast -l CAXX0342 -d CN}${color0}${hr 1}${color2}
    Now${goto 75}${execi 3600 conkyForecast -l CAXX0342 -d DW -w -s 1}${goto 135}${execi 3600 conkyForecast -l CAXX0342 -d DW -w -s 2}${goto 195}${execi 3600 conkyForecast -l CAXX0342 -d DW -w -s 3}${goto 255}Tomorrow:
    #-----High Temp:/Sunrise Title
    H:${execi 3600 conkyForecast -l CAXX0342 -d HT -u -x}${font TransponderAOE}°${font}C${goto 75}${execi 3600 conkyForecast -l CAXX0342 -d HT -u -x -s 2}${font TransponderAOE}°${font}C${goto 135}${execi 3600 conkyForecast -l CAXX0342 -d HT -u -x -s 3}${font TransponderAOE}°${font}C${goto 195}${execi 3600 conkyForecast -l CAXX0342 -d HT -u -x -s 4}${font TransponderAOE}°${font}C${goto 255}${goto 255}Sunrise:
    #-----Low Temp:/Sunrise
    ${voffset -15}L:${execi 3600 conkyForecast -l CAXX0342 -d LT -u -x}${font TransponderAOE}°${font}C${goto 75}${execi 3600 conkyForecast -l CAXX0342 -d LT -u -x -s 2}${font TransponderAOE}°${font}C${goto 135}${execi 3600 conkyForecast -l CAXX0342 -d LT -u -x -s 3}${font TransponderAOE}°${font}C${goto 195}${execi 3600 conkyForecast -l CAXX0342 -d LT -u -x -s 4}${font TransponderAOE}°${font}C${goto 255}${execi 3600 conkyForecast -l CAXX0342 -d SR -s 2}
    #-----Weather Conditions:/Sunset
    ${color1}${font conkyWeather:size=30}${execi 3600 conkyForecast -l CAXX0342 -d WF}${goto 75}${execi 3600 conkyForecast -l CAXX0342 -d WF -s 2}${goto 135}${execi 3600 conkyForecast -l CAXX0342 -d WF -s 3}${goto 195}${execi 3600 conkyForecast -l CAXX0342 -d WF -s 4}${color2}${font}${voffset -25}${goto 255}Sunset:
    ${goto 255}${execi 3600 conkyForecast -l CAXX0342 -d SS -s 2}
    #-----Moon Phase Title
    ${goto 255}Moon 
    ${goto 255}Phase:
    ${voffset -25}${goto 100}Night Values:#-----Night Values
    ${voffset 25}${goto 5}H:${execi 3600 conkyForecast -l CAXX0342 -d HT -u -x -n}${font TransponderAOE}°${font}C${goto 75}${execi 3600 conkyForecast -l CAXX0342 -d HT -u -x -s 2 -n}${font TransponderAOE}°${font}C${goto 135}${execi 3600 conkyForecast -l CAXX0342 -d HT -u -x -s 3 -n}${font TransponderAOE}°${font}C${goto 195}${execi 3600 conkyForecast -l CAXX0342 -d HT -u -x -s 4 -n}${font TransponderAOE}°${font}C
    #-----Low Temp:Night
    ${voffset -15}L:${execi 3600 conkyForecast -l CAXX0342 -d LT -u -x -n}${font TransponderAOE}°${font}C${goto 75}${execi 3600 conkyForecast -l CAXX0342 -d LT -u -x -s 2 -n}${font TransponderAOE}°${font}C${goto 135}${execi 3600 conkyForecast -l CAXX0342 -d LT -u -x -s 3 -n}${font TransponderAOE}°${font}C${goto 195}${execi 3600 conkyForecast -l CAXX0342 -d LT -u -x -s 4 -n}${font TransponderAOE}°${font}C
    #-----Weather Conditions:Night
    ${color1}${font conkyWeather:size=30}${execi 3600 conkyForecast -l CAXX0342 -d WF -n}${goto 75}${execi 3600 conkyForecast -l CAXX0342 -d WF -s 2 -n}${goto 135}${execi 3600 conkyForecast -l CAXX0342 -d WF -s 3 -n}${goto 195}${execi 3600 conkyForecast -l CAXX0342 -d WF -s 4 -n}${color2}${font}
    #-----Wind Direction:/Moon Font
    ${font ConkyWindNESW:size=40}${execi 3600 conkyForecast -l CAXX0342 -d BF}${goto 75}${execi 3600 conkyForecast -l CAXX0342 -d BF -s 2}${goto 135}${execi 3600 conkyForecast -l CAXX0342 -d BF -s 3}${goto 195}${execi 3600 conkyForecast -l CAXX0342 -d BF -s 4}${voffset -120}${goto 310}${font MoonPhases:size=30}${execi 3600 conkyForecast -l CAXX0342 -d MF}${font}
    #-----Wind Speed(With spacing edit by VinDSL):/Moon Phase
    ${voffset 120}${execi 3600 conkyForecast -l CAXX0342 -d WS | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${goto 75}${execi 3600 conkyForecast -l CAXX0342 -d WS -s 2 | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${goto 135}${execi 3600 conkyForecast -l CAXX0342 -d WS -s 3 | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${goto 195}${execi 3600 conkyForecast -l CAXX0342 -d WS -s 4 | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${voffset -125}${goto 255}${execi 3600 conkyForecast -l CAXX0342 -d MP}
    #-----System/Drive Info
    ${voffset 125}${font}${color2}SYSTEM ${color0}${hr 1}${color2}
    CPU1:${goto 55}${freq_g 1}Ghz${goto 120}${color1}R:${cpu cpu1}%${goto 175}Used
    ${color2}CPU2:${goto 55}${freq_g 2}Ghz${goto 120}${color1}L:${cpu cpu2}%${goto 175}Used
    ${color2}RAM:${goto 55}${memmax}${goto 120}${color5}C:${memperc}%${goto 175}Used${color2}
    ${color2}SWAP:${goto 55}${swapmax}${goto 120}${color5}M:${swapperc}%${goto 175}Used${color2}
    #-----Main Drives
    ${color2}SYSTEM DRIVES ${color0}${hr 1}${color2}
    ${color2}Root:${goto 50}${fs_size /}${goto 110}${fs_used_perc /}%${goto 150}Used${goto 190}${color0}${fs_bar 5,120 /}
    ${color2}Home:${goto 50}${fs_size /home}${goto 110}${fs_used_perc /home}%${goto 150}Used${goto 190}${color1}${fs_bar 5,120 /home}
    ${color2}Test1:${goto 50}${fs_size /media/Test1}${goto 110}${fs_used_perc /media/Test1}%${goto 150}Used${goto 190}${color5}${fs_bar 5,120 /media/Test1}
    ${color2}Test2:${goto 50}${fs_size /media/Test2}${goto 110}${fs_used_perc /media/Test2}%${goto 150}Used${goto 190}${color5}${fs_bar 5,120 /media/Test2}
    ${color2}${if_mounted /media/120}120:${goto 50}${fs_size /media/120}${goto 110}${fs_used_perc /media/120}%${goto 150}Used${goto 190}${color5}${fs_bar 5,120 /media/120}${else}120:${goto 50}Not Connected${endif}
    #-----USB Drives (Special because it checks to see if they're plugged in first.)
    ${color2}CONNECTED DRIVES ${color0}${hr 1}${color2}
    ${if_mounted /media/7GBACKUP}${color2}7GBACKUP:${goto 100}${fs_size /media/7GBACKUP}${goto 160}${fs_used_perc /media/7GBACKUP}%${goto 200}Used${goto 240}${color1}${fs_bar 5,120 /media/7GBACKUP}${else}${color2}7GBACKUP: N/A${endif}
    ${if_mounted /media/7GBACKUP2}${color2}7GBACKUP2:${goto 100}${fs_size /media/7GBACKUP2}${goto 160}${fs_used_perc /media/7GBACKUP2}%${goto 200}Used${goto 240}${color1}${fs_bar 5,120 /media/7GBACKUP2}${else}${color2}7GBACKUP2: N/A${endif}
    ${if_mounted /media/7GBACKUP3}${color2}7GBACKUP3:${goto 100}${fs_size /media/7GBACKUP3}${goto 160}${fs_used_perc /media/7GBACKUP3}%${goto 200}Used${goto 240}${color1}${fs_bar 5,120 /media/7GBACKUP3}${else}${color2}7GBACKUP3: N/A${endif}
    #-----Network Info
    ${color2}NETWORK ${color0}${hr 1}${color2}
    ${color2}Hostname${goto 95}$nodename${goto 145}|${goto 165}Inbound${goto 235}|${goto 245}Outbound
    INet: 
    ${addr eth1}${goto 145}|${goto 165}${color4}${downspeed eth1}${goto 220}/s${goto 235}${color2}|${goto 245}${color1}${upspeed eth1}${goto 305}/s${image ~/Conky/Icons/Globe.png -p 330,730 -s 20x20}
    ${color2}Private
    ${addr eth0}${goto 145}|${goto 165}${color4}${downspeed eth0}${goto 220}/s${goto 235}${color2}|${goto 245}${color1}${upspeed eth0}${goto 305}/s${image ~/Conky/Icons/Private.png -p 330,770 -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,810 -s 20x20}
    .conkyrc.clock
    Code:
    #-----Run in Background
    background yes
    #-----Use XFT for Fonts
    use_xft yes
    xftfont TransponderAOE:size=32
    xftalpha 0.5
    #-----How often to run, in seconds
    update_interval 1.0
    #-----Window Controls, Has it's own, Normal, Transparent Window...
    own_window yes
    own_window_type normal
    own_window_transparent yes
    #-----...Undecorated, Sticky Window without putting it in the Taskbar or Pager, all Below everything else.
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    #-----Text Buffer, how big a script can be when called.
    text_buffer_size 2048
    #-----Window Size and Width
    minimum_size 350 10
    maximum_width 400
    #-----Stops the Blinking!
    double_buffer yes
    #-----Don't draw any shadows, shades, or outlines for the window or text.
    draw_shades no
    draw_outline no
    draw_borders no
    #-----DO draw borders around the graphs
    draw_graph_borders yes
    #-----Put the whole thing, top right.
    alignment bottom_left
    #-----Gap of 40 pixels between the Conky, and the edge of the screen, No gap at the top or bottom.
    gap_x 0
    gap_y -600
    #-----Disables file system buffers from used memory
    no_buffers yes
    #-----How many samples to average for measuring CPU activity.
    cpu_avg_samples 2
    #---Dunno exactly, required for Weather section to work properly.
    override_utf8_locale yes
    #-----Helps keep certain things aligned.
    use_spacer right
    
    #-----Code shortcut for colours.
    default_color 000000          #Black
    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.
    ${voffset -30}${font DiamondFantasy:size=16}${color6}${hr 2}${goto 150}${color2}Time ${color6}${hr 2}${color2}
    #-----This is how to do a proper shadow hilight.
    ${font TransponderAOE:size=60}${color7}${offset -13}${goto 10}${time %l:%M:%S %p}
    ${voffset -100}${font TransponderAOE:size=60}${color0}${offset -15}${goto 10}${time %l:%M:%S %p}${font}
    #-----Calendar by VinDSL (Version 3)
    ${font DiamondFantasy:size=16}${voffset -30}${color2}CALENDAR:${goto 100}${execpi 60 date +'%B${offset 6}%Y'}${color6}${hr 1}${color2}
    ${voffset 25}${font TransponderAOE:bold:size=12}${color2}${alignc 130}${time %A}${font}
    ${voffset -40}${font TransponderAOE:bold:size=22}${color4}${alignc 130}${time %d}${font}
    ${voffset -40}${font TransponderAOE:bold:size=12}${color2}${alignc 130}${time %B}${font}
    ${voffset -60}${font TransponderAOE:bold:size=12}${color2}${alignc 130}${time %Y}${font}
    ${voffset -175}${font TransponderAOE:bold:size=14}${color7}${execpi 1800 cal | sed '1d' | sed s/^/"\$\{offset 100"\}/ | sed '/^ *$/d' | sed 's/\<'"$(date +%-d)"'\>/${color0}&${color7}/'}${font}
    ${voffset -212}${font TransponderAOE:bold:size=14}${color0}${execpi 1800 cal | sed '1d' | sed s/^/"\$\{offset 100"\}/ | sed '/^ *$/d' | sed 's/\<'"$(date +%-d)"'\>/${color1}&${color0}/'}${font}
    ${voffset -180}${font CutOutsFor3DFX:size=85}${color8}${alignc 178}2${font}
    .conkyrc.network (Still not using the right data for Monthly.)
    Code:
    #-----Run in Background
    background yes
    #-----Use XFT for Fonts
    use_xft yes
    xftfont DiamondFantasy:size=16
    xftalpha 1.0
    #-----How often to run, in seconds
    update_interval 1.0
    #-----Window Controls, Has it's own, Normal, Transparent Window...
    own_window yes
    own_window_type normal
    own_window_transparent yes
    #-----...Undecorated, Sticky Window without putting it in the Taskbar or Pager, all Below everything else.
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    #-----Text Buffer, how big a script can be when called.
    text_buffer_size 2048
    #-----Window Size and Width
    minimum_size 350 0
    maximum_width 600
    #-----Gap of 50 pixels between the Conky, and the edge of the screen, Enough gap at the top or bottom to put this script in the right spot.
    gap_x 75
    gap_y 125
    #-----Put the whole thing, bottom right.
    alignment bottom_right
    #-----Stops the Blinking!
    double_buffer yes
    #-----Don't draw any shadows, shades, or outlines for the window or text.
    draw_shades no
    draw_outline no
    draw_borders no
    #-----DO draw borders around the graphs
    draw_graph_borders yes
    #-----Disables file system buffers from used memory
    no_buffers yes
    #-----How many samples to average for measuring CPU activity.
    cpu_avg_samples 2
    #---Dunno exactly, required for Weather section to work properly.
    override_utf8_locale yes
    #-----Helps keep certain things aligned.
    use_spacer right
    max_specials 1024
    #-----Lua Script To Load(When It's Ready, Currently In Development)
    lua_load /home/dorian/Conky/Scripts/BandwidthTotal.lua
    lua_draw_hook_pre conky_draw_vnring
    
    #-----Code shortcut for colours.
    default_color 808080          #Grey
    color0 FF0000                 #Red
    color1 FFFF00		              #Yellow
    color2 FFFFFF                 #White
    color3 808080                 #Grey
    color4 00FF00									#Green
    color5 C0C0C0									#Silver
    color6 FFD700									#Gold
    
    TEXT
    #-----Monthly/Daily Bandwidth Usage
    ${goto 10}${color2}NETWORK DATA USE${color0}${hr 1}${color2}
    ${goto 35}${color2}Today${goto 125}Monthly 
    ${color2}${goto 20}U:${goto 35}${color1}${execi 60 vnstat | grep "today" | awk '{print $5}'}${goto 85}${execi 60 vnstat | grep "today" | awk '{print $6}'}${goto 125}${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}'}${else}${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}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${goto 265}${color2}25
    ${color2}${goto 20}D:${goto 35}${color4}${execi 60 vnstat | grep "today" | awk '{print $2}'}${goto 85}${execi 60 vnstat | grep "today" | awk '{print $3}'}${goto 125}${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}'}${else}${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}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${goto 265}${color2}GB
    ${color2}${goto 20}T:${goto 35}${color5}${execi 60 vnstat | grep "today" | awk '{print $8}'}${goto 85}${execi 60 vnstat | grep "today" | awk '{print $9}'}${goto 125}${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}'}${else}${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}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${goto 220}${color2}Total Allowance${font}
    Rings for Main Conky.
    ringtest.lua
    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>=2 then
    --RING 1 SETUP:CPU Ring-----------------------------------------------------------------------------
    --conky object to be displayed-----
    wtimer=(updates % 30)+1
    if updates>=6 or wtimer>=1 then
    co=tonumber(conky_parse('${cpu cpu1}'))
    end
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=290
    down=460
    --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-----
    wtimer=(updates % 30)+1
    if updates>=6 or wtimer>=1 then
    co=tonumber(conky_parse('${cpu cpu2}'))
    end
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=290
    down=460
    --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-----
    wtimer=(updates % 30)+1
    if updates>=6 or wtimer>=1 then
    co=tonumber(conky_parse('${memperc}'))
    end
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=290
    down=460
    --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-----
    wtimer=(updates % 30)+1
    if updates>=6 or wtimer>=1 then
    co=tonumber(conky_parse('${swapperc}'))
    end
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=290
    down=460
    --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=128,128,128,0.75
    --background ring color and alpha-----
    bgr,bgg,bgb,bga=128,128,128,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 4 SETUP---------------copy setup section and paste for additional rings----------
    end
    end
    And the Bandwidth Guage by mrpeachy.
    BandwidthTotal.lua
    Code:
    --Insert into Conky when Ready:
    --lua_load /home/dorian/Conky/Scripts/BandwidthTotal.lua
    --lua_draw_hook_pre conky_draw_vnring
    
    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_vnring()
    if conky_window == nil then return end
    local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
    cr = cairo_create(cs)
    local updates=tonumber(conky_parse('${updates}'))
    
    if updates> 5 then
    --RING 1 SETUP-----------------------------------------------------------------------------
    --conky object to be displayed-----
    wtimer=(updates % 30)+1
    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" then max=25 end
    if units =="MB" then max=25600 end
    if units =="KB" then max=26214400 end
    if max==nil then max=0 end
    --position-----------------------------
    across=275
    down=55
    --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
    And of course a screenshot of the whole thing as it appears now. New Monitor is WONDERFUL, especially with how well Conky shows up in all that black field. Yes. Still addicted.

    Is it just me, or is there a slight... stepping down effect in my high/low temperatures? Like the vertical alignment is drifting down a little bit each day? If so, how do I fix that?
    Attached Images Attached Images
    Last edited by 42dorian; February 8th, 2011 at 10:29 AM.

  6. #15896
    Join Date
    Jul 2007
    Location
    The U. S. of A.
    Beans
    163
    Distro
    Kubuntu Development Release

    Thumbs down Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by djyoung4 View Post
    ...
    when i say everyone I mean frequent posters to the old thread. Sector11, mobilediesel, dk75, K, BoredOOMM, Crinos512, etc. who havent yet posted here

    Well hello there!

    Sorry I've been scarce lately but I've been playing with a new Android Smartphone (it's a Dell Streak 5" ...I wish I had a conky for android... that would ROCK!) and Kubuntu 11.04 development on my desktop.

    ...and I must say my conky has suffered for it.

    I guess it's time to roll up the sleeves and get back to work...
    Last edited by Crinos512; February 8th, 2011 at 07:27 AM. Reason: 2 pages down, 1586 to go...
    || Kubuntu x86_64 (15.10 Dev.) || KDE 4.9.00 ||
    || Dell Inspiron 570 || 8GB PC3-10600 DDR3 RAM || AMD Phenom II X4 820 @ 2.8Ghz ||
    || Logitech M570 Trackball || Logitech G15 Gaming Keyboard ||
    Conky: ... no such configuration: 'normal'

  7. #15897
    Join Date
    Apr 2007
    Beans
    195

    Re: Post your .conkyrc files w/ screenshots

    Okay, in reference to my above issues with my Network conky, I've finally fixed it:

    .conkyrc.network
    Code:
    #-----Run in Background
    background yes
    #-----Use XFT for Fonts
    use_xft yes
    xftfont DiamondFantasy:size=16
    xftalpha 1.0
    #-----How often to run, in seconds
    update_interval 1.0
    #-----Window Controls, Has it's own, Normal, Transparent Window...
    own_window yes
    own_window_type normal
    own_window_transparent yes
    #-----...Undecorated, Sticky Window without putting it in the Taskbar or Pager, all Below everything else.
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    #-----Text Buffer, how big a script can be when called.
    text_buffer_size 2048
    #-----Window Size and Width
    minimum_size 350 0
    maximum_width 600
    #-----Gap of 50 pixels between the Conky, and the edge of the screen, Enough gap at the top or bottom to put this script in the right spot.
    gap_x 75
    gap_y 125
    #-----Put the whole thing, bottom right.
    alignment bottom_right
    #-----Stops the Blinking!
    double_buffer yes
    #-----Don't draw any shadows, shades, or outlines for the window or text.
    draw_shades no
    draw_outline no
    draw_borders no
    #-----DO draw borders around the graphs
    draw_graph_borders yes
    #-----Disables file system buffers from used memory
    no_buffers yes
    #-----How many samples to average for measuring CPU activity.
    cpu_avg_samples 2
    #---Dunno exactly, required for Weather section to work properly.
    override_utf8_locale yes
    #-----Helps keep certain things aligned.
    use_spacer right
    max_specials 1024
    #-----Lua Script To Load(When It's Ready, Currently In Development)
    lua_load /home/dorian/Conky/Scripts/BandwidthTotal.lua
    lua_draw_hook_pre conky_draw_vnring
    
    #-----Code shortcut for colours.
    default_color 808080          #Grey
    color0 FF0000                 #Red
    color1 FFFF00		              #Yellow
    color2 FFFFFF                 #White
    color3 808080                 #Grey
    color4 00FF00									#Green
    color5 C0C0C0									#Silver
    color6 FFD700									#Gold
    
    TEXT
    #-----Monthly/Daily Bandwidth Usage
    ${goto 10}${color2}NETWORK DATA USE${color0}${hr 1}${color2}
    ${goto 35}${color2}Today${goto 125}Monthly 
    ${color2}${goto 20}U:${goto 35}${color1}${execi 60 vnstat | grep "today" | awk '{print $5}'}${goto 85}${execi 60 vnstat | grep "today" | awk '{print $6}'}${goto 125}${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}'}${else}${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}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${goto 265}${color2}25
    ${color2}${goto 20}D:${goto 35}${color4}${execi 60 vnstat | grep "today" | awk '{print $2}'}${goto 85}${execi 60 vnstat | grep "today" | awk '{print $3}'}${goto 125}${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}'}${else}${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}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${goto 265}${color2}GB
    ${color2}${goto 20}T:${goto 35}${color5}${execi 60 vnstat | grep "today" | awk '{print $8}'}${goto 85}${execi 60 vnstat | grep "today" | awk '{print $9}'}${goto 125}${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}'}${else}${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}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${goto 220}${color2}Total Allowance${font}
    I had to change it to the ${time} variable and use the %m switch to get the numeric version of the month for comparing the if_match to the current month, and I had to keep the grep looking for the three letter short month name. Now it works again. My bad. I'm a schmuck. I'll change my last post and make it my backup.
    Last edited by 42dorian; February 8th, 2011 at 10:28 AM.

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

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Crinos512 View Post
    Well hello there!

    Sorry I've been scarce lately but I've been playing with a new Android Smartphone (it's a Dell Streak 5" ...I wish I had a conky for android... that would ROCK!) and Kubuntu 11.04 development on my desktop.

    ...and I must say my conky has suffered for it.

    I guess it's time to roll up the sleeves and get back to work...
    If you switch to Maemo you won't have that problem.
    cant wait to see what your gonna roll out
    I'm a super power user

  9. #15899
    Join Date
    Apr 2007
    Beans
    195

    Re: Post your .conkyrc files w/ screenshots

    Okay. Many Tweaks, much fighting. New, cleaner layout (AKA I put ALL Network data in the network conky, so it's official now.) with "Improved" background. Now that we've got this thread again, it makes it easy to get hooked on coding again.

    .conkyrc.main (Now Sans Network Data.)
    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    #Grey 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}
    ${image /home/dorian/Conky/Icons/XubuntuLogoForConky.png -p 250,0 -s 80x80}
    ${color2}WEATHER: ${execi 3600 conkyForecast -l CAXX0342 -d CN}${color0}${hr 1}${color2}
    Now${goto 75}${execi 3600 conkyForecast -l CAXX0342 -d DW -w -s 1}${goto 135}${execi 3600 conkyForecast -l CAXX0342 -d DW -w -s 2}${goto 195}${execi 3600 conkyForecast -l CAXX0342 -d DW -w -s 3}${goto 255}Tomorrow:
    #-----High Temp:/Sunrise Title
    H:${execi 3600 conkyForecast -l CAXX0342 -d HT -u -x}${font TransponderAOE}°${font}C${goto 75}${execi 3600 conkyForecast -l CAXX0342 -d HT -u -x -s 2}${font TransponderAOE}°${font}C${goto 135}${execi 3600 conkyForecast -l CAXX0342 -d HT -u -x -s 3}${font TransponderAOE}°${font}C${goto 195}${execi 3600 conkyForecast -l CAXX0342 -d HT -u -x -s 4}${font TransponderAOE}°${font}C${goto 255}${goto 255}Sunrise:
    #-----Low Temp:/Sunrise
    ${voffset -15}L:${execi 3600 conkyForecast -l CAXX0342 -d LT -u -x}${font TransponderAOE}°${font}C${goto 75}${execi 3600 conkyForecast -l CAXX0342 -d LT -u -x -s 2}${font TransponderAOE}°${font}C${goto 135}${execi 3600 conkyForecast -l CAXX0342 -d LT -u -x -s 3}${font TransponderAOE}°${font}C${goto 195}${execi 3600 conkyForecast -l CAXX0342 -d LT -u -x -s 4}${font TransponderAOE}°${font}C${goto 255}${execi 3600 conkyForecast -l CAXX0342 -d SR -s 2}
    #-----Weather Conditions:/Sunset
    ${color1}${font conkyWeather:size=30}${execi 3600 conkyForecast -l CAXX0342 -d WF}${goto 75}${execi 3600 conkyForecast -l CAXX0342 -d WF -s 2}${goto 135}${execi 3600 conkyForecast -l CAXX0342 -d WF -s 3}${goto 195}${execi 3600 conkyForecast -l CAXX0342 -d WF -s 4}${color2}${font}${voffset -25}${goto 255}Sunset:
    ${goto 255}${execi 3600 conkyForecast -l CAXX0342 -d SS -s 2}
    #-----Moon Phase Title
    ${goto 255}Moon 
    ${goto 255}Phase:
    ${voffset -25}${goto 100}Night Values:#-----Night Values
    ${voffset 25}${goto 5}H:${execi 3600 conkyForecast -l CAXX0342 -d HT -u -x -n}${font TransponderAOE}°${font}C${goto 75}${execi 3600 conkyForecast -l CAXX0342 -d HT -u -x -s 2 -n}${font TransponderAOE}°${font}C${goto 135}${execi 3600 conkyForecast -l CAXX0342 -d HT -u -x -s 3 -n}${font TransponderAOE}°${font}C${goto 195}${execi 3600 conkyForecast -l CAXX0342 -d HT -u -x -s 4 -n}${font TransponderAOE}°${font}C
    #-----Low Temp:Night
    ${voffset -15}L:${execi 3600 conkyForecast -l CAXX0342 -d LT -u -x -n}${font TransponderAOE}°${font}C${goto 75}${execi 3600 conkyForecast -l CAXX0342 -d LT -u -x -s 2 -n}${font TransponderAOE}°${font}C${goto 135}${execi 3600 conkyForecast -l CAXX0342 -d LT -u -x -s 3 -n}${font TransponderAOE}°${font}C${goto 195}${execi 3600 conkyForecast -l CAXX0342 -d LT -u -x -s 4 -n}${font TransponderAOE}°${font}C
    #-----Weather Conditions:Night
    ${color1}${font conkyWeather:size=30}${execi 3600 conkyForecast -l CAXX0342 -d WF -n}${goto 75}${execi 3600 conkyForecast -l CAXX0342 -d WF -s 2 -n}${goto 135}${execi 3600 conkyForecast -l CAXX0342 -d WF -s 3 -n}${goto 195}${execi 3600 conkyForecast -l CAXX0342 -d WF -s 4 -n}${color2}${font}
    #-----Wind Direction:/Moon Font
    ${font ConkyWindNESW:size=40}${execi 3600 conkyForecast -l CAXX0342 -d BF}${goto 75}${execi 3600 conkyForecast -l CAXX0342 -d BF -s 2}${goto 135}${execi 3600 conkyForecast -l CAXX0342 -d BF -s 3}${goto 195}${execi 3600 conkyForecast -l CAXX0342 -d BF -s 4}${voffset -120}${goto 310}${font MoonPhases:size=30}${execi 3600 conkyForecast -l CAXX0342 -d MF}${font}
    #-----Wind Speed(With spacing edit by VinDSL):/Moon Phase
    ${voffset 120}${execi 3600 conkyForecast -l CAXX0342 -d WS | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${goto 75}${execi 3600 conkyForecast -l CAXX0342 -d WS -s 2 | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${goto 135}${execi 3600 conkyForecast -l CAXX0342 -d WS -s 3 | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${goto 195}${execi 3600 conkyForecast -l CAXX0342 -d WS -s 4 | sed -e 's/calm'/' Calm/g' -e 's/kph'/' kph/g'}${voffset -125}${goto 255}${execi 3600 conkyForecast -l CAXX0342 -d MP}
    #-----System/Drive Info
    ${voffset 125}${font}${color2}SYSTEM ${color0}${hr 1}${color2}
    CPU1:${goto 55}${freq_g 1}Ghz${goto 120}${color1}R:${cpu cpu1}%${goto 175}Used
    ${color2}CPU2:${goto 55}${freq_g 2}Ghz${goto 120}${color1}L:${cpu cpu2}%${goto 175}Used
    ${color2}RAM:${goto 55}${memmax}${goto 120}${color5}C:${memperc}%${goto 175}Used${color2}
    ${color2}SWAP:${goto 55}${swapmax}${goto 120}${color6}M:${swapperc}%${goto 175}Used${color2}
    #-----Main Drives
    ${color2}SYSTEM DRIVES ${color0}${hr 1}${color2}
    ${color2}Root:${goto 50}${fs_size /}${goto 110}${fs_used_perc /}%${goto 150}Used${goto 190}${color0}${fs_bar 5,120 /}
    ${color2}Home:${goto 50}${fs_size /home}${goto 110}${fs_used_perc /home}%${goto 150}Used${goto 190}${color1}${fs_bar 5,120 /home}
    ${color2}Test1:${goto 50}${fs_size /media/Test1}${goto 110}${fs_used_perc /media/Test1}%${goto 150}Used${goto 190}${color5}${fs_bar 5,120 /media/Test1}
    ${color2}Test2:${goto 50}${fs_size /media/Test2}${goto 110}${fs_used_perc /media/Test2}%${goto 150}Used${goto 190}${color5}${fs_bar 5,120 /media/Test2}
    ${color2}${if_mounted /media/120}120:${goto 50}${fs_size /media/120}${goto 110}${fs_used_perc /media/120}%${goto 150}Used${goto 190}${color5}${fs_bar 5,120 /media/120}${else}120:${goto 50}Not Connected${endif}
    #-----USB Drives (Special because it checks to see if they're plugged in first.)
    ${color2}CONNECTED DRIVES ${color0}${hr 1}${color2}
    ${if_mounted /media/7GBACKUP}${color2}7GBACKUP:${goto 100}${fs_size /media/7GBACKUP}${goto 160}${fs_used_perc /media/7GBACKUP}%${goto 200}Used${goto 240}${color1}${fs_bar 5,120 /media/7GBACKUP}${else}${color2}7GBACKUP: N/A${endif}
    ${if_mounted /media/7GBACKUP2}${color2}7GBACKUP2:${goto 100}${fs_size /media/7GBACKUP2}${goto 160}${fs_used_perc /media/7GBACKUP2}%${goto 200}Used${goto 240}${color1}${fs_bar 5,120 /media/7GBACKUP2}${else}${color2}7GBACKUP2: N/A${endif}
    ${if_mounted /media/7GBACKUP3}${color2}7GBACKUP3:${goto 100}${fs_size /media/7GBACKUP3}${goto 160}${fs_used_perc /media/7GBACKUP3}%${goto 200}Used${goto 240}${color1}${fs_bar 5,120 /media/7GBACKUP3}${else}${color2}7GBACKUP3: N/A${endif}
    .conkyrc.clock (Now using the actual font from the Queen background. Tiny alignment changes too.)
    Code:
    #-----Run in Background
    background yes
    #-----Use XFT for Fonts
    use_xft yes
    xftfont TransponderAOE:size=32
    xftalpha 0.5
    #-----How often to run, in seconds
    update_interval 1.0
    #-----Window Controls, Has it's own, Normal, Transparent Window...
    own_window yes
    own_window_type normal
    own_window_transparent yes
    #-----...Undecorated, Sticky Window without putting it in the Taskbar or Pager, all Below everything else.
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    #-----Text Buffer, how big a script can be when called.
    text_buffer_size 2048
    #-----Window Size and Width
    minimum_size 350 10
    maximum_width 400
    #-----Stops the Blinking!
    double_buffer yes
    #-----Don't draw any shadows, shades, or outlines for the window or text.
    draw_shades no
    draw_outline no
    draw_borders no
    #-----DO draw borders around the graphs
    draw_graph_borders yes
    #-----Put the whole thing, top right.
    alignment bottom_left
    #-----Gap of 40 pixels between the Conky, and the edge of the screen, No gap at the top or bottom.
    gap_x 0
    gap_y -600
    #-----Disables file system buffers from used memory
    no_buffers yes
    #-----How many samples to average for measuring CPU activity.
    cpu_avg_samples 2
    #---Dunno exactly, required for Weather section to work properly.
    override_utf8_locale yes
    #-----Helps keep certain things aligned.
    use_spacer right
    
    #-----Code shortcut for colours.
    default_color 000000          #Black
    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.
    ${voffset -30}${font DiamondFantasy:size=16}${color6}${hr 2}${goto 150}${color2}Time ${color6}${hr 2}${color2}
    #-----This is how to do a proper shadow hilight.
    ${font AGaramond:size=60}${color7}${offset -13}${goto 10}${time %l:%M:%S %p}
    ${voffset -95}${font AGaramond:size=60}${color0}${offset -15}${goto 10}${time %l:%M:%S %p}${font}
    #-----Calendar by VinDSL (Version 3)
    ${font DiamondFantasy:size=16}${voffset -30}${color2}CALENDAR:${goto 100}${execpi 60 date +'%B${offset 6}%Y'}${color6}${hr 1}${color2}
    ${voffset 25}${font TransponderAOE:bold:size=12}${color2}${alignc 135}${time %A}${font}
    ${voffset -40}${font TransponderAOE:bold:size=22}${color4}${alignc 135}${time %d}${font}
    ${voffset -40}${font TransponderAOE:bold:size=12}${color2}${alignc 135}${time %B}${font}
    ${voffset -60}${font TransponderAOE:bold:size=12}${color2}${alignc 135}${time %Y}${font}
    ${voffset -175}${font TransponderAOE:bold:size=14}${color7}${execpi 1800 cal | sed '1d' | sed s/^/"\$\{offset 140"\}/ | sed '/^ *$/d' | sed 's/\<'"$(date +%-d)"'\>/${color0}&${color7}/'}${font}
    ${voffset -212}${font TransponderAOE:bold:size=14}${color0}${execpi 1800 cal | sed '1d' | sed s/^/"\$\{offset 140"\}/ | sed '/^ *$/d' | sed 's/\<'"$(date +%-d)"'\>/${color1}&${color0}/'}${font}
    ${voffset -180}${font CutOutsFor3DFX:size=85}${color8}${alignc 183}2${font}
    .conkyrc.network (Now containing ALL network data separate from the Main.)
    Code:
    #-----Run in Background
    background yes
    #-----Use XFT for Fonts
    use_xft yes
    xftfont DiamondFantasy:size=16
    xftalpha 1.0
    #-----How often to run, in seconds
    update_interval 1.0
    #-----Window Controls, Has it's own, Normal, Transparent Window...
    own_window yes
    own_window_type normal
    own_window_transparent yes
    #-----...Undecorated, Sticky Window without putting it in the Taskbar or Pager, all Below everything else.
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    #-----Text Buffer, how big a script can be when called.
    text_buffer_size 2048
    #-----Window Size and Width
    minimum_size 350 0
    maximum_width 600
    #-----Gap of 50 pixels between the Conky, and the edge of the screen, Enough gap at the top or bottom to put this script in the right spot.
    gap_x 75
    gap_y 125
    #-----Put the whole thing, bottom right.
    alignment bottom_right
    #-----Stops the Blinking!
    double_buffer yes
    #-----Don't draw any shadows, shades, or outlines for the window or text.
    draw_shades no
    draw_outline no
    draw_borders no
    #-----DO draw borders around the graphs
    draw_graph_borders yes
    #-----Disables file system buffers from used memory
    no_buffers yes
    #-----How many samples to average for measuring CPU activity.
    cpu_avg_samples 2
    #---Dunno exactly, required for Weather section to work properly.
    override_utf8_locale yes
    #-----Helps keep certain things aligned.
    use_spacer right
    max_specials 1024
    #-----Lua Script To Load(When It's Ready, Currently In Development)
    lua_load /home/dorian/Conky/Scripts/BandwidthTotal.lua
    lua_draw_hook_pre conky_draw_vnring
    
    #-----Code shortcut for colours.
    default_color 808080          #Grey
    color0 FF0000                 #Red
    color1 FFFF00		              #Yellow
    color2 FFFFFF                 #White
    color3 808080                 #Grey
    color4 00FF00									#Green
    color5 C0C0C0									#Silver
    color6 FFD700									#Gold
    
    TEXT
    #-----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 eth1}${goto 145}|${goto 165}${color4}${downspeed eth1}${goto 220}/s${goto 235}${color2}|${goto 245}${color1}${upspeed eth1}${goto 305}/s${image ~/Conky/Icons/Globe.png -p 330,50 -s 20x20}
    ${color2}Private
    ${addr eth0}${goto 145}|${goto 165}${color4}${downspeed eth0}${goto 220}/s${goto 235}${color2}|${goto 245}${color1}${upspeed eth0}${goto 305}/s${image ~/Conky/Icons/Private.png -p 330,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 20}U:${goto 35}${color1}${execi 60 vnstat | grep "today" | awk '{print $5}'}${goto 85}${execi 60 vnstat | grep "today" | awk '{print $6}'}${goto 125}${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}'}${else}${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}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${goto 265}${color2}25
    ${color2}${goto 20}D:${goto 35}${color4}${execi 60 vnstat | grep "today" | awk '{print $2}'}${goto 85}${execi 60 vnstat | grep "today" | awk '{print $3}'}${goto 125}${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}'}${else}${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}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${goto 265}${color2}GB
    ${color2}${goto 20}T:${goto 35}${color5}${execi 60 vnstat | grep "today" | awk '{print $8}'}${goto 85}${execi 60 vnstat | grep "today" | awk '{print $9}'}${goto 125}${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}'}${else}${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}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${endif}${goto 220}${color2}Total Allowance${font}
    ringtest.lua (slightly new colour change for ease of reading in Main.)
    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>=2 then
    --RING 1 SETUP:CPU Ring-----------------------------------------------------------------------------
    --conky object to be displayed-----
    wtimer=(updates % 30)+1
    if updates>=6 or wtimer>=1 then
    co=tonumber(conky_parse('${cpu cpu1}'))
    end
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=290
    down=460
    --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-----
    wtimer=(updates % 30)+1
    if updates>=6 or wtimer>=1 then
    co=tonumber(conky_parse('${cpu cpu2}'))
    end
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=290
    down=460
    --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-----
    wtimer=(updates % 30)+1
    if updates>=6 or wtimer>=1 then
    co=tonumber(conky_parse('${memperc}'))
    end
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=290
    down=460
    --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-----
    wtimer=(updates % 30)+1
    if updates>=6 or wtimer>=1 then
    co=tonumber(conky_parse('${swapperc}'))
    end
    if co==nil then co=0 end
    --max number--------------------------
    max=100
    --position-----------------------------
    across=290
    down=460
    --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,215,0,1.0
    --background ring color and alpha-----
    bgr,bgg,bgb,bga=128,128,128,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 4 SETUP---------------copy setup section and paste for additional rings----------
    end
    end
    BandwidthTotals.lua (Keeps Track Of My Bandwidth Total for the Month, starting on the 12th day of each. Thank You mrpeachy!)
    Code:
    --Insert into Conky when Ready:
    --lua_load /home/dorian/Conky/Scripts/BandwidthTotal.lua
    --lua_draw_hook_pre conky_draw_vnring
    
    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_vnring()
    if conky_window == nil then return end
    local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
    cr = cairo_create(cs)
    local updates=tonumber(conky_parse('${updates}'))
    
    if updates> 5 then
    --RING 1 SETUP-----------------------------------------------------------------------------
    --conky object to be displayed-----
    wtimer=(updates % 30)+1
    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" then max=25 end
    if units =="MB" then max=25600 end
    if units =="KB" 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
    And of course the screenshot. New, better suited background. I "Think" I might be done with Conky for a while. Who knows what kind of "Inspiration" will wake me in the night?
    Attached Images Attached Images

  10. #15900
    Join Date
    Feb 2009
    Beans
    433

    Re: Post your .conkyrc files w/ screenshots

    is it possible to code a conky that acts as a count down to a certain day? 6pm of the 16th? then when it gets to that time it counts forward 14 days and starts counting again

    thought it would be cool to have a countdown to pay day

Page 1590 of 2348 FirstFirst ... 5901090149015401580158815891590159115921600164016902090 ... 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
  •