查看文章
 
[原创]自己用的conky配置文件
2010年10月06日 星期三 0:10
转载请注明出处。
——By realasking
我自己用的conkyrc文件,最新修改,增加了温度监控,发出来仅作备份。

# conkyrc for myself 2.1
#by realasking
# http://hi.baidu.com/realasking

background yes
use_xft yes
xftfont 文泉驿等宽微米黑:size=10:style=Bold
xftalpha 0.8
out_to_console no
out_to_console no
mail_spool /home/realasking/mail/
update_interval 5.0
total_run_times 0
own_window yes
own_window_type desktop
own_window_transparent yes
#own_window_argb_visual yes
#own_window_argb_value 255
own_window_colour hotpink
own_window_hints sticky,undecorated,below,skip_taskbar,skip_pager
double_buffer yes
minimum_size 199 10
maximum_width 300 10
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
stippled_borders 2
border_inner_margin 4
border_width 1
default_color white
default_shade_color black
default_outline_color black
alignment top_right
gap_x 15
gap_y 32
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer none

TEXT
${color yellow}${font Droid:style=Bold:size=12}${time %b%d日     星期%a}${alignr}${time %p%l:%M:%S   }
${color #ddaa00}${font Droid Sans:style=Bold:size=8}${exec whoami}${color snow} $sysname $kernel
${font Droid:style=Bold:size=9}$stippled_hr
${color yellow}正常运行时间:$color $uptime ${color yellow}- Load:$color $loadavg
${color yellow}CPU 1:${color #cc2222} ${cpu cpu1}% ${cpubar cpu1}
${color yellow}CPU 2:${color #cc2222} ${cpu cpu2}% ${cpubar cpu2}
${color red}${cpugraph 20,300 000000 ffffff}
${color yellow}内存使用:$color $mem/$memmax - $memperc% ${membar}
${color yellow}交换内存:$color $swap/$swapmax - $swapperc% ${swapbar}
${color yellow}进程:$color $processes ${color yellow}${alignr}当前运行:${alignr}$color $running_processes ${alignr}      ${color yellow}系统温度:${alignr}$color $acpitemp ${font 东文宋体:style=Bold:size=9}℃ ${font Droid:style=Bold:size=9}
${color yellow}CPU温度:$color ${exec cat /proc/acpi/thermal_zone/THRM/temperature|grep 'temperature'|sed -e 's/.*: //'|sed -e 's/ C/°C/'}${color yellow}${alignr}GPU温度:$color ${exec nvidia-settings -q GPUCoreTemp|grep Attribute|awk '{print $4}' | sed -e 's/\./°C/'}${color yellow}${alignr}  HDD温度:$color ${exec hddtemp /dev/sda | awk '{print $4}'}        
#电源:${acpiacadapter}
#${color yellow}电源: ${color white} ${if_match ${acpiacadapter}==on-line}${color yellow}外接 ${color white} on-line${else}${color yellow} 电池${if_match ${battery_percent BAT1}<=20}${color red} ${battery BAT1}${else}${if_match ${battery_percent BAT1}<=50}${color pink} ${battery BAT1}${else}${color green} ${battery BAT1} ${color white}${battery_time BAT1}${endif}${endif}${endif}
${color yellow}电源: ${color white}${acpiacadapter} ${color yellow}电池: ${color white}${battery_percent BAT0}% ${color yellow} 剩余时间: ${color white}${if_match "${acpiacadapter}"=="on-line"}外接电源${else}${battery_time BAT0}${endif}
${color yellow}电池电量: ${if_match ${battery_percent BAT0}>75}${color green}${else}${if_match ${battery_percent BAT0}<20}${color red}${else}${color white}${endif}${endif}${battery_bar BAT0}
$color$stippled_hr
${color yellow}邮件 ${color yellow}主邮箱:${color white}${new_mails /home/realasking/mail/INBOX}    ${color yellow}Hotmail: ${color white}${new_mails /home/realasking/mail/Hot}    ${color yellow}个人邮箱:${color white}${new_mails /home/realasking/mail/tudragon}
${color yellow}计算软件: ${color white}${new_mails /home/realasking/mail/lammps}     ${color yellow}分子模拟: ${color white}${new_mails /home/realasking/mail/MDBBS}    ${color yellow}Rss: ${color white}${new_mails /home/realasking/mail/localhost}
$color$stippled_hr ${execi 300 /home/realasking/.fvwm/weather2.sh "beijing"}
${color yellow}天气
${color white}${font 方正宋三简体:style=Bold:size=9}${exec head -n +4 /tmp/baidu_weather.txt |tail -n +3}${font Droid:style=Bold:size=9}
${color white}$stippled_hr
${color yellow}网络:
下行:${color pink} ${downspeed eth1}    ${color yellow} ${offset 80}上行:${color #22ccff} ${upspeed eth1}   
${color #0000ff}${downspeedgraph eth1 32,150 ff0000 0000ff} ${color #22ccff}${upspeedgraph eth1 32,150 0000ff ff0000}
${color white}$stippled_hr
${color yellow}文件系统: ${color pink}/ $color${fs_used /}/${fs_size /} ${fs_bar /}
${color}进程名${alignr} PID    CPU%    MEM%      
${color #ddaa00}${top name 1}${alignr} ${top pid 1}    ${top cpu 1}    ${top mem 1}      
${color yellow}${top name 2}${alignr} ${top pid 2}    ${top cpu 2}    ${top mem 2}      
${color yellow}${top name 3}${alignr} ${top pid 3}    ${top cpu 3}    ${top mem 3}      
${color yellow}${top name 4}${alignr} ${top pid 4}    ${top cpu 4}    ${top mem 4}      
下图是效果,不过是最新的效果,增加了一点colunar输出的内容。

类别:桌面和conky||添加到搜藏 |分享到i贴吧|浏览(457)|评论 (0)
 
最近读者:
 
网友评论:
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
     

   
帮助中心 | 空间客服 | 投诉中心 | 空间协议
©2012 Baidu