Here is my lovely conky configuration, I figured I'd share it.
It's actually 2 conky processes running different .conkyrc files. (This is an easy way to create columns). I created a very basic shell script that starts them both.
Code:
#!/bin/sh
#sleep 20
conky -d -c /path/to/file/.conkyrc1
conky -d -c /path/to/file/.conkyrc2
exit
You can un-comment the sleep function if you want to use the script at startup. I hear this gives time for the desktop to load, but it was not my idea.
To use this just put the code in an empty file. Let's call it... 'conkystart'.
Code:
sudo chmod +x /path/to/conkystart
Chmod the file to be excutable.
Code:
sudo mv /path/to/conkystart /usr/bin/conkystart
Then move the file to your /usr/bin/ directory.
Now all you have to do to start conky is run 'conkystart' where you would normally run 'conky' (eg. in the terminal).
Other notes:
-The .conkyrc1 file lists 3 hard disks and only displays them if they are mounted. One of them (KINGSTON) is a USB drive. These settings should be customized to fit your own needs. Note, however, that there is no line break between the disks and the next if_existing arguement. To explain better: "Everything under the TEXT header in your .conkyrc file will get displayed. That means every line break or carriage return, too. If you were to put the $if_existing flag at the beginning of a new line, that new line would still be displayed, but would be a blank line when your device isn’t mounted, because the conditions of the $if_existing variable would not be met. To think of it another way: You’re putting the carriage return inside the $if_existing statement, so that the line break only happens when the conditions of the statement are met." Credit.
-The .conkyrc2 file requires kaivalagi's Google calendar python script and SSL email python scipt. Don't forget to replace YOURUSERNAME and YOURPASSWORD with your real information!
-The .conkyrc2 file checks to see if several programs are running (in the process information pane). You may not have these programs installed, which is fine.
.conkyrc1:
Code:
background no
cpu_avg_samples 2
net_avg_samples 2
out_to_console no
font -monotype-arial-medium-r-*-*-10-*-*-*-*-*-*-*
use_xft no
mail_spool $MAIL
update_interval 2
own_window yes
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar
own_window_type override
double_buffer yes
minimum_size 260 5
maximum_width 260
draw_shades no
draw_outline no
draw_borders no
stippled_borders no
border_margin 2
border_width 1
default_color white
default_shade_color white
default_outline_color white
gap_x 10
gap_y 10
alignment top_right
use_spacer none
no_buffers yes
uppercase no
TEXT
${color #75481D}Local ${voffset -2}${hr 3}
${color #75481D}$sysname $kernel $machine - $nodename
${color #75481D}Uptime:${color #907860} $uptime ${color #75481D} Load:${color #907860} $loadavg
${color #75481D}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'} ${color #907860}${freq_dyn}Mhz
${color #75481D}Usage:${color #75481D} ${color #907860}${cpu}% ${color #75481D}${cpubar}
${color #75481D}${voffset -3}${cpugraph}
${color #75481D}${voffset -3}Proces:${color #907860} $processes ${color #75481D}Run:${color #907860} $running_processes ${color #75481D}$alignr Battery: ${color #907860}${battery_percent BAT0}%
${color #75481D}RAM:${color #907860} $mem/$memmax - $memperc% ${color #75481D}$alignr${membar 5,90}
${color #75481D}SWP:${color #907860} $swap/$swapmax - $swapperc% ${color #75481D}$alignr${swapbar 5,90}
${color #75481D}CPU Usage${goto 100}PID CPU% MEM%
${color #907860} ${top name 1 | cut -c 5-5}${goto 95}${top pid 1} ${top cpu 1} ${top mem 1}
${color #75481D} ${top name 2 | cut -c 15}${goto 95}${top pid 2} ${top cpu 2} ${top mem 2}
${color #75481D} ${top name 3 | cut -c 15}${goto 95}${top pid 3} ${top cpu 3} ${top mem 3}
${color #75481D}Mem Usage
${color #907860} ${top_mem name 1 | cut -c 15}${goto 95}${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color #75481D} ${top_mem name 2 | cut -c 15}${goto 95}${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color #75481D} ${top_mem name 3 | cut -c 15}${goto 95}${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${color #75481D}Hard Disks:
${color #75481D} Root ${color #907860}${fs_used /}/${fs_size /}$alignr${color #75481D}${fs_bar 5,120 /}${if_existing /media/KINGSTON}
${color #75481D} Media ${color #907860}${fs_used /media/KINGSTON}/${fs_size /media/KINGSTON}$alignr${color #75481D}${fs_bar 5,120 /media/KINGSTON}$endif${if_existing /media/disk}
${color #75481D} Disk ${color #907860}${fs_used /media/disk}/${fs_size /media/disk}$alignr${color #75481D}${fs_bar 5,120 /media/disk}$endif
${color #75481D}Network ${voffset -2}${hr 3}
${color #75481D}Down:${color #907860} ${downspeed eth1} k/s $alignr${color #75481D} Up:${color #907860} ${upspeed eth1} k/s
${color #75481D}${voffset -3}${downspeedgraph eth1 27,120 180} $alignr${color #75481D}${upspeedgraph eth1 27,120 25}
${color #907860}${voffset -3}${totaldown eth1} $alignr${color #907860}${totalup eth1}
${color #75481D}ESSID: ${color #907860}${execi 30 iwconfig eth1 | grep "ESSID" | cut -c 31-50}${color #75481D}Link: ${color #907860}${execi 8 iwconfig eth1 | grep "Link" | cut -c 24-30}
${color #75481D}Port(s)$alignr #Connections
${color #75481D}Inbound: ${color #907860}${tcp_portmon 1 32767 count} ${color #75481D}Outbound: ${color #907860}${tcp_portmon 32768 61000 count}$alignr ${color #75481D}Total: ${color #907860}${tcp_portmon 1 65535 count}
.conkyrc2:
Code:
background no
cpu_avg_samples 2
net_avg_samples 2
out_to_console no
font -monotype-arial-medium-r-*-*-10-*-*-*-*-*-*-*
use_xft no
mail_spool $MAIL
update_interval 2
own_window yes
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar
own_window_type override
double_buffer yes
minimum_size 260 5
maximum_width 260
draw_shades no
draw_outline no
draw_borders no
stippled_borders no
border_margin 2
border_width 1
default_color white
default_shade_color white
default_outline_color white
alignment top_right
gap_x 280
gap_y 10
use_spacer none
no_buffers yes
uppercase no
TEXT
${color #75481D}Process Information ${voffset -2}${hr 3}
$alignc${color #75481D}Program Name:
${color #75481D}Rhythmbox ${color #907860}${if_running rhythmbox}XXX$endif $alignr${color #907860}${if_running transmission}XXX$endif ${color #75481D}Transmission
${color #75481D}Blockcontrol ${color #907860}${if_running moblock}XXX$endif $alignr${color #907860}${if_running mediatomb}XXX$endif ${color #75481D}Mediatomb
${color #75481D}Internet Feeds ${voffset -2}${hr 3}
${color #75481D}Top Gizmodo Stories:
${color #907860}1.${rss http://gizmodo.com/tag/top/index.xml 30 item_title 1}
${color #907860}2.${color #75481D}${rss http://gizmodo.com/tag/top/index.xml 30 item_title 2}
${color #907860}3.${color #75481D}${rss http://gizmodo.com/tag/top/index.xml 30 item_title 3}
${color #907860}4.${color #75481D}${rss http://gizmodo.com/tag/top/index.xml 30 item_title 4}
${color #907860}5.${color #75481D}${rss http://gizmodo.com/tag/top/index.xml 30 item_title 5}
${color #75481D}Top CNN Headlines:
${color #907860}1. ${rss http://rss.cnn.com/rss/edition.rss 30 item_title 1}
${color #907860}2. ${color #75481D}${rss http://rss.cnn.com/rss/edition.rss 30 item_title 2}
${color #907860}3. ${color #75481D}${rss http://rss.cnn.com/rss/edition.rss 30 item_title 3}
${color #907860}4. ${color #75481D}${rss http://rss.cnn.com/rss/edition.rss 30 item_title 4}
${color #907860}5. ${color #75481D}${rss http://rss.cnn.com/rss/edition.rss 30 item_title 5}
${color #75481D}Personal Reminders ${voffset -2}${hr 3}
${color #75481D}Gmail: ${color #907860}${execi 1800 conkyEmail --servertype=IMAP --ssl --servername=imap.gmail.com --username=YOURUSERNAME --password=YOURPASSWORD --mailinfo=5}
${color #75481D}Upcomming Events:
${color #75481D}${execi 1800 conkyGoogleCalendar --username=YOURUSERNAME --password=YOURPASSWORD --daysahead=30 --limit=5 --nowho}
Bookmarks