改天把代码贴出来 :mrgreen:


myconkyrc 模板

# set to yes if you want Conky to be forked in the background
background no

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 7x12
#font 6x10
#font 7x13
#font 8x13
#font 7x12
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
#font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
xftfont Microsoft YaHei:size=8

own_window_transparent yes
#own_window_colour hotpink
# Text alpha when using Xft
xftalpha 0.8
#on_bottom yes

# mail spool
#mail_spool $MAIL

# Update interval in seconds
update_interval 1
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_colour 343434
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_type override

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 200 5
maximum_width 300

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 3

# border margins
border_inner_margin 5

# border width
border_width 6

# Default colors and also border colors
default_color grey90
default_shade_color black
default_outline_color DarkGrey

# Text alignment, other possible values are commented
#alignment top_left
#minimum_size 10 10
gap_x 3
gap_y 47
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer yes

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# none, xmms, bmp, audacious, infopipe (default is none)
#none xmms_player bmp

# 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
#${font Dungeon:style=Bold:pixelsize=10}I can change the font as well
#${font Verdana:size=10}as many times as I choose
#${font Perry:size=10}Including UTF-8,
# stuff after 'TEXT' will be formatted on screen

TEXT
	#OS Info
${voffset -8}${font OpenLogos:regular:size=18}${color #ffa500}u ${voffset -8}${font Anklepants:regular:size=11}${color #5da5d3}OS Info
${voffset -6}${color #ffd700}${hr 1}$font$color
   ${font Microsoft YaHei:bold:size=8}${color #ffd700}OS: $alignr${color}${execi 99999 uname -o} ${color #cdc8b1}${execi 99999 lsb_release -d -s -c | tr -s "\n" " "}
   ${font Microsoft YaHei:bold:size=8}${color #ffd700}Kernel: $alignr${color}$kernel $machine ${color}${execi 99999  uname -v | cut -c -15}
   ${font Microsoft YaHei:bold:size=8}${color #ffd700}User: ${alignr}${color #cdc8b1}${execi 9999 whoami} ${color}on $nodename${color #ffd700}
   ${font Microsoft YaHei:bold:size=8}${color #ffd700}Up Time: $alignr${color}$uptime_short
   #${font Microsoft YaHei:bold:size=8}${color #ffd700}Time: ${alignr}${color}${time %G %B %e} ${time %A,}     ${time %H:%M:%S}
	#CPU
${font Your Keys:regular:18}${color white}W${font Anklepants:regular:size=11}${color #5da5d3} CPU
${voffset -8}${color #ffd700}${hr 1}$font$color
   ${font Microsoft YaHei:bold:size=8}${color #ffd700}${execi 99999 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2- | sed 's#Processor ##'}${font Microsoft YaHei:size=8}$color
    ${freq_g 1}GHz  ${color #c0ff3e}${execi 5 sensors |grep '^Core 0' |cut -c15-16} °C${font Microsoft YaHei:size=8}$color$alignr${freq_g 2}GHz  ${color #c0ff3e}${execi 5 sensors |grep '^Core 1' |cut -c15-16} °C  $color
   ${voffset -6}${cpugraph cpu1 25,115 000000 ff4500 }  $alignr${cpugraph cpu2 25,115 000000 436eee}
   ${color #ffffff}${voffset -25}              ${cpu cpu1}%$alignr${cpu cpu2}%         ${color #ff4500}
   ${voffset 5}${color #ffe7ba}Load: $color $loadavg ${color #ffe7ba} $alignr Processes: $color$running_processes/$processes
   ${color #ffe7ba}Top Processes$alignr -PID-    CPU     MEM$color
   ${top name 1}${color #ff6a6a}$alignr${top pid 1}${top cpu 1}   ${top mem 1}$color
   ${top name 2}${color #ffc125}$alignr${top pid 2}${top cpu 2}   ${top mem 2}$color
   ${top name 3}${color #eeee00}$alignr${top pid 3}${top cpu 3}   ${top mem 3}$color
   ${top name 4}${color #c0ff3e}$alignr${top pid 4}${top cpu 4}   ${top mem 4}$color
	#System Stats
${voffset 4}${font Your Keys:regular:18}${color white}U ${font Anklepants:regular:size=11}${color #5da5d3}System Stats
${voffset -8}${color #ffd700}${hr 1}$font$color
   ${font Microsoft YaHei:bold:size=10}${color #ffd700}Video Card: ${font Microsoft YaHei:bold:size=8}${color #cdc8b1}${execi 20 glxinfo | grep "OpenGL renderer" | cut -c 25-39}$color$font
   2D/3D Clock: ${color #c0ff3e}${execi 20 nvidia-settings -q GPUCurrentClockFreqs | grep "Attribute" | cut -d" " -f6 | tr -s "," "/" | tr -d "."
} MHz $alignr${color} Temp: ${color #c0ff3e}${execi 20 nvidia-settings -q gpucoretemp | grep "Attribute" | cut -d" " -f6 | cut -c -2} °C
	#RAM and DISK Info
${voffset 4}${font Mac Dingbats:regular:size=14}${color #f5f5dc}V ${voffset -4}${font Anklepants:regular:size=11}${color #5da5d3}RAM and DISK Info
${voffset -8}${color #ffd700}${hr 1}$font$color
   ${color #ffe7ba}RAM:$color $mem/$memmax${color #828282}$alignr${membar 10,80}
${color #ffff00}${voffset -16}$alignr$memperc%      ${voffset 2}
   ${color #c0ff3e}HD Temp: $alignr${color #f0e68c}${hddtemp /dev/sda} °C
   $color${diskiograph 10 00ff00 2f4f4f}
   ${voffset -25}${color #ffd700}  Reading: $color$diskio_read$alignr${color #ffd700}Writing: $color$diskio_write  ${voffset 10}
   ${color #ffe7ba}FS: $color${fs_used /}/ ${fs_size /}$alignr${color #ffd700}${fs_type /} $color${fs_used_perc /}%
   ${voffset -5}${color #7fff00}${fs_bar 3 /}
   #${color #ffe7ba}Swap:$color$alignc ${fs_used /swap}/ ${fs_size /swap}$alignr${color #ffd700}${fs_type /swap} $color${fs_used_perc /swap}%
   #${voffset -5}${color #ffff00}${fs_bar 3 /swap}
	#Network
${voffset -1}${font Wingdings 3:regular:size=18}${color #bcee68}F${voffset -3}${font Anklepants:regular:size=11}${color #5da5d3} Network
${voffset -8}${color #ffd700}${hr 1}${font Microsoft YaHei:size=8}$color$
   ${color #ffe7ba}WAN: $alignr${color white}${execi 3600 wget -O - http://whatismyip.org/ | tail}
		#if using WIFI
${color #ffe7ba}${if_up wlan0}Wireless Mode: ${color white}$alignr${wireless_mode wlan0}
   ${color #ffe7ba}Wireless Rate:${color white} ${wireless_bitrate wlan0} $alignr${color #0077ff}Link Quality: ${color white}${wireless_link_qual_perc wlan0}
   ${color #ffe7ba}IP Address:${color white} $alignr${addr wlan0}
   ${color #ffe7ba}Associated With:${color white} ${alignr}${wireless_essid wlan0}
   ${voffset -1}${downspeedgraph wlan0 25,115 b0e2ff 556b2f} ${alignr}${upspeedgraph wlan0 25,115 b0e2ff ff4040}
   ${voffset -35}${color #ffd700} Download: ${color white}${downspeed wlan0}k/s ${alignr}${color #ffd700}Upload: ${color white}${upspeed wlan0}k/s ${voffset 15}
   ${color #ffe7ba}Total: ${color white}${totaldown wlan0} ${alignr}${color #ffe7ba}Total:  ${color white}${totalup wlan0}
   ${color #ffe7ba}Inbound: ${color white}${tcp_portmon 1 32767 count}${alignr}${color #ffe7ba}Outbound: ${color white}${tcp_portmon 32768 61000 count}
		#if using Wired Net
   ${color #ffe7ba}${else}Wired IP Address: $alignr$color${addr eth0}
   ${downspeedgraph eth0 25,115 b0e2ff 556b2f} ${alignr}${upspeedgraph eth0 25,115 b0e2ff ff4040}
   ${voffset -35}${color #ffd700} Download: ${color white}${downspeed eth0}k/s ${alignr}${color #ffd700}Upload: ${color white}${upspeed eth0}k/s ${voffset 15}
   ${color #ffe7ba}Total: ${color white}${totaldown eth0} ${alignr}${color #ffe7ba}Total:  ${color white}${totalup eth0}
   ${color #ffe7ba}Inbound: ${color white}${tcp_portmon 1 32767 count}${alignr}${color #ffe7ba}Outbound: ${color white}${tcp_portmon 32768 61000 count} ${endif}
	#E-MAIL
${voffset -8}${font Wingdings:regular:size=18}${color #f5f5dc}.${voffset -4}${font Anklepants:regular:size=11}${color #5da5d3} E-MAIL
${voffset -8}${color #ffd700}${hr 1}$font$color
You have ${color red}${texeci 1800 perl ~/conkyrc/check_gmail.sh} ${color}new mail(s)
${voffset 4}${font Mac Dingbats:regular:size=14}${color #f5f5dc} m ${voffset -4}${font Anklepants:regular:size=11}${color #5da5d3}FORTUNE
${voffset -8}${color #ffd700}${hr 1}$font$color
   ${color #ffe7ba}${execi 120 fortune -s | fold -w50}
#   ${color #ffe7ba}Tomorrow is another day!