当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 1 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : Conky的问题。。。
帖子发表于 : 2009-10-14 15:46 
头像

注册: 2009-08-13 12:15
帖子: 249
送出感谢: 0 次
接收感谢: 0 次
启动的时候信息中显示有两个错误。。。
代码:
oscar@HIPDA:~$ ~/.conky/conky.sh
Conky: border_margin is deprecated, please use window.border_inner_margin instead
Conky: /home/oscar/.conkyrc: 24: config file error
Conky: desktop window (24000aa) is subwindow of root window (69)
Conky: window type - override
Conky: drawing to created window (0x3e00001)
Conky: drawing to double buffer


我的conkyrc:
代码:
background no
cpu_avg_samples 2
net_avg_samples 2
out_to_console no
use_xft yes
xftfont iYaHei:size=8
own_window_transparent no
xftalpha 0.8
mail_spool $MAIL
update_interval 1
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 240
draw_shades no
draw_outline no
draw_borders no
stippled_borders no
border_margin 4
border_width 1
default_color #FFFFFF
default_shade_color black
default_outline_color green
gap_x 5
gap_y 5
alignment top_right
use_spacer none
no_buffers yes
uppercase no



TEXT
${color #379E64}${font iYaHei:size=8}时间记忆${font}${color}${color #87CEEB}${hr 1}${color}
${font iYaHei:size=20}${color #87CEEB}${time %l:%M:%S}${font}${alignr}功夫小狗de${color}
${color #87CEEB}${alignc}${font iYaHei:size=8}${time %b%d日星期%a}${color}${font}

${color #379E64}系统信息:${color}${color #87CEEB}${hr 1}${color}
${color #379E64}宿主信息:${color}${alignr}${color #87CEEB}$nodename${color}
${color #379E64}内核信息:${color}${alignr}${color #87CEEB}$kernel${color}
${color #379E64}开机时长:${color}${alignr}${color #87CEEB}$uptime${color}
${color #379E64}CPU温度:${color}${alignr}${color #87CEEB}${acpitemp}°C${color}
${font iYaHei:size=8}${color #379E64}${execi 99999 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2- | sed 's#Processor ##'}${font iYaHei:size=8}${color}

${color #379E64}CPU1 ${cpu cpu1}%${alignr}CPU2 ${cpu cpu2}%${color}
${voffset -6}${cpugraph cpu1 25,115 000000 ff4500 }  $alignr${offset -2}${cpugraph cpu2 25,115 000000 436eee}
${color #379E64}Ram ${color}${alignr}${color #773FE2}$mem / $memmax ($memperc%)${color}
${color #87CEEB}${membar 4}${color}
${color #379E64}swap ${color}${alignr}${color #773FE2}$swap / $swapmax ($swapperc%)${color}
${color #87CEEB}${swapbar 4}${color}
${color #379E64}Highest CPU${color}${alignc}${color #87CEEB}CPU%${color}${color #773FE2}${alignr}MEM%${color}
${color #379E64}${top name 1}${color}${alignc}${color #87CEEB}${top cpu 1}${color}${color #773FE2}${alignr}${top mem 1}${color}
${color #379E64}${top name 2}${color}${alignc}${color #87CEEB}${top cpu 2}${color}${color #773FE2}${alignr}${top mem 2}${color}
${color #379E64}${top name 3}${color}${alignc}${color #87CEEB}${top cpu 3}${color}${color #773FE2}${alignr}${top mem 3}${color}

${color #379E64}Highest MEM ${color}${alignc}${color #87CEEB}CPU% ${color}${color #773FE2}${alignr}MEM%${color}
${color #379E64}${top_mem name 1}${color}${alignc}${color #87CEEB}${top_mem cpu 1}${color}${color #773FE2}${alignr}${top_mem mem 1}${color}
${color #379E64}${top_mem name 2}${color}${alignc}${color #87CEEB}${top_mem cpu 2}${color}${color #773FE2}${alignr}${top_mem mem 2}${color}
${color #379E64}${top_mem name 3}${color}${alignc}${color #87CEEB}${top_mem cpu 3}${color}${color #773FE2}${alignr}${top_mem mem 3}${color}

${color #379E64}文件系统${color}${color #87CEEB}${hr 1}${color}
${color #379E64}Root:${color} ${alignr}${color #87CEEB}${fs_free /} ${color} @ ${color #87CEEB}${fs_size /}${color}
${color #773FE2}${fs_bar 4 /}${color}
${color #379E64}Home:${color} ${alignr}${color #87CEEB}${fs_free /home} ${color} @ ${color #87CEEB}${fs_size /home}${color}
${color #773FE2}${fs_bar 4 /home}${color}

${color #379E64}网络流量${color}${color #87CEEB}${hr 1}${color}
${color #773FE2}Down ${downspeed wlan0} k/s ${alignr}Up ${upspeed wlan0} k/s${color}
${color #773FE2}${downspeedgraph wlan0 25,107 000000 ff4500} ${alignr}${upspeedgraph wlan0 25,107 000000 436eee}${color}
${color #773FE2}Total ${totaldown wlan0} ${alignr}Total ${totalup wlan0}${color}

${color #379E64}天气状况${color}${color #87CEEB}${hr 1}${color}
${execi 3600 python ~/.conky/conkyForecast.py --location=CHXX0520 --datatype=CN}
${font Weather:size=25}${color gold}${execi 3600 python ~/.conky/conkyForecast.py --location=CHXX0520 --datatype=WF}${font}${color}${voffset -20}${offset 18}${execi 3600 python ~/.conky/conkyForecast.py --location=CHXX0520 --datatype=CC}${offset 10}${execi 3600 python ~/.conky/conkyForecast.py --location=CHXX0520 --datatype=HT}${offset 10}${execi 3600 python ~/.conky/conkyForecast.py --location=CHXX0520 --datatype=WS} ${font Arrows:size=8}${execi 3600 python ~/.conky/conkyForecast.py --location=CHXX0520 --datatype=BF}$font
${offset 60}Sol: ${color}${execi 3600 python ~/.conky/conkyForecast.py --location=CHXX0520 --datatype=SR}-${execi 3600 python ~/.conky/conkyForecast.py --location=CHXX0520 --datatype=SS}
${font Weather:size=20}${execi 3600 python ~/.conky/conkyForecast.py --location=CHXX0520 --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
${execi 3600 python ~/.conky/conkyForecast.py --location=CHXX0520 --datatype=HT --startday=1 --endday=4 --spaces=11}

${color #379E64}GMAIL${color}${color #87CEEB}${hr 1}${color}
You have ${color red}${texeci 1800 perl ~/.conky/check_gmail.sh} ${color}new mail(s)


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

当前时区为 UTC + 8 小时


在线用户

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


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

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

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