Page 953 of 2274 FirstFirst ... 4538539039439519529539549559631003105314531953 ... LastLast
Results 9,521 to 9,530 of 22732

Thread: Post your .conkyrc files w/ screenshots

  1. #9521
    Bruce M. is offline Chocolate Ubuntu Mocha Blend
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: minimalistic conky setup

    Quote Originally Posted by dmos View Post
    if conky can display 5 million different things
    5,000,000

    GREAT JUST GREAT!!!!!!!

    Now how the heck do I find the last 16 things to display?

    Nice conky

    Have a nice day.
    Bruce

  2. #9522
    Join Date
    Jul 2009
    Location
    Germany > Hessen > DA
    Beans
    26

    Re: Post your .conkyrc files w/ screenshots

    Hello together,
    is there to delimit a possibility the horizontal stroke in Conky> $hr in the length?

    Code:
    hr     (height)     Horizontal line, height is the height in pixels
    Greeting
    Stefan
    64Bit - HP Compaq Presario CQ60-105EG, 4GB RAM, 160GB, NVIDIA GeForce 8200M, AMD Athlon X2 Dual-Core / Mandriva 2009.1, Mandriva 2010, #! Crunchbang 9.04.01 Conky-Hardcore - searchOne

  3. #9523
    Join Date
    May 2008
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by searchOne View Post
    Hello together,
    is there to delimit a possibility the horizontal stroke in Conky> $hr in the length?

    Code:
    hr     (height)     Horizontal line, height is the height in pixels
    Greeting
    Stefan
    No, for $hr you can only specify its height. The line length is the same as the conky window's width.

  4. #9524
    Join Date
    Jul 2009
    Location
    Germany > Hessen > DA
    Beans
    26

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by mobilediesel View Post
    No, for $hr you can only specify its height. The line length is the same as the conky window's width.
    Hello mobilediesel,
    This is not nice! I wanted to shorten the long stroke on my Screenshot that he only from the left circle to the right circle passes... and not over it.

    Last edited by searchOne; October 5th, 2009 at 11:44 AM.
    64Bit - HP Compaq Presario CQ60-105EG, 4GB RAM, 160GB, NVIDIA GeForce 8200M, AMD Athlon X2 Dual-Core / Mandriva 2009.1, Mandriva 2010, #! Crunchbang 9.04.01 Conky-Hardcore - searchOne

  5. #9525
    Join Date
    Sep 2009
    Beans
    0

    Re: Post your .conkyrc files w/ screenshots

    Here is mine:




    Code:
    # Use Xft?
    use_xft yes
    xftfont DejaVu Sans:size=8
    xftalpha 0.8
    text_buffer_size 2048
    
    # Update interval in seconds
    update_interval 1
    
    # This is the number of times Conky will update before quitting.
    # Set to zero to run forever.
    total_run_times 0
    
    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    own_window_transparent yes
    own_window_type override
    #own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes
    
    # Minimum size of text area
    minimum_size 180 0
    #maximum_width 200
    
    # Draw shades?
    draw_shades yes
    
    # Draw outlines?
    draw_outline no
    
    # Draw borders around text
    draw_borders no
    
    # Stippled borders?
    stippled_borders 0
    
    # border margins
    border_margin 5
    
    # border width
    border_width 3
    
    # Default colors and also border colors
    default_color white
    #default_shade_color black
    #default_outline_color white
    own_window_colour white
    
    # Text alignment, other possible values are commented
    #alignment top_left
    alignment top_right
    #alignment bottom_left
    #alignment bottom_right
    
    # Gap between borders of screen and text
    # same thing as passing -x at command line
    gap_x 1093
    gap_y 55
    
    # Subtract file system buffers from used memory?
    no_buffers yes
    
    # set to yes if you want all text to be in uppercase
    uppercase no
    
    # number of cpu samples to average
    # set to 1 to disable averaging
    cpu_avg_samples 2
    
    # number of net samples to average
    # set to 1 to disable averaging
    net_avg_samples 2
    
    # Force UTF8? note that UTF8 support required XFT
    override_utf8_locale yes
    
    # Add spaces to keep things from moving about?  This only affects certain objects.
    use_spacer none
    
    TEXT
    SISTEMA ${hr 2}
    ${voffset 2}${font OpenLogos:size=16}J${font}   KERNEL:  ${alignr}${kernel}
    ${font StyleBats:size=16}q${font}  UPTIME:                         ${uptime}
    ${font StyleBats:size=16}S${font}  UPDATES:                       ${execi 360 aptitude search "~U" | wc -l | tail} paquetes
    ${font StyleBats:size=16}A${font}  CPU1: ${cpu cpu0}% ${alignr}${cpubar cpu0 8,60}
    ${font StyleBats:size=16}A${font}  CPU2: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60}
    ${font StyleBats:size=16}g${font}  RAM: $memperc% ${alignr}${membar 8,60}
    ${font StyleBats:size=16}j${font}  SWAP: $swapperc% ${alignr}${swapbar 8,60}
    
    
    
    FECHA ${hr 2}
    ${alignc 32}${font Arial Black:size=26}${time %H:%M}${font}
    ${alignc}${time %A %d %m %Y}
    
    HD ${hr 2}
    ${voffset 4}${font Pie charts for maps:size=14}7${font}   ${voffset -5}Root:
    ${voffset 4}${fs_used /}/${fs_size /} ${alignr}${fs_bar 8,60 /}
    ${font Pie charts for maps:size=14}7${font}   ${voffset -5}Home:
    ${voffset 4}${fs_free /home}/${fs_size /home} ${alignr}${fs_bar 8,60 /home}
    
    TEMPERATURAS ${hr 2}
    
    ${font StyleBats:size=15}K${font} GPU: $alignr ${execi 30 nvidia-settings -q [gpu:0]/GPUCoreTemp | grep '):' | awk '{print $4}' | sed 's/\.//'}°C
    ${font StyleBats:size=15}L${font} MOTHER:${alignr}${execi 30 sensors | grep "temp3" | cut -d "+" -f2 | cut -c1-2}°C
    ${font StyleBats:size=15}O${font} CPU 1:${alignr}${execi 30 sensors | grep "Core 0" | cut -d "+" -f2 | cut -c1-2}°C
    ${font StyleBats:size=15}O${font} CPU 2:${alignr}${execi 30 sensors | grep "Core 1" | cut -d "+" -f2 | cut -c1-2}°C
    ${font StyleBats:size=15}T${font} DISCO:${alignr}${execi 30 sudo hddtemp /dev/sda | cut -c36-39}C
    
    RED ${hr 2}
    ${if_existing /proc/net/route wlan0}
    ${voffset -6}${font PizzaDude Bullets:size=14}O${font}   Up: ${upspeed wlan0} kb/s ${alignr}${upspeedgraph wlan0 8,60 789E2D A7CC5C}
    ${voffset 4}${font PizzaDude Bullets:size=14}U${font}   Down: ${downspeed wlan0} kb/s ${alignr}${downspeedgraph wlan0 8,60 789E2D A7CC5C}
    ${voffset 4}${font PizzaDude Bullets:size=14}N${font}   Upload: ${alignr}${totalup wlan0}
    ${voffset 4}${font PizzaDude Bullets:size=14}T${font}   Download: ${alignr}${totaldown wlan0}
    ${voffset 4}${font PizzaDude Bullets:size=14}Z${font}   Señal: ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 8,60 wlan0}
    ${voffset 4}${font PizzaDude Bullets:size=14}a${font}   Ip Local: ${alignr}${addr wlan0}
    ${voffset 4}${font PizzaDude Bullets:size=14}b${font}   Ip Pública: ${alignr}${execi 1 ~/.scripts/ip.sh}
    ${else}${if_existing /proc/net/route eth0}
    ${voffset -6}${font PizzaDude Bullets:size=14}O${font}   Up: ${upspeed eth0} kb/s ${alignr}${upspeedgraph eth0 8,60 789E2D A7CC5C}
    ${voffset 4}${font PizzaDude Bullets:size=14}U${font}   Down: ${downspeed eth0} kb/s ${alignr}${downspeedgraph eth0 8,60 789E2D A7CC5C}
    ${voffset 4}${font PizzaDude Bullets:size=14}N${font}   Upload: ${alignr}${totalup eth0}
    ${voffset 4}${font PizzaDude Bullets:size=14}T${font}   Download: ${alignr}${totaldown eth0}
    ${voffset 4}${font PizzaDude Bullets:size=14}a${font}   Ip Local: ${alignr}${addr eth0}
    ${voffset 4}${font PizzaDude Bullets:size=14}b${font}   Ip Pública: ${alignr}${execi 1 ~/.scripts/ip.sh}
    ${endif}${else}${if_existing /proc/net/route eth1}
    ${voffset -6}${font PizzaDude Bullets:size=14}O${font}   Up: ${upspeed eth1} kb/s ${alignr}${upspeedgraph eth1 8,60 789E2D A7CC5C}
    ${voffset 4}${font PizzaDude Bullets:size=14}U${font}   Down: ${downspeed eth1} kb/s ${alignr}${downspeedgraph eth1 8,60 789E2D A7CC5C}
    ${voffset 4}${font PizzaDude Bullets:size=14}N${font}   Upload: ${alignr}${totalup eth1}
    ${voffset 4}${font PizzaDude Bullets:size=14}T${font}   Download: ${alignr}${totaldown eth1}
    ${voffset 4}${font PizzaDude Bullets:size=14}a${font}   Ip Local: ${alignr}${addr eth1}
    ${voffset 4}${font PizzaDude Bullets:size=14}b${font}   Ip Pública: ${alignr}${execi 1 ~/.scripts/ip.sh}
    ${endif}${else}
    ${font PizzaDude Bullets:size=14}4${font}   Red No disponible
    ${endif}
    TIEMPO ${hr 2}
    ${if_existing /proc/net/route wlan0}
    
    ${voffset -10}${alignr 56}${font ConkyWeather:style=Bold:size=40}${execi 600 conkyForecast --location=ARCS0025 --datatype=WF}${font}
    
    ${voffset -50}${font Weather:size=20}y${font}  ${voffset -38}${font Arial Black:size=26}${execi 600 conkyForecast --location=ARCS0025 --datatype=HT}${font}
    
    ${voffset 0}${alignc 43}${execpi 600 conkyForecast --location=ARCS0025 --datatype=DW --startday=1 --shortweekday} ${alignc 8}${execpi 600 conkyForecast --location=ARCS0025 --datatype=DW --startday=2 --shortweekday} ${alignc -29}${execpi 600 conkyForecast --location=ARCS0025 --datatype=DW --startday=3 --shortweekday} ${alignc -64}${execpi 600 conkyForecast --location=ARCS0025 --datatype=DW --startday=4 --shortweekday}
    ${voffset 0}${alignc 75}${font ConkyWeather:size=18}${execpi 600 conkyForecast --location=ARCS0025 --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
    ${voffset 0}${font DejaVu Sans:size=7}${alignc 48}${execpi 600 conkyForecast --location=ARCS0025 --datatype=HT --startday=1 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=ARCS0025 --datatype=LT --startday=1 --hideunits --centeredwidth=3} ${alignc -14}${execpi 600 conkyForecast --location=ARCS0025 --datatype=HT --startday=2 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=ARCS0025 --datatype=LT --startday=2 --hideunits --centeredwidth=3} ${alignc -40}${execpi 600 conkyForecast --location=ARCS0025 --datatype=HT --startday=3 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=ARCS0025 --datatype=LT --startday=3 --hideunits --centeredwidth=3} ${alignr 6}${execpi 600 conkyForecast --location=ARCS0025 --datatype=HT --startday=4 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=ARCS0025 --datatype=LT --startday=4 --hideunits --centeredwidth=3}${font}
    ${else}${if_existing /proc/net/route eth0}
    ${voffset -10}${alignr 56}${font ConkyWeather:style=Bold:size=40}${execi 600 conkyForecast --location=ARCS0025 --datatype=WF}${font}
    ${voffset -40}${font Weather:size=40}y${font}  ${voffset -38}${font Arial Black:size=26}${execi 600 conkyForecast --location=ARCS0025 --datatype=HT}${font}
    
    
    
    ${voffset -10}${alignc 48}${execpi 600 conkyForecast --location=ARCS0025 --datatype=DW --startday=1 --shortweekday} ${alignc 8}${execpi 600 conkyForecast --location=ARCS0025 --datatype=DW --startday=2 --shortweekday} ${alignc -29}${execpi 600 conkyForecast --location=ARCS0025 --datatype=DW --startday=3 --shortweekday} ${alignc -64}${execpi 600 conkyForecast --location=ARCS0025 --datatype=DW --startday=4 --shortweekday}
    ${voffset 0}${alignc 75}${font ConkyWeather:size=34}${execpi 600 conkyForecast --location=ARCS0025 --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
    ${voffset 0}${font DejaVu Sans:size=7}${alignc 48}${execpi 600 conkyForecast --location=ARCS0025 --datatype=HT --startday=1 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=ARCS0025 --datatype=LT --startday=1 --hideunits --centeredwidth=3} ${alignc -14}${execpi 600 conkyForecast --location=ARCS0025 --datatype=HT --startday=2 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=ARCS0025 --datatype=LT --startday=2 --hideunits --centeredwidth=3} ${alignc -40}${execpi 600 conkyForecast --location=ARCS0025 --datatype=HT --startday=3 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=ARCS0025 --datatype=LT --startday=3 --hideunits --centeredwidth=3} ${alignr 6}${execpi 600 conkyForecast --location=ARCS0025 --datatype=HT --startday=4 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=ARCS0025 --datatype=LT --startday=4 --hideunits --centeredwidth=3}${font}
    ${endif}${else}
    ${font PizzaDude Bullets:size=14}4${font}   Tiempo No disponible
    ${endif}
    
    AMAROK ${hr 2}
    ${if_running amarokapp}
    ${font Musicelements:size=29}K${font}         ${execi 10 dcop amarok player title}    
                            ${execi 10 dcop amarok player artist}
                      ${execi 1 dcop amarok player currentTime}/${execi 1 dcop amarok player totalTime} · ${execi 30 dcop amarok player bitrate}kbps ${endif}
                                  
    
    MAIL ${hr 2}
    
    ${voffset -8}${font Martin Vogel's Symbols:size=19}B${font}  Gmail: ${alignr}${font DejaVu Sans:style=Bold:size=8}${execi 600 conkyEmail --servertype=IMAP --servername=imap.googlemail.com --username=XXXX --password=XXXX --ssl}${font} Nuevo(s) mensaje(s)
    I would like to know if it exist any way to "accumulate" downloaded and uploaded info, eg:

    Total downloaded (ever, not today): 23 gb
    Total uploaded: 14 gb


    Thanks
    Last edited by dysloke; October 5th, 2009 at 12:24 PM.

  6. #9526
    Bruce M. is offline Chocolate Ubuntu Mocha Blend
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by searchOne View Post
    Hello together,
    is there to delimit a possibility the horizontal stroke in Conky> $hr in the length?

    Code:
    hr     (height)     Horizontal line, height is the height in pixels
    Greeting
    Stefan
    Hallo Stefan

    The answer is No and Yes

    No for $hr

    but Yes with a Bar for a CPU you do NOT have. See the sample at Conky Hardcore!

    Have a nice day
    Bruce

  7. #9527
    Bruce M. is offline Chocolate Ubuntu Mocha Blend
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by searchOne View Post
    WOW! One fine conky!!!!!!!

    Get that line fixed and show us again

    Have a GREAT day.
    Bruce

  8. #9528
    Join Date
    Jul 2009
    Location
    Germany > Hessen > DA
    Beans
    26

    Re: Post your .conkyrc files w/ screenshots

    Quote Originally Posted by Bruce M. View Post
    WOW! One fine conky!!!!!!!

    Get that line fixed and show us again

    Have a GREAT day.
    Bruce
    Hello Bruce,

    thank you for the idea with the line!
    Here now the new picture, with the right line...

    It is this:

    64Bit - HP Compaq Presario CQ60-105EG, 4GB RAM, 160GB, NVIDIA GeForce 8200M, AMD Athlon X2 Dual-Core / Mandriva 2009.1, Mandriva 2010, #! Crunchbang 9.04.01 Conky-Hardcore - searchOne

  9. #9529
    Bruce M. is offline Chocolate Ubuntu Mocha Blend
    Join Date
    Sep 2007
    Beans
    Hidden!

    Re: Post your .conkyrc files w/ screenshots

    [QUOTE=searchOne;8055586]Hello Bruce,

    thank you for the idea with the line!
    Here now the new picture, with the right line...

    Hi Stefan

    Are you fast or what.

    That is one beautiful piece of work there.

    Please, post the files that created it - another entry for Conky Hardcore!

    Have a nice day.
    Bruce

  10. #9530
    Join Date
    Jul 2009
    Location
    Germany > Hessen > DA
    Beans
    26

    Re: Post your .conkyrc files w/ screenshots

    [quote=Bruce M.;8055635]
    Quote Originally Posted by searchOne View Post
    Hello Bruce,

    thank you for the idea with the line!
    Here now the new picture, with the right line...

    Hi Stefan

    Are you fast or what.

    That is one beautiful piece of work there.

    Please, post the files that created it - another entry for Conky Hardcore!

    Have a nice day.
    Bruce
    Hi Bruce,
    today I have the day freely, and therefore enough time!
    Clear, here now the files:

    .conkyrc:
    Code:
    background no
    use_xft yes
    xftfont terminus:size=8
    xftalpha 0.2
    update_interval 1
    total_run_times 0
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    own_window_class conky
    double_buffer yes
    no_buffers yes
    cpu_avg_samples 2
    net_avg_samples 2
    use_spacer none
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders no
    default_color white
    alignment tl
    uppercase no
    text_buffer_size 2048
    imlib_cache_size 0
    minimum_size 1330 10
    gap_y 10
    
    # — Lua Load — #
    lua_load ~/conky/lua/rings.lua
    lua_draw_hook_pre ring_stats
     
    TEXT
    ${voffset 55}${goto 480}${diskiograph 50,300 FFFF00 FF0000 -t}${voffset -110}
    ${voffset 98}${goto 173}${color 1E90FF}${cpubar cpu5 2,1015}${color}
    ${voffset -40}${goto 240}${font Zekton:size=14}CrunchBang \#! 9.04.01${font Zekton:size=10}${voffset 1}
    ${voffset 10}${goto 240}Conky ${conky_version}   ${goto 480}Kernel: ${kernel} 
    ${goto 240}${exec whoami} @ $nodename $machine   ${goto 480}Uptime: ${uptime}
    ${goto 240}Desktop: ${desktop_number} - ${desktop}${goto 480}CPU Temp: ${acpitemp}${offset -2} °C
    ${goto 240}HDD Temp: ${hddtemp /dev/sda}${offset -2} °C ${goto 480}Grafik Temp: ${nvidia temp}${offset -2} °C${if_existing /proc/net/route wlan0}${goto 700}WLAN: ${addrs wlan0}${endif}${if_existing /proc/net/route eth0}${goto 700}LAN: ${addrs eth0}${endif}
    
    ${goto 240}${font Zekton:Bold:size=10}Name top${goto 370}time${goto 450}cpu${goto 500}mem${goto 600}${font Zekton:Bold:size=10}Name top-io${goto 730}time${goto 820}mem${font Zekton:size=8}
    ${color red}${goto 240}${top name 1}   ${goto 370}${top time 1}${goto 450}${top cpu 1}${goto 500}${top mem 1} ${goto 600}${top_io 1}${top_io name 1}${goto 730}${top_io time 1}${goto 820}${top_io mem 1} ${color}${goto 940}${execi 99999 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2-}
    ${goto 240}${top name 2}   ${goto 370}${top time 2}${goto 450}${top cpu 2}${goto 500}${top mem 2}${color} ${top_io 2} ${goto 600}${top_io name 2}${goto 730}${top_io time 2}${goto 820}${top_io mem 2} ${goto 940}${execpi 3600 /home/search/conkynv.sh}
    ${goto 240}${top name 3}   ${goto 370}${top time 3}${goto 450}${top cpu 3}${goto 500}${top mem 3}${color} ${top_io 3} ${goto 600}${top_io name 3}${goto 730}${top_io time 3}${goto 820}${top_io mem 3}
    ${if_existing /proc/net/route wlan0}${voffset -210}${goto 810}${font DTPDingbats:size=18}${color green}C${font Zekton:size=12}${downspeed wlan0}${color}
    
    ${voffset -15}${goto 810}${font DTPDingbats:size=18}${color red}D${font Zekton:size=12}${upspeed wlan0}${color}${endif}
    ${if_existing /proc/net/route eth0}${voffset -210}${goto 810}${font DTPDingbats:size=18}${color green}C${font Zekton:size=12}${downspeed wlan0}${color}
    
    ${voffset -15}${goto 810}${font DTPDingbats:size=18}${color red}D${font Zekton:size=12}${upspeed wlan0}${color}${endif}
    ${font}
    ${voffset -130}
    ${goto 90}${color 1E90FF}RAM: ${memperc}%
    ${goto 90}${color FF0000}CPU-1: ${cpu cpu0}%
    ${goto 90}${color FF0000}CPU-2: ${cpu cpu1}%
    ${goto 90}${color FFFF00}BAT: ${battery_percent BAT0}%
    ${goto 90}${color 00FF00}Disk: ${fs_used_perc /}%${color}
    ${voffset -45}${goto 1210}${font Zekton:size=10}${time %H:%M:%S}
    
    ${voffset -80}${color CDCD00}${goto 1010}${font Zekton:Bold:size=10}${time %A}
    ${goto 930}${font Zekton:size=16}${time %_d %B %Y}${color}
    ${font LiberationMono:Bold:size=10}
    ${voffset -10}${execpi 60 DJS=`date +%_d`; cal -m | sed '1d' | sed '/./!d' | sed 's/$/                     /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${goto 930} /' | sed /" $DJS "/s/" $DJS "/" "'${color orange}'"$DJS"'${color}'" "/}
    ${voffset -300}
    rings.lua:
    Code:
    --[[
    Ring Meters by londonali1010 (2009)
    
    This script draws percentage meters as rings. It is fully customisable; all options are described in the script.
    
    IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement on line 145 uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num>5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num>3; conversely if you update Conky every 0.5s, you should use update_num>10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.
    
    To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
        lua_load ~/scripts/rings.lua
        lua_draw_hook_pre ring_stats
        
    Changelog:
    + v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009)
    + v1.0 -- Original release (28.09.2009)
    ]]
    
    settings_table = {
        {
            -- Edit this table to customise your rings.
            -- You can create more rings simply by adding more elements to settings_table.
            -- "name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
            name='cpu',
            -- "arg" is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, 'cpu0' would be the argument. If you would not use an argument in the Conky variable, use ''.
            arg='cpu0',
            -- "max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
            max=100,
            -- "bg_colour" is the colour of the base ring.
            bg_colour=0xCDCDC1,
            -- "bg_alpha" is the alpha value of the base ring.
            bg_alpha=0.5,
            -- "fg_colour" is the colour of the indicator part of the ring.
            fg_colour=0xFF0000,
            -- "fg_alpha" is the alpha value of the indicator part of the ring.
            fg_alpha=0.8,
            -- "x" and "y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.
            x=120, y=120,
            -- "radius" is the radius of the ring.
            radius=81,
            -- "thickness" is the thickness of the ring, centred around the radius.
            thickness=10,
            -- "angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
            angle=90
        },
        {
            name='cpu',
            arg='cpu1',
            max=100,
            bg_colour=0xCDCDC1,
            bg_alpha=0.5,
            fg_colour=0xFF0000,
            fg_alpha=0.5,
            x=120, y=120,
            radius=93,
            thickness=10,
            angle=90
        },
        {
            name='memperc',
            arg='',
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0x1E90FF,
            fg_alpha=0.5,
            x=120, y=120,
            radius=102.5,
            thickness=5,
            angle=90
        },
        {
            name='fs_used_perc',
            arg='/',
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.1,
            fg_colour=0x00FF00,
            fg_alpha=0.5,
            x=120, y=120,
            radius=58,
            thickness=10,
            angle=90
        },
        {
            name='battery_percent',
            arg='BAT0',
            max=100,
            bg_colour=0xffffff,
            bg_alpha=0.2,
            fg_colour=0xFFFF00,
            fg_alpha=1,
            x=120, y=120,
            radius=70,
            thickness=10,
            angle=90
        },
        {
            name='time',
            arg='+%S',
            max=60,
            bg_colour=0xE3E3E3,
            bg_alpha=0.1,
            fg_colour=0xFFFF00,
            fg_alpha=0.7,
            x=1235, y=120,
            radius=70,
            thickness=4,
            angle=0
        },
        {
            name='time',
            arg='+%M',
            max=60,
            bg_colour=0xE3E3E3,
            bg_alpha=0.1,
            fg_colour=0x00CD00,
            fg_alpha=0.7,
            x=1235, y=120,
            radius=64,
            thickness=7,
            angle=0 
        },
        {
            name='time',
            arg='+%H',
            max=24,
            bg_colour=0xE3E3E3,
            bg_alpha=0.1,
            fg_colour=0xffffff,
            fg_alpha=0.7,
            x=1235, y=120,
            radius=52,
            thickness=14,
            angle=0 
        },
        
    }
    
    require 'cairo'
    
    function rgb_to_r_g_b(colour,alpha)
        return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
    end
    
    function draw_ring(t, pt)
        if conky_window==nil then return end
        local w,h=conky_window.width,conky_window.height
        local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual,w,h)
        
        cr=cairo_create(cs)
        
        local xc,yc,ring_r,ring_w,angle=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['angle']
        local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']
    
        local angle_0=angle*(2*math.pi/360)-math.pi/2
        local t_arc=t*2*math.pi
    
        -- Draw background ring
    
        cairo_arc(cr,xc,yc,ring_r,0,2*math.pi)
        cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
        cairo_set_line_width(cr,ring_w)
        cairo_stroke(cr)
        
        -- Draw indicator ring
    
        cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
        cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
        cairo_stroke(cr)        
        
        cairo_destroy(cr)
        cr = nil
    end
    
    function conky_cairo_cleanup()
        cairo_surface_destroy(cs)
        cs = nil
    end
    
    function conky_ring_stats()
        local function setup_rings(pt)
            local str=''
            local value=0
            
            str=string.format('${%s %s}',pt['name'],pt['arg'])
            str=conky_parse(str)
            
            value=tonumber(str)
            pct=value/pt['max']
            
            draw_ring(pct,pt)
        end
        
        -- Check that Conky has been running for at least 5s
        
        local updates=conky_parse('${updates}')
        update_num=tonumber(updates)
        
        if update_num>5 then
            for i in pairs(settings_table) do
                setup_rings(settings_table[i])
            end
        end
    end
    P.S.: Class if on your page (Conky hardcore!) would come!
    Thank you Bruce.
    Last edited by searchOne; October 5th, 2009 at 01:25 PM.
    64Bit - HP Compaq Presario CQ60-105EG, 4GB RAM, 160GB, NVIDIA GeForce 8200M, AMD Athlon X2 Dual-Core / Mandriva 2009.1, Mandriva 2010, #! Crunchbang 9.04.01 Conky-Hardcore - searchOne

Page 953 of 2274 FirstFirst ... 4538539039439519529539549559631003105314531953 ... 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
  •