Chinaunix首页 | 论坛 | 博客
  • 博客访问: 82573
  • 博文数量: 21
  • 博客积分: 1445
  • 博客等级: 上尉
  • 技术积分: 175
  • 用 户 组: 普通用户
  • 注册时间: 2006-04-07 18:33
文章分类
文章存档

2011年(1)

2008年(1)

2007年(19)

我的朋友
最近访客

分类: BSD

2007-12-29 21:07:52

1. ~/.conkyrc
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9X15
use_xft yes

xftfont Bitstream Vera Sans Mono:size=10

xftalpha 0.8

stippled_borders 3

update_interval 5

default_color green
default_shade_color black
default_outline_color black

alignment top_right
gap_x 30
gap_y 30

#custom

#be equal to 'conky -b',Enabling double buffer
#double_buffer yes

#be equal to 'conky -o',Run in windowed mode
#own_window yes

#Can replace witch 'normal' or 'override'
#own_window_type desktop


TEXT
${color red}${exec whoami} @ $nodename
${color red}$sysname $kernel on $machine
${color red}Date:$color ${time %y-%m-%d [%A]}
${color red}Time:$color ${time %k:%M:%S}

$stippled_hr
${color yellow}Uptime:$color $uptime ${color yellow}- Load:$color $loadavg
${color yellow}CPU Usage ${color red}($freq Mhz):${color cc2222} $cpu% ${cpubar}
${color red}${cpugraph 16,240 0000ff 00ff00}
${color yellow}RAM Usage:$color $mem/$memmax - $memperc% ${membar}
${color yellow}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar}
${color yellow}Processes:$color $processes ${color yellow}Running: $running_processes
$stippled_hr

${color yellow}Networking:
Down:$color ${downspeed fxp0} k/s${color yellow} ${offset 50}Up:$color ${upspeed fxp0} k/s
${color 0000ff}${downspeedgraph fxp0 16,115 ff0000 0000ff} ${color 22ccff}${upspeedgraph fxp0 16,115 00
00ff ff0000}

${color yellow}File systems:
$color${fs_used /}/${fs_size /} ${fs_bar /}
$color$stippled_hr

${color}Name PID CPU% MEM%
${color yellow} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color yellow} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color yellow} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color yellow} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}

2.~/.conkyrc (我用的)

# Boolean value, if true, Conky will be forked to background when started

background no

# font settings

#use_xft yes

#xftalpha 0.2

#xftfont SimSun:size=10

#xftfont Bitstream Vear Sans:size=14

#xftfont Bitstream Vear Sans
#xftfont courier:10
#font Vera Sans YuanTi:size=7
uppercase no

#override_utf8_locale yes

# update every 2 secs

update_interval 2.0

# stay running forever

total_run_times 0

# draw to root window

own_window no


# avoid flickering

double_buffer yes

# size

minimum_size 309

maximum_width 350

# position

alignment top_left
gap_x 12

gap_y 12

# default colors

default_color green

default_shade_color black

default_outline_color purple


# borders

draw_borders no

stippled_borders 8

border_margin 4

border_width 1


# shades

draw_shades yes


# outline

draw_outline yes

# spacer

use_spacer yes


# buffers

no_buffers yes


# sampling

cpu_avg_samples 1

net_avg_samples 1

# configuration
TEXT
${color red}${alignc}${exec whoami}@$machine-$sysname-$kernel
${color gold}${hr}
${color lightgray} ${alignc} System Info
${color gold}${hr}
${color lightgray}       Uptime: ${color red}$uptime ${alignr}${color lightgray}Load: ${color red}$loadavg
${color lightgray}CPU Frequency:${alignr}${color red}${freq}MHZ / ${freq_g}G / ${freq_dyn}MHZ
${color lightgray}    CPU usage:${color}$cpu% ${cpubar}
${color lightgray}              ${cpugraph}
${color gold}${hr}
${color lightgray}${alignc}Memory Info
${color gold}${hr}
${color lightgray}     RAM:${color}$mem/${memmax} ($memperc%) ${membar}
${color lightgray}  Cached:${color}$cached ${color lightgray} ${alignr}Buffers:${color}$buffers
${color lightgray}    Swap:${color}$swap/${swapmax} ($swapperc%) ${swapbar}
${color lightgray}Disk IO : ${color}$diskio ${diskiograph}
${color gold}${hr}
${color lightgray}${alignc}File System Info
${color gold}${hr}
${color red}${exec df -h}
${color gold}${hr}
${color lightgray}${alignc}Networking (fxp0)
${color gold}${hr}
${color lightgray} IPv4: ${color}${addr fxp0} ${color lightgray}${alignr}IPv6: ${color} ${exec /sbin/ifconfig fxp0|grep -q Scope:Global;echo $?|sed -e "s:0:yes:" -e "s:1:no:"}
${color lightgray} Down:${color} ${downspeed fxp0}k/s ${downspeedgraph fxp0}
${color lightgray}   Up:${color} ${upspeed fxp0}k/s ${upspeedgraph fxp0}
${color gold}${hr}
${color lightgray}${alignc}Processes Manager
${color gold}${hr}
${color lightgray}${alignc}        Processes:${color} $processes ${color} Running:${color} $running_processes

${color lightgray}Name ${alignr}PID   ${alignr}CPU%   ${alignr}MEM%

${color lightgray}${alignc}TopCPU
${color  yellow} ${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}
${color  yellow} ${top name 5} ${alignr}${top pid 5} ${top cpu 5} ${top mem 5}

${color lightgray}${alignc}TopMEM
${color  yellow} ${top_mem name 1} ${alignr}${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color  yellow} ${top_mem name 2} ${alignr}${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color  yellow} ${top_mem name 3} ${alignr}${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${color  yellow} ${top_mem name 4} ${alignr}${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
${color  yellow} ${top_mem name 5} ${alignr}${top_mem pid 5} ${top_mem cpu 5} ${top_mem mem 5}
${color gold}${hr}
${color lightgray}${alignc}ACPI
${color gold}${hr}
${color lightgray}        Battery:${alignc}${color}$acpiacadapter,${apm_adapter},$battery
${color lightgray}CPU Temperature:${alignc}${color}$acpitemp C
${color gold}${hr}
${color lightgray}${alignc} Date Manager
${color gold}${hr}
${color pink} ${time %A} ${alignc} ${time %d}/${time %B}/${time %G} ${alignr} ${time %W}.WeekNo
${color }${if_mounted /media/cdrom0} mounted on /cdrom ${endif}
${color }${if_mounted /mnt} mounted on /mnt ${endif}












阅读(1999) | 评论(0) | 转发(0) |
0

上一篇:Grub引导FreeBSD

下一篇:dot.Xmodmap 示例

给主人留下些什么吧!~~