Code:background yes use_xft yes xftfont HandelGotD:size=9 xftalpha 0.5 update_interval 1.0 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 double_buffer yes minimum_size 200 5 maximum_width 200 draw_shades no draw_outline no draw_borders no draw_graph_borders no default_color white default_shade_color red default_outline_color green alignment top_right gap_x 12 gap_y 48 no_buffers yes uppercase no cpu_avg_samples 2 override_utf8_locale no TEXT $sysname $kernel on $machine Uptime $alignr $uptime Load $alignr $loadavg Hostname $alignr $nodename eth0 $alignr ${addr eth0} ppp0 $alignr ${addr ppp0} Inbound $alignr ${downspeed ppp0} kb/s ${downspeedgraph ppp0} Outbound $alignr ${upspeed ppp0} kb/s ${upspeedgraph ppp0} $processes processes ($running_processes running) CPU $alignr ${cpu cpu0}% ${cpubar cpu0} MEM $alignc $mem / $memmax $alignr $memperc% $membar / $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_free_perc /}% ${fs_bar /} /home $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_free_perc /home}% ${fs_bar /home} swap $alignc $swap / $swapmax $alignr $swapperc% ${swapbar}
The conkyrc is a bit of a mess, but it all works.
Code:border_margin 9 border_width 10 default_color FFFFFF own_window_colour brown own_window_transparent yes alignment top_right gap_x 15 gap_y 15 mail_spool /var/mail/adamtropics TEXT $color${hr} $nodename $sysname $kernel on $machine Information $color${hr} Uptime:$alignr$uptime ${time %A %F}$alignr${time %k:%M } Battery:$alignr${battery} Hard Drive Temp: $alignr${execi 300 nc localhost 7634 | cut -c29-30 ;} C CPU Temp:$alignr${acpitemp}C Wireless Signal Quality: $alignr${linkstatus ath0} % CPU Activity: $cpubar RAM: $memperc% ${membar 6}$color Root: ${fs_free_perc /}% ${fs_bar 6 /}$color hda1: ${fs_free_perc /media/hda1}% ${fs_bar 6 /media/hda1}$color Online Status: www.bigpond.com.au: $alignr${execi 150 /home/adamtropics/scripts/silentping.sh 144.135.18.32 "up" "down"}${if_existing /home/adamtropics/.status/144.135.18.32.up}Online$else${color red}Offline$endif ATI Driver Version:$alignr${execi 3600 fglrxinfo | tail -n2 | tail -c19} Network ${hr} Internet/Networking Status (${addr ath0}): Down: $color${downspeed ath0} k/s ${alignr}Up: ${upspeed ath0} k/s ${downspeedgraph ath0 25,140 D8D8D8 ffffff} ${alignr}${upspeedgraph ath0 25,140 D8D8D8 ffffff}$color Total: ${totaldown ath0} ${alignr}Total: ${totalup ath0} Email $color${hr} Yahoo Email: $alignr${pop3_unseen pop.mail.yahoo.com ********** ******* [-i 60]} new messages System Mail: $alignr${mails} new messages Weather $color${hr} ${color #D5D3D5}${execi 1800 /home/adamtropics/weather/weather.sh ASXX0020} $color${hr} ${execi 15 wmctrl -R " - conky"}
Last edited by adam.tropics; March 23rd, 2007 at 03:49 PM.
~~ Ubuntu Forums Firefox/Flock Menu ~~ Ubuntu User Number 206 ~~ Linux user number 403379 ~~
~~ If someone asks you to sudo rm -rf anything don't do it. ~~
Code:# UBUNTU-CONKY # A comprehensive conky script, configured for use on # Ubuntu / Debian Gnome, without the need for any external scripts. # # Based on conky-jc and the default .conkyrc. # Create own window instead of using desktop (required in nautilus) own_window yes own_window_type override own_window_transparent yes own_window_hints undecorated,below,skip_taskbar # Use double buffering (reduces flicker, may not work for everyone) double_buffer yes # fiddle with window use_spacer yes use_xft no # Update interval in seconds update_interval 3.0 # Minimum size of text area # minimum_size 250 5 # Draw shades? draw_shades yes # Text stuff draw_outline no # amplifies text if yes draw_borders no font arial uppercase no # set to yes if you want all text to be in uppercase # Stippled borders? stippled_borders 3 # border margins border_margin 9 # border width border_width 10 # Default colors and also border colors, grey90 == #e5e5e5 default_color white default_shade_color black #default_outline_color CCCCCC own_window_colour brown own_window_transparent yes # 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 gap_x 10 gap_y 40 # stuff after 'TEXT' will be formatted on screen TEXT $nodename $sysname $kernel on $machine CPU: ${freq}MHz Uptime: ${uptime} Battery: ${battery} CPU: $cpu% $cpubar ${cpugraph 000000 FFFFFF} NAME PID CPU% MEM% ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4} RAM ($memmax): $memperc% ${membar 6}$color Swap ($swapmax): $swapperc% ${swapbar 6}$color Ubuntu: ${fs_used_perc /}% ${fs_bar 6 /}$color Windows: ${fs_used_perc /media/windows}% ${fs_bar 6 /media/windows}$color Storage: ${fs_used_perc /media/data}% ${fs_bar 6 /media/data}$color Internet Status (${addr eth0}): Down: $color${downspeed eth0} k/s ${alignr}Up: ${upspeed eth0} k/s ${downspeedgraph eth0 25,140 000000 FFFFFF} ${alignr}${upspeedgraph eth0 25,140 000000 FFFFFF}$color Total: ${totaldown eth0} ${alignr}Total: ${totalup eth0} Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768 61000 count}${alignr}Total: ${tcp_portmon 1 65535 count}
Ubuntu User #7196 | Linux User #425604 | www.robdian.co.uk
1. Ubuntu 7.10 64bit, Core2Duo E6750 @ 2.66GHz, 2GB RAM,
2. Linux Mint/Windows XP, P4 2.4GHz, 512MB RAM
Hi friends,
Here is my conky setup. Everything written in text in the screenshot on the left hand side is by connky.
Girish
Shiny aroma black VAIO running minty Elyssa
here's my conky i hope you like it even it's not that nice as i wanted.
http://http://img116.imageshack.us/my.php?image=obrazovka1wy1.png
Code:# not sure of what is this based on. sorry # set to yes if you want tormo to be forked in the background background yes cpu_avg_samples 2 net_avg_samples 2 out_to_console no # X font when Xft is disabled, you can pick one with program xfontsel #font 5x7 font 6x10 #font 7x13 #font 8x13 #font 7x12 #font *mintsmild.se* #font -*-*-*-*-*-*-34-*-*-*-*-*-*-* # Use Xft? use_xft yes # Xft font when Xft is enabled xftfont Bitstream Vera Sans Mono:size=9 #xftfont Arial Unicode MS:size=9 # Text alpha when using Xft xftalpha 0.8 # mail spool mail_spool $MAIL # Update interval in seconds update_interval 5 # Create own window instead of using desktop (required in nautilus) own_window no # Use double buffering (reduces flicker, may not work for everyone) double_buffer yes # Minimum size of text area minimum_size 50 5 # Draw shades? draw_shades yes # Draw outlines? draw_outline no # Draw borders around text draw_borders no # Stippled borders? stippled_borders 8 # border margins border_margin 4 # border width border_width 1 # Default colors and also border colors default_color white default_shade_color black default_outline_color black # Text alignment, other possible values are commented #alignment top_left #minimum_size 10 10 gap_x 5 gap_y 10 #alignment top_right alignment top_left #alignment bottom_left #alignment bottom_right # Gap between borders of screen and text #metar_station CYBW # Add spaces to keep things from moving about? This only affects certain objects. use_spacer no # Subtract file system buffers from used memory? no_buffers yes # boinc (seti) dir # seti_dir /opt/seti # Possible variables to be used: # # Variable Arguments Description # acpiacadapter ACPI ac adapter state. # acpifan ACPI fan state # acpitemp ACPI temperature. # adt746xcpu CPU temperature from therm_adt746x # adt746xfan Fan speed from therm_adt746x # battery (num) Remaining capasity in ACPI or APM # battery. ACPI battery number can be # given as argument (default is BAT0). # buffers Amount of memory buffered # cached Amount of memory cached # color (color) Change drawing color to color # cpu CPU usage in percents # cpubar (height) Bar that shows CPU usage, height is # bar's height in pixels # downspeed net Download speed in kilobytes # downspeedf net Download speed in kilobytes with one # decimal # exec shell command Executes a shell command and displays # the output in torsmo. warning: this # takes a lot more resources than other # variables. I'd recommend coding wanted # behaviour in C and posting a patch :-). # execi interval, shell Same as exec but with specific interval. # command Interval can't be less than # update_interval in configuration. # fs_bar (height), (fs) Bar that shows how much space is used on # a file system. height is the height in # pixels. fs is any file on that file # system. # fs_free (fs) Free space on a file system available # for users. # fs_free_perc (fs) Free percentage of space on a file # system available for users. # fs_size (fs) File system size # fs_used (fs) File system used space # hr (height) Horizontal line, height is the height in # pixels # i2c (dev), type, n I2C sensor from sysfs (Linux 2.6). dev # may be omitted if you have only one I2C # device. type is either in (or vol) # meaning voltage, fan meaning fan or temp # meaning temperature. n is number of the # sensor. See /sys/bus/i2c/devices/ on # your local computer. # kernel Kernel version # loadavg (1), (2), (3) System load average, 1 is for past 1 # minute, 2 for past 5 minutes and 3 for # past 15 minutes. # machine Machine, i686 for example # mails Mail count in mail spool. You can use # program like fetchmail to get mails from # some server using your favourite # protocol. See also new_mails. # mem Amount of memory in use # membar (height) Bar that shows amount of memory in use # memmax Total amount of memory # memperc Percentage of memory in use # new_mails Unread mail count in mail spool. # nodename Hostname # outlinecolor (color) Change outline color # pre_exec shell command Executes a shell command one time before # torsmo displays anything and puts output # as text. # processes Total processes (sleeping and running) # running_processes Running processes (not sleeping), # requires Linux 2.6 # shadecolor (color) Change shading color # stippled_hr (space), Stippled (dashed) horizontal line # (height) # swapbar (height) Bar that shows amount of swap in use # swap Amount of swap in use # swapmax Total amount of swap # swapperc Percentage of swap in use # sysname System name, Linux for example # time (format) Local time, see man strftime to get more # information about format # totaldown net Total download, overflows at 4 GB on # Linux with 32-bit arch and there doesn't # seem to be a way to know how many times # it has already done that before torsmo # has started. # totalup net Total upload, this one too, may overflow # updates Number of updates (for debugging) # upspeed net Upload speed in kilobytes # upspeedf net Upload speed in kilobytes with one # decimal # uptime Uptime # uptime_short Uptime in a shorter format # # seti_prog Seti@home current progress # seti_progbar (height) Seti@home current progress bar # seti_credit Seti@hoome total user credit # variable is given either in format $variable or in ${variable}. Latter # allows characters right after the variable and must be used in network # stuff because of an argument # stuff after 'TEXT' will be formatted on screen #${color lightgrey}File systems: ## / $color${fs_used /}/${fs_size /} ${fs_bar /} #$nodename - $sysname $kernel on $machine #$stippled_hr #${color lightgrey}CPU Usage:${color #cc2222} $cpu% ${cpubar} #${color lightgrey}RAM Usage:$color $mem/$memmax - $memperc% ${membar} #${color lightgrey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar} #${color lightgrey}Processes:$color $processes ${color grey}Running:$color $running_processes #$color$stippled_hr # #${color #00cc00} $mpd_status ${alignc}$mpd_artist - $mpd_title #${color forest green} ${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5} #${color seagreen}${font Bitstream Vera Mono Sans:size=8}${execi 5 sudo /usr/bin/lastb | awk '{print $1,$2,$4,$5,$6,$7}' | head -5 } #${color green}To Do: #${color seagreen}${execi 3600 cat /home/girish/.todo} # # # TEXT Host: ${color brown}$nodename ${color white}OS: ${color brown}$sysname ${color white}Kernel: ${color brown}$kernel ${color white}Platform: ${color brown}$machine ${color white}CPU: ${color brown}${freq}MHz ${color white}Uptime: ${color brown}${uptime} ${color white}Download: ${color brown}${downspeed eth0} KB/s ${color white}Upload:${color brown} ${upspeed eth0} KB/s ${color white}Updates: ${color brown}$updates available ${font Bitstream Vera Mono Sans:size=9}${color sea green} Name PID CPU% MEM% ${color #ddaa00} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1} ${color forest green} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2} ${color forest green} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3} ${color #998800} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1} ${color #998800} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2} ${font Bitstream Vera Mono Sans:size=9}${color sea green} Disk usage:${color #ddaa00} Ubuntu: ${fs_used_perc /}% ${fs_bar 6,147 /}$color ${color forest green} Storage: ${fs_used_perc /windows/D}% ${fs_bar 6,147 /windows/D}$color${color #998800} Home: ${fs_used_perc /home}% ${fs_bar 6,147 /home} ${font Bitstream Vera Mono Sans:size=9}${color sea green} Resources usage:${color #ddaa00} CPU: $cpu% ${cpubar 6,167 ff0000 888899}${color forest green} RAM: $memperc% ${membar 6,167 ff0000 888899}${color #998800} SWAP: $swapperc% ${swapbar 6,167 ff0000 888899}
Code:# Conky sample configuration # # the list of variables has been removed from this file in favour # of keeping the documentation more maintainable. # Check http://conky.sf.net for an up-to-date-list. # set to yes if you want Conky to be forked in the background background yes # X font when Xft is disabled, you can pick one with program xfontsel artwiz package? #font 5x8 font 6x9 #font 6x10 #font 6x13 #font 8x13 #font 9x15 #font *mintsmild.se* #font -*-*-*-*-*-*-34-*-*-*-*-*-*-* # Use Xft? use_xft no # Set conky on the bottom of all other applications on_bottom yes # Xft font when Xft is enabled xftfont Gothic:size=8 # Text alpha when using Xft xftalpha 0.8 # Print everything to stdout? # out_to_console no # MPD host/port # mpd_host localhost # mpd_port 6600 # mpd_password tinker_bell # Print everything to console? # out_to_console no # mail spool mail_spool $MAIL # Update interval in seconds update_interval 1.0 # 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 # Use pseudo transparency with own_window? own_window_transparent yes # If own_window_transparent is set to no, you can set the background colour here own_window_colour grey # Use double buffering (reduces flicker, may not work for everyone) double_buffer yes # Minimum size of text area minimum_size 280 5 # Draw shades? draw_shades yes # Draw outlines? draw_outline yes # Draw borders around text draw_borders yes # Stippled borders? stippled_borders 8 # border margins border_margin 4 # border width border_width 1 # Default colors and also border colors default_color white default_shade_color white default_outline_color black # Text alignment, other possible values are commented #alignment top_left #alignment top_right #alignment bottom_left alignment bottom_right #alignment none # Gap between borders of screen and text # same thing as passing -x at command line gap_x 1 gap_y 3 # Subtract file system buffers from used memory? no_buffers yes # set to yes if you want all text to be in uppercase uppercase yes # 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 no # Add spaces to keep things from moving about? This only affects certain objects. use_spacer no # mldonkey_hostname Hostname for mldonkey stuff, defaults to localhost # mldonkey_port Mldonkey port, 4001 default # mldonkey_login Mldonkey login, default none # mldonkey_password Mldonkey password, default none # boinc (seti) dir # seti_dir /opt/seti # variable is given either in format $variable or in ${variable}. Latter # allows characters right after the variable and must be used in network # stuff because of an argument # stuff after 'TEXT' will be formatted on screen TEXT $alignc Uptime:${color lightgrey} $uptime $color with ${color lightgrey}$kernel $color ${color lightgrey}HDD I/O:$color $diskio ${color red}${diskiograph 0000ff 00ff00} ${color lightgrey}CPU Usage:$color $cpu% ${color #cc2222} ${cpubar} ${color red}${cpugraph 0000ff 00ff00} ${color lightgrey}RAM Usage:$color $mem/$memmax - $memperc% ${membar} ${color lightgrey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar} ${color lightgrey}Processes:$color $processes ${color grey}Running:$color $running_processes $color$stippled_hr ${color pink} Temperature: ${color red} ${acpitemp} $color$stippled_hr ${color lightgrey}File systems:$color root $color${fs_used /} /${fs_size /} ${fs_bar /} home $color${fs_used /home} /${fs_size /home} ${fs_bar /home} fat32 $color${fs_used /media/fat32} /${fs_size /media/fat32} ${fs_bar /media/fat32} $color$stippled_hr ${color}CPU Usage: CPU% MEM% PID ${color #ff4500} ${top name 1} ${top cpu 1} ${top mem 1} ${top pid 1} ${color #eeee00} ${top name 2} ${top cpu 2} ${top mem 2} ${top pid 2} ${color #00ee00} ${top name 3} ${top cpu 3} ${top mem 3} ${top pid 3} ${color lightgrey} ${top name 4} ${top cpu 4} ${top mem 4} ${top pid 4} ${color lightgrey} ${top name 5} ${top cpu 5} ${top mem 5} ${top pid 5} $color$stippled_hr ${color}MEM usage: ${color #ff4500} ${top_mem name 1} ${top_mem cpu 1} ${top_mem mem 1} ${top_mem pid 1} ${color #eeee00} ${top_mem name 2} ${top_mem cpu 2} ${top_mem mem 2} ${top_mem pid 2} ${color #00ee00} ${top_mem name 3} ${top_mem cpu 3} ${top_mem mem 3} ${top_mem pid 3} ${color lightgrey} ${top_mem name 4} ${top_mem cpu 4} ${top_mem mem 4} ${top_mem pid 4} ${color lightgrey} ${top_mem name 5} ${top_mem cpu 5} ${top_mem mem 5} ${top_mem pid 5} $color$stippled_hr ${color lightgrey}Networking:${color #00ee00} PPP0 ${color lightgrey} on $color ${addr ppp0} ${color lightgrey} Down:${color #8844ee} ${downspeedf ppp0} k/s${color lightgrey} ${offset 80}Up:${color #22ccff} ${upspeedf ppp0} k/s ${color #0000ff}${downspeedgraph ppp0 22,150 ff0000 0000ff} ${color #22ccff}${upspeedgraph ppp0 22,150 0000ff ff0000} $color$stippled_hr ${color lightgrey}Networking:${color #00ee00} ETH0 ${color lightgrey} on $color ${addr eth0} ${color lightgrey}Down:${color #8844ee} ${downspeed eth0} k/s${color lightgrey} ${offset 80}Up:${color #22ccff} ${upspeed eth0} k/s ${color #0000ff}${downspeedgraph eth0 22,150 ff0000 0000ff} ${color #22ccff}${upspeedgraph eth0 22,150 0000ff ff0000} $color$stippled_hr ${color lightgrey}Networking:${color #00ee00} ETH1 ${color lightgrey} on $color ${addr eth1} ${color lightgrey}Link Status:$color ${linkstatus eth1} ${color lightgrey}Down:${color #8844ee} ${downspeed eth1} k/s${color lightgrey} ${offset 80}Up:${color #22ccff} ${upspeed eth1} k/s ${color #0000ff}${downspeedgraph eth1 22,150 ff0000 0000ff} ${color #22ccff}${upspeedgraph eth1 22,150 0000ff ff0000} $color$stippled_hr ${color lightgrey}Networking: $color PPP0: downloaded ${totaldown ppp0}; uploaded ${totalup ppp0} $color ETH0: downloaded ${totaldown eth0}; uploaded ${totalup eth0} $color ETH1: downloaded ${totaldown eth1}; uploaded ${totalup eth1} $color$stippled_hr Port Statistics: ${color red} ${tcp_portmon 1 65535 count} $color total connections ${color red} ${tcp_portmon 1 1024 count} $color btw ${color red}1-1024 ${color green} ${tcp_portmon 80 80 count} $color on ${color red}80 ${color green} ${tcp_portmon 20 23 count} $color on ${color red}20-23 ${color green} ${tcp_portmon 443 443 count} $color on ${color red}443
Wanna adopt your next dog, cat, or rabbit?
Vote for winmodems to be supported in the next release of Ubuntu! | DialUp Modem HowTo for Ubuntu
(my # of posts) ≠ (my level of linux experience)
hey, guys, nice Conky's, will use some of those things combined, but does anybody know how to get text within a graph, I've seen some screenies with text in them, do you have to use multiple conky's for that?
Thnx anyways, Casper
Bookmarks