我的 Conky 配置文件

2009-05-12 xiao H Posted in shell, 日常桌面

虽然监控系统状况的软件很多,但现在最受欢迎的该是Conky,Conky 小巧,漂亮,且配置方便简单。
CPU 温度读取部分用了sensors,硬盘温度读取用hddtemp。
conky

background yes
override_utf8_locale yes
font Sans:size=9
xftfont Sans:size=9
use_xft yes
xftalpha 0.1
 
update_interval 1.0
total_run_times 0
own_window yes
own_window_type override
#own_window_type override
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 170 5
maximum_width 170
 
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
#alignment none
gap_x 10
gap_y 50
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
out_to_console no
 
default_color white
default_shade_color black
default_outline_color white
 
TEXT
${color }${font Agency FB size=20}Time: ${time %H:%M}
${color }${font }Day: ${time %Y-%m-%d}
${color }UpTime:$alignr${color }$uptime
${color }Kernel:$alignr${color }$kernel
 
${color  #dcff82}Intel E2180:
${color white}$stippled_hr
${color white}CPU0 Temp:$alignr${color } ${execi 20 sensors | grep -A 0 'Core 0' | cut -c15-16}°C
${color white}CPU1 Temp:$alignr${color } ${execi 20 sensors | grep -A 0 'Core 1' | cut -c15-16}°C
${color white}CPU us:$alignr${color } $cpu% 
 
${color  #dcff82}TOP Processes:
${color }$stippled_hr
${color }Processes:$alignr${color }$processes  ($running_processes running)
 
${color }Highest CPU:$alignr  PID   CPU%
${color #ddaa00}${top name 1}$alignr${top pid 1}  ${top cpu 1}
${color lightgrey}${top name 2}$alignr${top pid 2}  ${top cpu 2}
${color lightgrey}${top name 3}$alignr${top pid 3}  ${top cpu 3}
 
${color }Highest MEM:$alignr  PID   MEM%
${color #ddaa00}${top_mem name 1}$alignr${top_mem pid 1}  ${top_mem mem 1}
${color lightgrey}${top_mem name 2}$alignr${top_mem pid 2}  ${top_mem mem 2}
${color lightgrey}${top_mem name 3}$alignr${top_mem pid 3}  ${top_mem mem 3}
 
${color }MEM:${color} $memperc%$alignr$mem/$memmax
${membar 3,160}
${color white}SWAP:${color} $swapperc%$alignr$swap/$swapmax
${swapbar 3,160}
 
${color  #dcff82}SAMSUNG SP0802N:
${color }$stippled_hr
${color }Hard Drive Temp: $alignr${execi 300 nc localhost 7634 | cut -c27-28;} °C
${color }ROOT:$alignr${color}${fs_free /}/${fs_size /}
${fs_bar 3,160 /}
${color }HOME:$alignr${color}${fs_free /home}/${fs_size /home}
${fs_bar 3,160 /home}
${color }Disk Read:${alignr}${color}$diskio_read
${color}${diskiograph_read /dev/sda 10,160 000000 ffffff}
${color }Disk Write:${alignr}${color}$diskio_write
${color}${diskiograph_write /dev/sda 10,160 000000 ffffff}
标签:,

与本文关系暧昧的文字

除特别声明外,本站作品皆为原创并以知识共享署名-相同方式共享 3.0 许可协议进行许可。
转载请注明 作者:xiao H,出处:linuxbyte.org ,原始链接:我的 Conky 配置文件



  1. simaopig 说:

    我还真没在LINUX下面用过这类软件。

    PS:LINUX菜鸟。没事多指教。呵。

  2. xiao H 说:

    其实大部分时间这个东西只是装饰一下,只是最近天气热,几个读温度的有点建设性。

  3. simaopig 说:

    呵。我的电脑,已经机箱大开了。。

  4. 这个桌面好酷

  5. ABitNo 说:

    见有人介绍过,还没用过呢。。。不过感觉也没什么用

  6. blackheart 说:

    桌面很整洁清爽,google偶然发现这里,有很多很好的文章,特别网络方面的。顺便问一声linux系统在博主的网吧里利用率如何啊?

  7. blackheart 说:

    哦,忘记问了配置文件里cpu 温度那个sensors是个脚本?

  8. alswl 说:

    话说好几天没登陆我的ubuntu了“`
    不错的博,Feed之

  9. xiao H 说:

    to blackheart:
    网吧里就是用Linux 做了nat和文件服务,其他也没什么。
    CPU 温度:
    ${color white}CPU0 Temp:$alignr${color } ${execi 20 sensors | grep -A 0 ‘Core 0′ | cut -c15-16}°C
    ${color white}CPU1 Temp:$alignr${color } ${execi 20 sensors | grep -A 0 ‘Core 1′ | cut -c15-16}°C

  10. 猪笨无罪 说:

    建议写详细点

  11. 爱软'Blog 说:

    名称:爱软’Blog
    网址:http://airuan.yo2.cn/
    描述:爱软和你一起分享!精选、绿色、充满乐趣!
    加好链接请给我留言~

  12. 爱软'Blog 说:

    你的连接我已经做好~

  13. 优软 说:

    爱软’Blog很不好意思的再次麻烦博主:
    由于我新购买了独立域名,所以博客的网址和一些信息将要更换,请麻烦一下将我的原来的爱软’Blog链接更改为以下信息:
    名称:优软
    描述:探寻多彩的软件世界!
    网址:http://www.uruan.cn/或者http://uruan.cn/
    “uruan”即为“优软”同音,欢迎常来做客!链接更改之后最好能够通知我一下或者留言,感谢博主!

  14. 白乌鸦 说:

    看着不错 简洁

  15. xiao H 说:

    @优软
    更新了。

我来说两句

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">