当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 14 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 放个conkyrc配置在这里
帖子发表于 : 2009-04-02 18:35 
头像

注册: 2009-03-19 9:19
帖子: 1423
地址: 江苏
送出感谢: 0 次
接收感谢: 2
conky sleep 30s
启动项设置延时30秒开机启动,详情看man page

第一步:安装
终端输入:
代码:
sudo apt-get install conky
zcat /usr/share/doc/conky/examples/conky.conf.gz > ~/.conkyrc

或者新立德搜索comky安装

也许你会发现找不到这个文件,这大概是版本不同的原因。不过还好,一般情况下这个路径下只有这一个压缩文件。

第二步:配置conky
终端输入:
代码:
gedit ~/.conkyrc

附件:
sendpix8.jpg
sendpix8.jpg [ 159.42 KiB | 被浏览 4706 次 ]



代码:
# set to yes if you want Conky 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 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

# Text alpha when using Xft
xftalpha 0.8
#on_bottom yes

# mail spool
#mail_spool $MAIL

# Update interval in seconds
update_interval 2
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type normal
own_window_transparent yes
own_window_colour hotpink
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 200 5
maximum_width 300

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no
draw_graph_borders yes

# Stippled borders?
stippled_borders 3

# border margins
border_margin 0

# border width
border_width 0

# 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 2
gap_y 1
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
${voffset -93}${font OpenLogos:regular:size=18}${color #ffa500}${voffset 93}${font Microsoft YaHei:regular:size=11}${color #5da5d3}系统信息    WWW.LIZHENGLIN.COM
${voffset -6}${color #ffd700}${hr 1}$font$color
   ${font Microsoft YaHei:bold:size=8}${color #ffd700}系统: $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}内核: $alignr${color}$kernel $machine ${color}${execi 99999  uname -v | cut -c -15}
   ${font Microsoft YaHei:bold:size=8}${color #ffd700}开机时间: $alignr${color}$uptime_short
${font Your Keys:regular:18}${color white}${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${offset -2}${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
${voffset 4}${font Your Keys:regular:18}${color white}${font Anklepants:regular:size=11}${color #5da5d3}GPU信息
${voffset -8}${color #ffd700}${hr 1}$font$color
   ${font Microsoft YaHei:bold:size=10}${color #ffd700}显卡: ${font Bitstream Charter:bold:size=10}${color #cdc8b1}${execi 20 glxinfo | grep "OpenGL renderer" | cut -c 25-39}$color$font
   显卡频率:${color #c0ff3e}${execi 20 nvidia-settings -q GPUCurrentClockFreqs | grep "Attribute" | cut -d" " -f6 | tr -s "," "/" | tr -d "."
} MHz $alignr${color} 温度:${color #c0ff3e}${execi 20 nvidia-settings -q gpucoretemp | grep "Attribute" | cut -d" " -f6 | cut -c -2} °C
${voffset 4}${font Mac Dingbats:regular:size=14}${color #f5f5dc}V ${voffset -4}${font Microsoft YaHei:regular:size=11}${color #5da5d3}内存和硬盘
${voffset -8}${color #ffd700}${hr 1}$font$color
   ${color #ffe7ba}内存:$color $mem/$memmax${color #828282}$alignr${offset -2}${membar 10,80}
${color #ffff00}${voffset -16}$alignr$memperc%      ${voffset 2}
   ${color #c0ff3e}硬盘温度:$alignr${color #f0e68c}${hddtemp /dev/sda}
   $color${diskiograph 10 00ff00 2f4f4f}
   ${voffset -25}${color #ffd700}  Reading: $color$diskio_read$alignr${color #ffd700}Writing: $color$diskio_write  ${voffset 10}
   ${color #ffe7ba}文件系统:$color${fs_used /}/ ${fs_size /}$alignr${color #ffd700}${fs_type /} $color${fs_used_perc /}%
   ${voffset -5}${color #7fff00}${fs_bar 3 /}
   ${color #ffe7ba}Home:$color$alignc ${fs_used /home}/ ${fs_size /home}$alignr${color #ffd700}${fs_type /home} $color${fs_used_perc /home}%
   ${voffset -5}${color #ffff00}${fs_bar 3 /home}
${voffset 3}${font Wingdings 3:regular:size=18}${color #bcee68}${voffset -3}${font Microsoft YaHei:regular:size=11}${color #5da5d3} 网络信息
${voffset -8}${color #ffd700}${hr 1}${font Microsoft YaHei:size=8}$color
   ${color #ffe7ba}公网IP: $alignr$color${execi 3600 wget -O - http://www.lizhenglin.com/wwip.asp | tail}
   ${color #ffe7ba}内网IP:$color $alignr${addr eth1}
   ${voffset 3}${downspeedgraph eth1 25,115 e02a2a ff0000}${alignr}${offset -2}${upspeedgraph eth1 25,115 2121db 0000ff}
   ${voffset -26}${color #ffd700} 下载速度: ${color white}${downspeed eth1}KB/s ${alignr}${color #ffd700}上传速度: ${color white}${upspeed eth1}KB/s
   ${voffset 5}${color #ffe7ba}总计下载: ${color white}${totaldown eth1} ${alignr}${color #ffe7ba}总计上传:  ${color white}${totalup eth1}


http://www.lizhenglin.com/wwip.asp
IP调用代码(自己有网站把代码放自己空间去):
代码:
<%
ip=Request.ServerVariables("LOCAL_ADDR")
response.write Request.ServerVariables("REMOTE_ADDR")&""&port
%>


显卡频率和温度不显示,硬盘温度也不显示。知道设置的人多多指教。
本来现个调用天气的,但是发现调用了启动比较慢,就去掉了

天气配置:
打开yahoo的天气网址:
http://weather.yahoo.com/
在Enter city or zip code:中输入你的城市(只有一些大城市,小城市可以选择较近的),搜索。然后在地址栏中获取你城市的代码,是CHXX开头的一个8字节串。例如:CHXX0015

天气代码:
代码:
${color white}WEATHER ${hr 1}${color}
${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0015 --datatype=CN}
${font Weather:size=44}${color gold}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0015 --datatype=WF}${font}${color}${voffset -20}${offset 18}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0015 --datatype=CC}${offset 10}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0015 --datatype=HT}${offset 10}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0015 --datatype=WS} ${font Arrows:size=10}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0015 --datatype=BF}$font
${offset 60}Sol: ${color}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0015 --datatype=SR}-${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0015 --datatype=SS}
${font Weather:size=26}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0015 --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0015 --datatype=HT --startday=1 --endday=4 --spaces=11}


天气字体
附件:
fonts_weather.tar.gz [14.36 KiB]
被下载 72 次

附件:
conkyForecast.py.tar.gz [9.49 KiB]
被下载 86 次


_________________


最后由 mickeywaley 编辑于 2009-06-12 3:14,总共编辑了 6 次

页首
 用户资料  
 
2 楼 
 文章标题 : Re: 放个conkyrc配置在这里
帖子发表于 : 2009-04-02 18:44 
头像

注册: 2007-04-06 10:24
帖子: 2487
地址: ~/Shanghai
送出感谢: 0 次
接收感谢: 0 次
HP 的主题

这个conky 不好看的说 :em03


_________________
http://silenceisdefeat.com/~greco
代码:
''.join([chr(ord(c)-2) for c in 'O{"G/ockn"ku<"itgeq0ujkBiockn0eqo'])
echo -n "Z3JlY28uc2hpQGdtYWlsLmNvbQ==" | base64 -d


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 放个conkyrc配置在这里
帖子发表于 : 2009-04-02 18:59 
头像

注册: 2009-03-19 9:19
帖子: 1423
地址: 江苏
送出感谢: 0 次
接收感谢: 2
greco 写道:
HP 的主题

这个conky 不好看的说 :em03


我也感觉这样,呵呵。讲究用着,有好的在换

附件:
Screenshot.png
Screenshot.png [ 889.49 KiB | 被浏览 4721 次 ]



_________________


页首
 用户资料  
 
4 楼 
 文章标题 : Re: 放个conkyrc配置在这里
帖子发表于 : 2009-04-03 23:14 
头像

注册: 2009-03-19 9:19
帖子: 1423
地址: 江苏
送出感谢: 0 次
接收感谢: 2
今天又换了个
附件:
sendpix2.jpg
sendpix2.jpg [ 196.62 KiB | 被浏览 4643 次 ]



代码:
background yes
font Zekton:size=9
xftfont Zekton:size=9
use_xft yes
xftalpha 0.1
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
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 300 10
maximum_width 500
default_color 52B1D4
default_shade_color black
default_outline_color black
alignment bottom_left
gap_x 10
gap_y 10
no_buffers yes
cpu_avg_samples 2
override_utf8_locale yes
uppercase no # set to yes if you want all text to be in uppercase
use_spacer none

TEXT
${font Zekton:style=Bold:pixelsize=80}${alignc}${time %H:%M:%S}${font Zekton:size=9}
$stippled_hr
${color BF6506}${font Zekton:style=Bold:pixelsize=20}${alignc}UBUNTU 8.10 ${color}
$stippled_hr${font}
Hostname: ${color FFFFFF}$alignr$nodename${color}
Kernel: ${color FFFFFF}$alignr$kernel${color}
Uptime: ${color FFFFFF}$alignr$uptime${color}
Processes: ${color FFFFFF}${alignr}$processes ($running_processes running)${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${offset -2}${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
RAM ${alignr}${color FFFFFF}$mem / $memmax ($memperc%)
${color B6FF77}${membar 4}${color}
SWAP ${alignr}${color FFFFFF}$swap / $swapmax ($swapperc%)
${color FFFC77}${swapbar 4}${color}
Disk Read ${alignr}${color FFFFFF}${diskiograph_read /dev/sda 10,200 FFFC77 FF8177}$diskio_read /dev/sda${color}
Disk Write ${alignr}${color FFFFFF}${diskiograph_write /dev/sda 10,200 FFFC77 FF8177}$diskio_write /dev/sda ${color}
Highest CPU $alignr CPU% MEM%${color FFAA00}
${top name 1}$alignr${top cpu 1}${top mem 1}
${top name 2}$alignr${top cpu 2}${top mem 2}
${top name 3}$alignr${top cpu 3}${top mem 3}
${top name 4}$alignr${top cpu 4}${top mem 4}
${top name 5}$alignr${top cpu 5}${top mem 5}
${color}
Highest MEM $alignr CPU% MEM%${color B5FF00}
${top_mem name 1}$alignr${top_mem cpu 1}${top_mem mem 1}
${top_mem name 2}$alignr${top_mem cpu 2}${top_mem mem 2}
${top_mem name 3}$alignr${top_mem cpu 3}${top_mem mem 3}
${top_mem name 4}$alignr${top_mem cpu 4}${top_mem mem 4}
${top_mem name 5}$alignr${top_mem cpu 5}${top_mem mem 5}
${color}
FILESYSTEM ${hr}
${color #ffe7ba}Root:$color${fs_used /}/ ${fs_size /}$alignr${color #ffd700}${fs_type /} $color${fs_used_perc /}%
${voffset -5}${color #7fff00}${fs_bar 3 /}
${color #ffe7ba}Home:$color$alignc ${fs_used /home}/ ${fs_size /home}$alignr${color #ffd700}${fs_type /home} $color${fs_used_perc /home}%
${voffset -5}${color #ffff00}${fs_bar 3 /home}
${color}
installatio: ${alignr}${color FFFFFF}${fs_free /media/installatio} / ${fs_size /media/installatio}
${color FFFC77}${fs_bar 4 /media/installatio}${color}
Learn: ${alignr}${color FFFFFF}${fs_free /media/Learn} / ${fs_size /media/Learn}
${color FFFC77}${fs_bar 4 /media/Learn}${color}
mac: ${alignr}${color FFFFFF}${fs_free /media/mac} / ${fs_size /media/mac}
${color FFFC77}${fs_bar 4 /media/mac}${color}
NETWORK $alignr IP Address: ${color FFFFFF}${addr ppp0}${color}
Down ${color FFFFFF}${downspeed eth0} k/s ${color}${alignr}Up ${color FFFFFF}${upspeed eth0} k/s
${color FF8177}${downspeedgraph eth0 25,200} ${alignr}${upspeedgraph eth0 25,200}${color}
Total  ${color FFFFFF}${totaldown eth0}${color} ${alignr}Total  ${color FFFFFF}${totalup eth0}


_________________


最后由 mickeywaley 编辑于 2009-04-03 23:27,总共编辑了 1 次

页首
 用户资料  
 
5 楼 
 文章标题 : Re: 放个conkyrc配置在这里
帖子发表于 : 2009-04-03 23:15 
头像

注册: 2009-03-19 9:19
帖子: 1423
地址: 江苏
送出感谢: 0 次
接收感谢: 2
占楼放个人设置

加了个显卡型号
代码:
background yes
font Zekton:size=9
xftfont Zekton:size=9
use_xft yes
xftalpha 0.1
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
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 300 10
maximum_width 500
default_color 52B1D4
default_shade_color black
default_outline_color black
alignment bottom_left
gap_x 10
gap_y 10
no_buffers yes
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
uppercase no # set to yes if you want all text to be in uppercase
use_spacer none

TEXT
${font Zekton:style=Bold:pixelsize=80}${alignc}${time %H:%M:%S}${font Zekton:size=9}
$stippled_hr
${color BF6506}${font Zekton:style=Bold:pixelsize=20}${alignc}UBUNTU 8.10 ${color}
$stippled_hr${font}
Hostname: ${color FFFFFF}$alignr$nodename${color}
Kernel: ${color FFFFFF}$alignr$kernel${color}
Uptime: ${color FFFFFF}$alignr$uptime${color}
Processes: ${color FFFFFF}${alignr}$processes ($running_processes running)${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${offset -2}${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
Gpu: ${color FFFFFF}${color #ffd700}${execi 20 glxinfo | grep "OpenGL renderer" | cut -c 25-39}$color$font | ${color snow}${execi 1 nvidia-settings -q gpucoretemp | grep "Attribute" | cut -d" " -f6 | cut -c -2} °C
RAM ${alignr}${color FFFFFF}$mem / $memmax ($memperc%)
${color B6FF77}${membar 4}${color}
SWAP ${alignr}${color FFFFFF}$swap / $swapmax ($swapperc%)
${color FFFC77}${swapbar 4}${color}
Disk Read ${alignr}${color FFFFFF}${diskiograph_read /dev/sda 10,200 FFFC77 FF8177}$diskio_read /dev/sda${color}
Disk Write ${alignr}${color FFFFFF}${diskiograph_write /dev/sda 10,200 FFFC77 FF8177}$diskio_write /dev/sda ${color}
Highest CPU $alignr CPU% MEM%${color FFAA00}
${top name 1}$alignr${top cpu 1}${top mem 1}
${top name 2}$alignr${top cpu 2}${top mem 2}
${top name 3}$alignr${top cpu 3}${top mem 3}
${top name 4}$alignr${top cpu 4}${top mem 4}
${top name 5}$alignr${top cpu 5}${top mem 5}
${color}
Highest MEM $alignr CPU% MEM%${color B5FF00}
${top_mem name 1}$alignr${top_mem cpu 1}${top_mem mem 1}
${top_mem name 2}$alignr${top_mem cpu 2}${top_mem mem 2}
${top_mem name 3}$alignr${top_mem cpu 3}${top_mem mem 3}
${top_mem name 4}$alignr${top_mem cpu 4}${top_mem mem 4}
${top_mem name 5}$alignr${top_mem cpu 5}${top_mem mem 5}
${color}
FILESYSTEM ${hr}
${color #ffe7ba}Root:$color${fs_used /}/ ${fs_size /}$alignr${color #ffd700}${fs_type /} $color${fs_used_perc /}%
${voffset -5}${color #7fff00}${fs_bar 3 /}
${color #ffe7ba}Home:$color$alignc ${fs_used /home}/ ${fs_size /home}$alignr${color #ffd700}${fs_type /home} $color${fs_used_perc /home}%
${voffset -5}${color #ffff00}${fs_bar 3 /home}
${color}
installatio: ${alignr}${color FFFFFF}${fs_free /media/installatio} / ${fs_size /media/installatio}
${color FFFC77}${fs_bar 4 /media/installatio}${color}
Learn: ${alignr}${color FFFFFF}${fs_free /media/Learn} / ${fs_size /media/Learn}
${color FFFC77}${fs_bar 4 /media/Learn}${color}
mac: ${alignr}${color FFFFFF}${fs_free /media/mac} / ${fs_size /media/mac}
${color FFFC77}${fs_bar 4 /media/mac}${color}
NETWORK $alignr IP Address: ${color FFFFFF}${addr ppp0}${color} / ${color #ffe7ba}Within Net IP:$color $alignr${addr eth0}
Down ${color FFFFFF}${downspeed eth0} k/s ${color}${alignr}Up ${color FFFFFF}${upspeed eth0} k/s
${color FF8177}${downspeedgraph eth0 25,200} ${alignr}${upspeedgraph eth0 25,200}${color}
Total  ${color FFFFFF}${totaldown eth0}${color} ${alignr}Total  ${color FFFFFF}${totalup eth0}


_________________


最后由 mickeywaley 编辑于 2009-04-13 14:24,总共编辑了 3 次

页首
 用户资料  
 
6 楼 
 文章标题 : Re: 放个conkyrc配置在这里
帖子发表于 : 2009-04-03 23:15 
头像

注册: 2009-03-19 9:19
帖子: 1423
地址: 江苏
送出感谢: 0 次
接收感谢: 2
代码:
background yes
font Zekton:size=9
xftfont Zekton:size=9
use_xft yes
xftalpha 0.1
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
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 300 10
maximum_width 300
default_color 52B1D4
default_shade_color black
default_outline_color black
alignment bottom_left
gap_x 10
gap_y 10
no_buffers yes
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
uppercase no # set to yes if you want all text to be in uppercase
use_spacer none

TEXT
${font Zekton:style=Bold:pixelsize=70}${alignc}${time %H:%M:%S}${font Zekton:size=9}
$stippled_hr${font}
OS: $alignr${color}${execi 99999 uname -o} ${color #cdc8b1}${execi 99999 lsb_release -d -s -c | tr -s "\n" " "}
Hostname: ${color FFFFFF}$alignr$nodename${color}
Kernel: ${color FFFFFF}$alignr$kernel${color}
Uptime: ${color FFFFFF}$alignr$uptime${color}
Processes: ${color FFFFFF}${alignr}$processes ($running_processes running)${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,145 000000 ff4500 }  $alignr${offset -2}${cpugraph cpu2 25,145 000000 436eee}
${color #ffffff}${voffset -25}              ${cpu cpu1}%$alignr${cpu cpu2}%         ${color #ff4500}
${voffset 5}${color #ffe7ba}Load: $color $loadavg ${color #ffe7ba} $alignr
${font Microsoft YaHei:bold:size=10}${color #ffd700}Video Card: ${font Bitstream Charter:bold:size=10}${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 ${alignr}${color FFFFFF}$mem / $memmax ($memperc%)
${color B6FF77}${membar 4}${color}
SWAP ${alignr}${color FFFFFF}$swap / $swapmax ($swapperc%)
${color FFFC77}${swapbar 4}${color}
Disk Read ${alignr}${color FFFFFF}${diskiograph_read /dev/sda 10,200 FFFC77 FF8177}$diskio_read /dev/sda${color}
Disk Write ${alignr}${color FFFFFF}${diskiograph_write /dev/sda 10,200 FFFC77 FF8177}$diskio_write /dev/sda ${color}
Highest CPU $alignr CPU% MEM%${color FFAA00}
${top name 1}$alignr${top cpu 1}${top mem 1}
${top name 2}$alignr${top cpu 2}${top mem 2}
${top name 3}$alignr${top cpu 3}${top mem 3}
${top name 4}$alignr${top cpu 4}${top mem 4}
${top name 5}$alignr${top cpu 5}${top mem 5}
Highest MEM $alignr CPU% MEM%${color B5FF00}
${top_mem name 1}$alignr${top_mem cpu 1}${top_mem mem 1}
${top_mem name 2}$alignr${top_mem cpu 2}${top_mem mem 2}
${top_mem name 3}$alignr${top_mem cpu 3}${top_mem mem 3}
${top_mem name 4}$alignr${top_mem cpu 4}${top_mem mem 4}
${top_mem name 5}$alignr${top_mem cpu 5}${top_mem mem 5}
${color}
FILESYSTEM ${hr}
${color #ffe7ba}Root:$color${fs_used /}/ ${fs_size /}$alignr${color #ffd700}${fs_type /} $color${fs_used_perc /}%
${voffset -5}${color #7fff00}${fs_bar 3 /}
${color #ffe7ba}Home:$color$alignc ${fs_used /home}/ ${fs_size /home}$alignr${color #ffd700}${fs_type /home} $color${fs_used_perc /home}%
${voffset -5}${color #ffff00}${fs_bar 3 /home}
${color}
installatio: ${alignr}${color FFFFFF}${fs_free /media/installatio} / ${fs_size /media/installatio}
${color FFFC77}${fs_bar 4 /media/installatio}${color}
Learn: ${alignr}${color FFFFFF}${fs_free /media/Learn} / ${fs_size /media/Learn}
${color FFFC77}${fs_bar 4 /media/Learn}${color}
mac: ${alignr}${color FFFFFF}${fs_free /media/mac} / ${fs_size /media/mac}
${color FFFC77}${fs_bar 4 /media/mac}${color}
NETWORK
$alignr IP Address: ${color FFFFFF}${addr ppp0}${color}
$alignr Within Net IP:$color $alignr${addr lo}
Down ${color FFFFFF}${downspeed eth0} k/s ${color}${alignr}Up ${color FFFFFF}${upspeed eth0} k/s
${color FF8177}${downspeedgraph eth0 25,145} ${alignr}${upspeedgraph eth0 25,145}${color}
Total  ${color FFFFFF}${totaldown eth0}${color} ${alignr}Total  ${color FFFFFF}${totalup eth0}


附件:
%7B9965422A-0C58-40C5-A717-E6410EE39D04%7D.jpg
%7B9965422A-0C58-40C5-A717-E6410EE39D04%7D.jpg [ 255.06 KiB | 被浏览 4589 次 ]



_________________


最后由 mickeywaley 编辑于 2009-05-03 7:57,总共编辑了 2 次
页首
 用户资料  
 
7 楼 
 文章标题 : Re: 放个conkyrc配置在这里
帖子发表于 : 2009-04-03 23:15 
头像

注册: 2009-03-19 9:19
帖子: 1423
地址: 江苏
送出感谢: 0 次
接收感谢: 2
代码:
background yes
font Zekton:size=9
xftfont Zekton:size=9
use_xft yes
xftalpha 0.1
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
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 200 10
maximum_width 200
default_color 52B1D4
default_shade_color black
default_outline_color black
alignment bottom_left
gap_x 10
gap_y 10
no_buffers yes
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
uppercase no # set to yes if you want all text to be in uppercase
use_spacer none

TEXT
${font Zekton:style=Bold:pixelsize=50}${alignc}${time %H:%M:%S}${font Zekton:size=9}
$stippled_hr${font}
OS: $alignr${color}${execi 99999 uname -o} ${color #cdc8b1}${execi 99999 lsb_release -d -s -c | tr -s "\n" " "}
Hostname: ${color FFFFFF}$alignr$nodename${color}
Kernel: ${color FFFFFF}$alignr$kernel${color}
Uptime: ${color FFFFFF}$alignr$uptime${color}
Processes: ${color FFFFFF}${alignr}$processes ($running_processes running)${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,95 000000 ff4500 }  $alignr${offset -2}${cpugraph cpu2 25,95 000000 436eee}
${color #ffffff}${voffset -25}              ${cpu cpu1}%$alignr${cpu cpu2}%         ${color #ff4500}
${voffset 5}${color #ffe7ba}Load: $color $loadavg ${color #ffe7ba} $alignr

${font Microsoft YaHei:bold:size=10}${color #ffd700}Video Card:${font Bitstream Charter:bold:size=10}${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 ${alignr}${color FFFFFF}$mem / $memmax ($memperc%)
${color B6FF77}${membar 4}${color}
SWAP ${alignr}${color FFFFFF}$swap / $swapmax ($swapperc%)
${color FFFC77}${swapbar 4}${color}
Disk Read ${alignr}${color FFFFFF}${diskiograph_read /dev/sda 10,65 FFFC77 FF8177}$diskio_read /dev/sda${color}
Disk Write ${alignr}${color FFFFFF}${diskiograph_write /dev/sda 10,65 FFFC77 FF8177}$diskio_write /dev/sda${color}
Highest CPU $alignr CPU% MEM%${color FFAA00}
${top name 1}$alignr${top cpu 1}${top mem 1}
${top name 2}$alignr${top cpu 2}${top mem 2}
${top name 3}$alignr${top cpu 3}${top mem 3}
${top name 4}$alignr${top cpu 4}${top mem 4}
${top name 5}$alignr${top cpu 5}${top mem 5}
Highest MEM $alignr CPU% MEM%${color B5FF00}
${top_mem name 1}$alignr${top_mem cpu 1}${top_mem mem 1}
${top_mem name 2}$alignr${top_mem cpu 2}${top_mem mem 2}
${top_mem name 3}$alignr${top_mem cpu 3}${top_mem mem 3}
${top_mem name 4}$alignr${top_mem cpu 4}${top_mem mem 4}
${top_mem name 5}$alignr${top_mem cpu 5}${top_mem mem 5}
${color}
FILESYSTEM ${hr}
${color #ffe7ba}Root:$color${fs_used /}/ ${fs_size /}$alignr${color #ffd700}${fs_type /} $color${fs_used_perc /}%
${voffset -5}${color #7fff00}${fs_bar 3 /}
${color #ffe7ba}Home:$color$alignc ${fs_used /home}/ ${fs_size /home}$alignr${color #ffd700}${fs_type /home} $color${fs_used_perc /home}%
${voffset -5}${color #ffff00}${fs_bar 3 /home}
${color}
winxp: ${alignr}${color FFFFFF}${fs_free /media/winxp} / ${fs_size /media/winxp}
${color FFFC77}${fs_bar 4 /media/winxp}${color}
installatio: ${alignr}${color FFFFFF}${fs_free /media/installatio} / ${fs_size /media/installatio}
${color FFFC77}${fs_bar 4 /media/installatio}${color}
NETWORK
$alignr IP Address:${color FFFFFF}${addr ppp0}${color}
$alignr Within Net IP:$color $alignr${addr eth0}
Down ${color FFFFFF}${downspeed eth0} k/s ${color}${alignr}Up ${color FFFFFF}${upspeed eth0} k/s
${color FF8177}${downspeedgraph eth0 25,95} ${alignr}${upspeedgraph eth0 25,95}${color}
Total  ${color FFFFFF}${totaldown eth0}${color} ${alignr}Total  ${color FFFFFF}${totalup eth0}


附件:
sendpix0.jpg
sendpix0.jpg [ 225.27 KiB | 被浏览 4586 次 ]



最后由 mickeywaley 编辑于 2009-08-09 12:31,总共编辑了 1 次
页首
 用户资料  
 
8 楼 
 文章标题 : Re: 放个conkyrc配置在这里
帖子发表于 : 2009-07-20 14:35 
头像

注册: 2009-03-19 9:19
帖子: 1423
地址: 江苏
送出感谢: 0 次
接收感谢: 2
代码:

# set to yes if you want Conky 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 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

# Text alpha when using Xft
xftalpha 0.8
#on_bottom yes

# mail spool
#mail_spool $MAIL

# Update interval in seconds
update_interval 2
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type normal
own_window_transparent yes
own_window_colour hotpink
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 200 10
maximum_width 200

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no
draw_graph_borders yes

# Stippled borders?
stippled_borders 3

# border margins
border_margin 0

# border width
border_width 0

# 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 2
gap_y 1
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
${voffset -93}${font OpenLogos:regular:size=18}${color #ffa500}${voffset 93}${font Microsoft YaHei:regular:size=11}${color #5da5d3}系统信息   
${voffset -6}${color #ffd700}${hr 1}$font$color
   ${font Microsoft YaHei:bold:size=8}${color #ffd700}系统: $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}内核: ${color FFFFFF}$alignr$kernel${color}
   ${font Microsoft YaHei:bold:size=8}${color #ffd700}开机时间: $alignr${color}$uptime_short
${font Your Keys:regular:18}${color white}${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,85 000000 ff4500 }  $alignr${offset -2}${cpugraph cpu2 25,85 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
${voffset 4}${font Your Keys:regular:18}${color white}${font Anklepants:regular:size=11}${color #5da5d3}GPU信息
${voffset -8}${color #ffd700}${hr 1}$font$color
   ${font Microsoft YaHei:bold:size=10}${color #ffd700}显卡: ${font Bitstream Charter:bold:size=10}${color #cdc8b1}${execi 20 glxinfo | grep "OpenGL renderer" | cut -c 25-39}$color$font
   显卡频率:${color #c0ff3e}${execi 20 nvidia-settings -q GPUCurrentClockFreqs | grep "Attribute" | cut -d" " -f6 | tr -s "," "/" | tr -d "."
} MHz $alignr${color} 温度:${color #c0ff3e}${execi 20 nvidia-settings -q gpucoretemp | grep "Attribute" | cut -d" " -f6 | cut -c -2} °C
${voffset 4}${font Mac Dingbats:regular:size=14}${color #f5f5dc}V ${voffset -4}${font Microsoft YaHei:regular:size=11}${color #5da5d3}内存和硬盘
${voffset -8}${color #ffd700}${hr 1}$font$color
   ${color #ffe7ba}内存:$color $mem/$memmax${color #828282}$alignr${offset -2}${membar 10,80}
${color #ffff00}${voffset -16}$alignr$memperc%      ${voffset 2}
   ${color #ffe7ba}交换:${alignr}${color FFFFFF}$swap / $swapmax ($swapperc%)
   ${color #c0ff3e}硬盘温度:$alignr${color #f0e68c}${hddtemp /dev/sda}
   $color${diskiograph 10 00ff00 2f4f4f}
   ${voffset -25}${color #ffd700}  Reading: $color$diskio_read$alignr${color #ffd700}Writing: $color$diskio_write  ${voffset 10}
   ${color #ffe7ba}文件系统:$color${fs_used /}/ ${fs_size /}$alignr${color #ffd700}${fs_type /} $color${fs_used_perc /}%
   ${voffset -5}${color #7fff00}${fs_bar 3 /}
   ${color #ffe7ba}Home:$color$alignc ${fs_used /home}/ ${fs_size /home}$alignr${color #ffd700}${fs_type /home} $color${fs_used_perc /home}%
   ${voffset -5}${color #ffff00}${fs_bar 3 /home}
${voffset 3}${font Wingdings 3:regular:size=18}${color #bcee68}${voffset -3}${font Microsoft YaHei:regular:size=11}${color #5da5d3} 网络信息
${voffset -8}${color #ffd700}${hr 1}${font Microsoft YaHei:size=8}$color
   ${color #ffe7ba}公网IP:$color $alignr${addr ppp0}
   ${color #ffe7ba}内网IP:$color $alignr${addr lo}
   ${voffset 3}${downspeedgraph eth1 25,85 e02a2a ff0000}${alignr}${offset -2}${upspeedgraph eth1 25,85 2121db 0000ff}
   ${voffset -26}${color #ffd700}下载:${color white}${downspeed eth0}KB/s     ${alignr}${color #ffd700}上传:${color white}${upspeed eth0}KB/s
   ${voffset 5}${color #ffe7ba}总下载:${color white}${totaldown eth0} ${alignr}${color #ffe7ba}总上传:${color white}${totalup eth0}


附件:
sendpix0.jpg
sendpix0.jpg [ 137.7 KiB | 被浏览 4465 次 ]



_________________
页首
 用户资料  
 
9 楼 
 文章标题 : Re: 放个conkyrc配置在这里
帖子发表于 : 2009-07-28 16:16 
头像

注册: 2009-03-19 9:19
帖子: 1423
地址: 江苏
送出感谢: 0 次
接收感谢: 2
代码:
use_spacer right
use_xft yes
font Microsoft YaHei:size=8
xftfont Microsoft YaHei:size=8
#xftfont Microsoft YaHei:pixelsize=12
override_utf8_locale yes
update_interval 1.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 206 5
maximum_width 400
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders no
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_right
gap_x 10
gap_y 30
cpu_avg_samples 2
uppercase no # set to yes if you want all text to be in uppercase

TEXT
${font Zekton:style=Bold:pixelsize=60}${alignc}${time %H:%M:%S}${font Zekton:size=9}
$stippled_hr${font}
OS: $alignr${color}${execi 99999 uname -o} ${color #cdc8b1}${execi 99999 lsb_release -d -s -c | tr -s "\n" " "}
Hostname: ${color FFFFFF}$alignr$nodename${color}
Kernel: ${color FFFFFF}$alignr$kernel${color}
Uptime: ${color FFFFFF}$alignr$uptime${color}
Processes: ${color FFFFFF}${alignr}$processes ($running_processes running)${color}
${font Openlogos:size=14}${color #ff0000}z ${font Microsoft YaHei:regular:size=13}${color #5da5d3}CPU ${color #ffd700}${hr 1}$font$color
${font Microsoft YaHei:pixelsize=13}${color #00FFE1}CPU Usage: ${color #00B0FF} $alignr$cpu%
${color #FF00FF}$cpubar
${cpugraph ff0000 0000ff}$cpugraph
${color #00FFE1}CPU1 ${alignr}${color #00ff00}${cpu cpu1}%
${cpugraph cpu1 00FF00 FF0000}${cpugraph cpu1}${alignr}
${color #00FFE1}CPU2 ${alignr}${color #00ff00}${cpu cpu2}%
${cpugraph cpu2 0000FF 00FF00}${cpugraph cpu2}${alignr}
${color #00FFE1}CPU Frequency: ${color #00ff00}${alignr}${freq_dyn} MHz
${font Microsoft YaHei:bold:size=10}${color #ffd700}Video Card: ${font Bitstream Charter:bold:size=10}${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
Highest CPU $alignr CPU% MEM%${color FFAA00}
${top name 1}$alignr${top cpu 1}${top mem 1}
${top name 2}$alignr${top cpu 2}${top mem 2}
${top name 3}$alignr${top cpu 3}${top mem 3}
${top name 4}$alignr${top cpu 4}${top mem 4}
${top name 5}$alignr${top cpu 5}${top mem 5}
Highest MEM $alignr CPU% MEM%${color B5FF00}
${top_mem name 1}$alignr${top_mem cpu 1}${top_mem mem 1}
${top_mem name 2}$alignr${top_mem cpu 2}${top_mem mem 2}
${top_mem name 3}$alignr${top_mem cpu 3}${top_mem mem 3}
${top_mem name 4}$alignr${top_mem cpu 4}${top_mem mem 4}
${top_mem name 5}$alignr${top_mem cpu 5}${top_mem mem 5}
${font Openlogos:size=14}${color #ff0000}B ${font Microsoft YaHei:regular:size=13}${color #5da5d3}RAM add Disk ${color #ffd700}${hr 1}$font$color
${font Microsoft YaHei:pixelsize=13}${color #00FFE1}Disk Temperature:$alignr${color #00ff00}${hddtemp /dev/sda}
${color #00FFE1}RAM:${color #4169e1}$alignr ${color}$mem ${color #98c2c7}/${color}$memmax${color #4169e1}${color #FF3500}$memperc%
${color #ff00ff}${membar}
${color #00FFE1}Root: ${color}${alignr}${fs_free /} / ${fs_size /}
${color #ff00ff}${fs_bar 4 /}
${color #00FFE1}Home: ${color}${alignr}${fs_free /home} / ${fs_size /home}
${color #ff00ff}${fs_bar 4 /home}
${font Openlogos:size=14}${color #ff0000}T ${font Microsoft YaHei:regular:size=13}${color #5da5d3}网络 ${color #ffd700}${hr 1}$font$color
${font Microsoft YaHei:pixelsize=13}${color #00FFE1}IP: ${color #00ff00} ${alignr} ${addr ppp1}
${color #00FFE1}Down:${color} ${downspeed eth0} k/s ${alignr}${color #00FFE1}Up:${color} ${upspeed eth0} k/s
${downspeedgraph eth0 20,115 556B2F 9ACD32}${alignr}${upspeedgraph eth0 20,115 556B2F 9ACD32}
${color 9ACD32}Totat: ${color a4a4a4}${totaldown eth0}$alignr${color 9ACD32}Total: ${color a4a4a4}${totalup eth0}




附件:
screenshot_001.png
screenshot_001.png [ 460.92 KiB | 被浏览 4402 次 ]



_________________


页首
 用户资料  
 
10 楼 
 文章标题 : Re: 放个conkyrc配置在这里
帖子发表于 : 2009-08-10 10:18 
头像

注册: 2009-03-19 9:19
帖子: 1423
地址: 江苏
送出感谢: 0 次
接收感谢: 2
代码:
# 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 Sans:size=8

own_window_transparent no
#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_hints undecorated,below,skip_taskbar
own_window_type override

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

# Minimum size of text area
minimum_size 260 5
maximum_width 400

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders no

# 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 white

# Text alignment, other possible values are commented
#alignment top_left
#minimum_size 10 10
gap_x 15
gap_y 70
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 none

# 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)
# 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
#${font Grunge:size=12}${time %a  %b  %d}${alignr -25}${time %k:%M}


TEXT
${color white}SYSTEM ${hr 1}${color}

Hostname: $alignr$nodename
Kernel: $alignr$kernel
Uptime: $alignr$uptime
Temp: ${alignr}${acpitemp}掳C

CPU: ${alignr}${freq_dyn} MHz
Processes: ${alignr}$processes ($running_processes running)
Load: ${alignr}$loadavg

CPU1 ${alignr}${cpu cpu1}%
${cpubar 4 cpu1}
CPU2 ${alignr}${cpu cpu2}%
${cpubar 4 cpu2}

Ram ${alignr}$mem / $memmax ($memperc%)
${membar 4}
swap ${alignr}$swap / $swapmax ($swapperc%)
${swapbar 4}

Highest CPU $alignr CPU% MEM%
${top name 1}$alignr${top cpu 1}${top mem 1}
${top name 2}$alignr${top cpu 2}${top mem 2}
${top name 3}$alignr${top cpu 3}${top mem 3}

Highest MEM $alignr CPU% MEM%
${top_mem name 1}$alignr${top_mem cpu 1}${top_mem mem 1}
${top_mem name 2}$alignr${top_mem cpu 2}${top_mem mem 2}
${top_mem name 3}$alignr${top_mem cpu 3}${top_mem mem 3}

${color white}FILE SYSTEM ${hr 1}${color}

Root: ${alignr}${fs_free /} / ${fs_size /}
${fs_bar 4 /}
Home: ${alignr}${fs_free /home} / ${fs_size /home}
${fs_bar 4 /home}

${color white}NETWORK ${hr 1}${color}
 ${color #ffe7ba}IP: ${color #00ff00} ${alignr} ${addr ppp0}
Down ${downspeed eth0} k/s ${alignr}Up ${upspeed eth0} k/s
${downspeedgraph eth0 25,107} ${alignr}${upspeedgraph eth0 25,107}
Total ${totaldown eth0} ${alignr}Total ${totalup eth0}

${color white}WEATHER ${hr 1}${color}

${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0015 --datatype=CN}
${font Weather:size=44}${color gold}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0015 --datatype=WF}${font}${color}${voffset -20}${offset 18}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0015 --datatype=CC}${offset 10}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0015 --datatype=HT}${offset 10}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0015 --datatype=WS} ${font Arrows:size=10}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0015 --datatype=BF}$font
${offset 60}Sol: ${color}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0015 --datatype=SR}-${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0015 --datatype=SS}
${font Weather:size=26}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0015 --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0015 --datatype=HT --startday=1 --endday=4 --spaces=11}

${color white}E-MAIL ${hr 1}${color}

You have ${color red}${texeci 60 perl ~/conkyrc/.check_gmail.sh} ${color}new mail(s)


代码:
conky sleep 30s

启动项设置延时30秒开机启动,详情看man page

第一步:安装
终端输入:
代码:
代码:
sudo apt-get install conky
zcat /usr/share/doc/conky/examples/conky.conf.gz > ~/.conkyrc


或者新立德搜索comky安装

也许你会发现找不到这个文件,这大概是版本不同的原因。不过还好,一般情况下这个路径下只有这一个压缩文件。

第二步:配置conky
终端输入:
代码:
代码:
gedit ~/.conkyrc


天气和Gmail脚本配置
在你的主目录(/home/用户名/)下建立一个文件夹,起名conkyrc,注意,是文件夹。然后把附件中的conkyForecast.py和check_gmail.sh拷贝到conkyrc文件夹中。

赋予权限
终端输入:
代码:
代码:
chmod +x conkyForecast.py check_gmail.sh



天气配置:
打开yahoo的天气网址:
http://weather.yahoo.com/
在Enter city or zip code:中输入你的城市(只有一些大城市,小城市可以选择较近的),搜索。然后在地址栏中获取你城市的代码,是CHXX开头的一个8字节串。
代码:
代码:
gedit ~/.conkyrc


将文件中的CHXX0015替换为你的城市代码。保存退出。

Gmail配置:
打开check_gmail.sh,在下面两处填写你自己到用户名和密码。
代码:
代码:
gmail_login="XXX"
gmail_password="YYY"


保存,退出。

这里要说明的是:天气和Gmail的脚本路径并不一定是唯一的,如果你想用自己的路径,那么~/.conkyrc文件中对应的路径就要修改,否则会报错。
另外,因为我不用其他的邮箱,所以没有研究其他邮箱的脚本,抱歉。如果你没有Gmail邮箱,可以删除~/.conkyrc中check_gmail.sh一行。

字体配置:
因为conky中的天气图标其实都是字体。所以要安装新字体才能正确显示。我的conky比较简单,只用了附件中的两种字体。
安装字体:
代码:
代码:
sudo cp Weather.ttf Arrows.ttf /usr/share/fonts/truetype
sudo chmod 755 /usr/share/fonts/truetype/*.ttf
sudo fc-cache -f -v


附件:
conkyrc.zip [23.98 KiB]
被下载 78 次


附件:
Screenshot-29.png
Screenshot-29.png [ 100.17 KiB | 被浏览 4336 次 ]


桌面
附件:
82523df48468ef01bd310953.jpg
82523df48468ef01bd310953.jpg [ 26.29 KiB | 被浏览 4336 次 ]



_________________


页首
 用户资料  
 
11 楼 
 文章标题 : Re: 放个conkyrc配置在这里
帖子发表于 : 2009-09-13 12:46 
头像

注册: 2009-03-19 9:19
帖子: 1423
地址: 江苏
送出感谢: 0 次
接收感谢: 2
简洁的:右上角

代码:
use_spacer right
use_xft yes
font Microsoft YaHei:size=8
xftfont Microsoft YaHei:size=8
#xftfont Microsoft YaHei:pixelsize=12
override_utf8_locale yes
update_interval 1.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 156 5
maximum_width 300
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders no
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_right
gap_x 10
gap_y 30
cpu_avg_samples 2
uppercase no # set to yes if you want all text to be in uppercase

TEXT
${font Zekton:style=Bold:pixelsize=47}${alignc}${time %H:%M:%S}${font Zekton:size=9}
$stippled_hr${font}
OS: $alignr${color}${execi 99999 uname -o} ${color #cdc8b1}${execi 99999 lsb_release -d -s -c | tr -s "\n" " "}
Hostname: ${color FFFFFF}$alignr$nodename${color}
Kernel: ${color FFFFFF}$alignr$kernel${color}
Uptime: ${color FFFFFF}$alignr$uptime${color}
Processes: ${color FFFFFF}${alignr}$processes ($running_processes running)${color}
${color #00FFE1}CPU Usage: ${color #00B0FF} $alignr$cpu%
${color #FF00FF}$cpubar
${cpugraph ff0000 0000ff}$cpugraph
${color #00FFE1}CPU Frequency: ${color #00ff00}${alignr}${freq_dyn} MHz
Highest CPU $alignr CPU% MEM%${color FFAA00}
${top name 1}$alignr${top cpu 1}${top mem 1}
${top name 2}$alignr${top cpu 2}${top mem 2}
${top name 3}$alignr${top cpu 3}${top mem 3}
${top name 4}$alignr${top cpu 4}${top mem 4}
${top name 5}$alignr${top cpu 5}${top mem 5}
Ram ${alignr}$mem / $memmax ($memperc%)
${membar 4}
swap ${alignr}$swap / $swapmax ($swapperc%)
${swapbar 4}
${color #00FFE1}Root: ${color}${alignr}${fs_free /} / ${fs_size /}
${color #ff00ff}${fs_bar 4 /}
${color #00FFE1}Home: ${color}${alignr}${fs_free /home} / ${fs_size /home}
${color #ff00ff}${fs_bar 4 /home}
${font Microsoft YaHei:pixelsize=13}${color #00FFE1}IP: ${color #00ff00} ${alignr} ${addr eth0}
${color #ffe7ba}Currently IP: $alignr$color${execi 360 wget -O - http://members.3322.org/dyndns/getip | tail}
${color #00FFE1}Down:${color} ${downspeed eth0} k/s ${alignr}${color #00FFE1}Up:${color} ${upspeed eth0} k/s
${downspeedgraph eth0 20,115 556B2F 9ACD32}${alignr}${upspeedgraph eth0 20,115 556B2F 9ACD32}
${color 9ACD32}Totat: ${color a4a4a4}${totaldown eth0}$alignr${color 9ACD32}Total: ${color a4a4a4}${totalup eth0}


附件:
Screenshot-1.png
Screenshot-1.png [ 175.55 KiB | 被浏览 3920 次 ]



_________________


最后由 mickeywaley 编辑于 2009-10-31 12:20,总共编辑了 1 次
页首
 用户资料  
 
12 楼 
 文章标题 : Re: 放个conkyrc配置在这里
帖子发表于 : 2009-09-13 12:48 
头像

注册: 2009-03-19 9:19
帖子: 1423
地址: 江苏
送出感谢: 0 次
接收感谢: 2
:em11 占楼方配置

代码:
use_spacer right
use_xft yes
font Microsoft YaHei:size=8
xftfont Microsoft YaHei:size=8
#xftfont Microsoft YaHei:pixelsize=12
override_utf8_locale yes
update_interval 1.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 156 5
maximum_width 300
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders no
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_right
gap_x 10
gap_y 30
cpu_avg_samples 2
uppercase no # set to yes if you want all text to be in uppercase

TEXT
${font Zekton:style=Bold:pixelsize=47}${alignc}${time %H:%M:%S}${font Zekton:size=9}
$stippled_hr${font}
OS: $alignr${color}${execi 99999 uname -o} ${color #cdc8b1}${execi 99999 lsb_release -d -s -c | tr -s "\n" " "}
Hostname: ${color FFFFFF}$alignr$nodename${color}
Kernel: ${color FFFFFF}$alignr$kernel${color}
Uptime: ${color FFFFFF}$alignr$uptime${color}
Processes: ${color FFFFFF}${alignr}$processes ($running_processes running)${color}
${color #00FFE1}CPU Usage: ${color #00B0FF} $alignr$cpu%
${color #FF00FF}$cpubar
${cpugraph ff0000 0000ff}$cpugraph
${color #00FFE1}CPU Frequency: ${color #00ff00}${alignr}${freq_dyn} MHz
Highest CPU $alignr CPU% MEM%${color FFAA00}
${top name 1}$alignr${top cpu 1}${top mem 1}
${top name 2}$alignr${top cpu 2}${top mem 2}
${top name 3}$alignr${top cpu 3}${top mem 3}
${top name 4}$alignr${top cpu 4}${top mem 4}
${top name 5}$alignr${top cpu 5}${top mem 5}
Ram ${alignr}$mem / $memmax ($memperc%)
${membar 4}
swap ${alignr}$swap / $swapmax ($swapperc%)
${swapbar 4}
${color #00FFE1}Root: ${color}${alignr}${fs_free /} / ${fs_size /}
${color #ff00ff}${fs_bar 4 /}
${color #00FFE1}Home: ${color}${alignr}${fs_free /home} / ${fs_size /home}
${color #ff00ff}${fs_bar 4 /home}
${font Microsoft YaHei:pixelsize=13}${color #00FFE1}IP: ${color #00ff00} ${alignr} ${addr wlan0}
${color #ffe7ba}Currently IP: $alignr$color${execi 360 wget -O - http://members.3322.org/dyndns/getip | tail}
${color #00FFE1}Down:${color} ${downspeed wlan0} k/s ${alignr}${color #00FFE1}Up:${color} ${upspeed wlan0} k/s
${downspeedgraph wlan0 20,115 556B2F 9ACD32}${alignr}${upspeedgraph wlan0 20,115 556B2F 9ACD32}
${color 9ACD32}Totat: ${color a4a4a4}${totaldown wlan0}$alignr${color 9ACD32}Total: ${color a4a4a4}${totalup wlan0}


_________________


最后由 mickeywaley 编辑于 2013-06-10 0:21,总共编辑了 2 次

页首
 用户资料  
 
13 楼 
 文章标题 : Re: 放个conkyrc配置在这里
帖子发表于 : 2009-09-13 12:49 
头像

注册: 2009-03-19 9:19
帖子: 1423
地址: 江苏
送出感谢: 0 次
接收感谢: 2
:em11 占楼方配置 :em11


_________________


页首
 用户资料  
 
14 楼 
 文章标题 : Re: 放个conkyrc配置在这里
帖子发表于 : 2009-09-13 12:49 
头像

注册: 2009-03-19 9:19
帖子: 1423
地址: 江苏
送出感谢: 0 次
接收感谢: 2
:em11 占楼方配置


_________________


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 14 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 2 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译