当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 2 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 求助.conky显示CPU.主板温度问题!
帖子发表于 : 2010-10-15 17:48 
头像

注册: 2010-10-10 4:10
帖子: 51
送出感谢: 0 次
接收感谢: 0 次
复制来的代码.
代码:
# Use Xft?
use_xft yes
xftfont Sans:size=7
#xftalpha 0.8
text_buffer_size 2048

# Update interval in seconds
update_interval 1

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type override
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 160 0
maximum_width 160

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_graph_borders yes

# Stippled borders?
stippled_borders 0

# border margins
border_margin 5

# border width
border_width 5

# Default colors and also border colors
default_color 303030
#default_shade_color white
#default_outline_color black
own_window_colour 262626

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 10
gap_y 10

# Subtract file system buffers from used memory?
no_buffers yes

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

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 1

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 1

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

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

TEXT
${image ~/.scripts/tlo.png -p -1,0 -s 600x1280}

${color white}SYS ${hr 1}${color white}

${color ff4848}${font OpenLogos:size=40}S${voffset -30}${color white}${font Arial Black:size=18}${offset 4}${time %H:%M}${color EE3A03}${font Arial Black:size=12}${time :%S}${font}
${color 98c2c7}${font Arial Black:size=10}${offset 60}${time %d/%m/%Y}${voffset 6}
${offset 15}${font Arial Black:size=8}${color white}$kernel $machine}${color white}
${font StyleBats:size=15}K${font} CPU1 ${alignr}${cpu cpu0}% ${cpugraph cpu0 cpu1 10,70 262626 CCCCCC}
${font StyleBats:size=15}k${font} CPU2 ${alignr}${cpu cpu1}% ${cpugraph cpu1 10,70 262626 CCCCCC}
${font StyleBats:size=15}y${font} RAM ${alignr}$memperc% ${memgraph 10,70 262626 CCCCCC}
${font PizzaDude Bullets:size=15}p${font} SWAP ${alignr}$swapperc% ${color white}${swapbar 10,70}${color white}${color white}
${font StyleBats:size=15}p${font} Uptime${alignr}${uptime}

TEMP ${hr 1}${color white}

${color DD0000}${font weather:size=45}y ${font}${color white} ${voffset -50}
${offset 20}MB: ${alignr}${color white}${acpitemp}°C${color white}
${offset 20}CPU1: ${alignr}${color white}${execi 300 sensors | grep Core0 | cut -c15-16 ;}°C${color white}
${offset 20}CPU2: ${alignr}${color white}${execi 300 sensors | grep Core1 | cut -c15-16 ;}°C${color white}
${offset 20}${pre_exec nc localhost 7634 | sed -e 's/|[[:digit:]]\{2,4\}|C|/\n/g' | grep sda | sed -e 's/|.*|//'} ${alignr} ${hddtemp /dev/sda}°C

HDD ${hr 1}
Filesystem ${alignr}${fs_used /}/${fs_size /}
${fs_used_perc /}%${alignr}${fs_bar 7,120 /}
${diskiograph 15,160 262626 238B23}${color white}
${color A0D647}${font Martin Vogel's Symbols:size=20}m${font}${color white}${voffset -5}${offset 5}NET ${hr 1}
${if_existing /proc/net/route wlan0}
${font PizzaDude Bullets:size=10}O${font} Up${alignr}${upspeed wlan0}kb/s${alignr}${upspeedgraph wlan0 10,70 262626 FF3C00}}
${font PizzaDude Bullets:size=10}U${font} Do${alignr}${downspeed wlan0}kb/s${alignr}${downspeedgraph wlan0 10,70 262626 3AE813}
${font PizzaDude Bullets:size=10}N${font} Upload:${alignr}${totalup wlan0}
${font PizzaDude Bullets:size=10}T${font} Download:${alignr}${totaldown wlan0}
${font PizzaDude Bullets:size=10}Z${font}${wireless_essid wlan0} Signal${alignr}${wireless_link_qual wlan0}%${wireless_link_bar 15,160 wlan0}
${font PizzaDude Bullets:size=10}a${font}Local Ip:${alignr}${addr wlan0}
${font PizzaDude Bullets:size=10}b${font}Public Ip:${alignr}${execi 1 ~/.scripts/ip.sh}
${else}${if_existing /proc/net/route eth0}
${font PizzaDude Bullets:size=10}O${font}Up${alignr}${upspeed eth0} kb/s ${alignr}${upspeedgraph eth0 10,70 262626 FF3C00}
${font PizzaDude Bullets:size=10}U${font}Do${alignr}${downspeed eth0} kb/s ${alignr}${downspeedgraph eth0 10,70 262626 3AE813}
${font PizzaDude Bullets:size=10}N${font}Upload: ${alignr}${totalup eth0}
${font PizzaDude Bullets:size=10}T${font}Download: ${alignr}${totaldown eth0}
${font PizzaDude Bullets:size=10}a${font}Local Ip:${alignr}${alignr}${addr eth0}
${font PizzaDude Bullets:size=10}b${font}Public Ip:${alignr}${alignr}${execi 1 ~/.scripts/ip.sh}${endif}${else}
${font PizzaDude Bullets:size=10:bold}4${voffset -2}${font}Network Unavailable ${endif}
${hr 1}
${endif}${color FFE515}${font Martin Vogel's Symbols:size=15}i${font}${color DB008B} Highest CPU ${color white}$alignr CPU% MEM%
${hr 1}
${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}
${top name 6}$alignr${top cpu 6}${top mem 6}
${top name 7}$alignr${top cpu 7}${top mem 7}
${hr 1}
${color FFE515}${font Martin Vogel's Symbols:size=15}i${font}${color DB008B} Highest MEM ${color white}$alignr CPU% MEM%
${hr 1}
${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}
${top_mem name 6}$alignr${top_mem cpu 6}${top_mem mem 6}
${top_mem name 7}$alignr${top_mem cpu 7}${top_mem mem 7}
${hr 1}

现在conky里不能显示CPU.还有MB的温度....要怎么解决?


附件:
Screenshot.png
Screenshot.png [ 1.53 MiB | 被浏览 635 次 ]

页首
 用户资料  
 
2 楼 
 文章标题 : Re: 求助.conky显示CPU.主板温度问题!
帖子发表于 : 2010-10-15 17:51 
头像

注册: 2010-10-10 4:10
帖子: 51
送出感谢: 0 次
接收感谢: 0 次
补充下 还有 不能显示硬盘的名字....硬盘的温度是出来了..名字显不出来!


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

当前时区为 UTC + 8 小时


在线用户

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


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

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

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