我的conky配置

conky 是一个在linux的X windows小软件,可以在桌面上显示许多有意思的信息。每个人都可以按照自己的喜好来设计。下面是我的配置文件:

 THIS CONFIG RELIES ON 2 SCRIPTS, CPUSPEED AND CPUTEMP
# YOUR SYSTEM MAY NOT REQUIRE THEM, REPLACE AS DESIRED

# maintain spacing between certain elements
use_spacer yes

# set to yes if you want conky to be forked in the background
background no

use_xft yes

# Xft font when Xft is enabled
#xftfont Bitstream Vera Sans Mono-7
xftfont Microsoft YaHei:size=10
#xftfont Andale Mono-9
#xftfont Clean-8
#xftfont cubicfive10:pixelsize=8
#xftfont squaredance10:pixelsize=14
#xftfont swf!t_v02:pixelsize=10
#xftfont SimSun:pixelsize=12

# Text alpha when using Xft
xftalpha 0.5
mail_spool $MAIL

# Update interval in seconds
update_interval 5.0
imlib_cache_size 0
# Create own window instead of using desktop (required in nautilus)
own_window no

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 310 5
maximum_width 310
# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no # amplifies text

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_margin 9

# border width
border_width 1

# Default colors and also border colors, grey90 == #e5e5e5
default_color grey90
default_shade_color black
default_outline_color DarkGrey

# 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
gap_x 20
gap_y 44

# Subtract file system buffers from used memory?
no_buffers yes

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

# stuff after 'TEXT' will be formatted on screen

TEXT
${color #ffcb48}主机:$color$nodename  ${color #ffcb48}系统: $color$sysname $kernel
$color$hr
${color #ffcb48}电源: ${if_match "${battery BAT1}" == "AC"}${color #98c2c7}直流供电${else}${color #98c2c7}电池 $color${battery_percent BAT1}%${color #98c2c7}    续航时间: $color${battery_time BAT1}$endif
$color$hr
${color #ffcb48}时间:$color    $time  星期 ${if_match ${time %u} == 1}一$endif${if_match ${time %u} == 2}二$endif${if_match ${time %u} == 3}三$endif${if_match ${time %u} == 4}四$endif${if_match ${time %u} == 5}五$endif${if_match ${time %u} == 6}${color red}六$endif${if_match ${time %u} == 7}${color red}天$endif
$color$hr
${color #ffcb48}数据$color
   ${color #98c2c7}内存:$color  $memperc%  $memfree    ${color #98c2c7}系统:$color  ${fs_free_perc /}%  $fs_free${font Bitstream Vera Sans Mono-9}
  ${color #98c2c7}NAME             PID      CPU%      MEM%
  ${color #e5e5e5}${top name 1} ${top pid 1}   ${top cpu 1}    ${top mem 1}
  ${color #c4c4c4}${top name 2} ${top pid 2}   ${top cpu 2}    ${top mem 2}
  ${color #a3a3a3}${top name 3} ${top pid 3}   ${top cpu 3}    ${top mem 3}
  ${color #828282}${top name 4} ${top pid 4}   ${top cpu 4}    ${top mem 4}
  ${color #98c2c7}NAME             PID      CPU%      MEM%
  ${color #e5e5e5}${top_mem name 1} ${top_mem pid 1}   ${top_mem cpu 1}    ${top_mem mem 1}
  ${color #c4c4c4}${top_mem name 2} ${top_mem pid 2}   ${top_mem cpu 2}    ${top_mem mem 2}
  ${color #a3a3a3}${top_mem name 3} ${top_mem pid 3}   ${top_mem cpu 3}    ${top_mem mem 3}
  ${color #828282}${top_mem name 4} ${top_mem pid 4}   ${top_mem cpu 4}    ${top_mem mem 4}${font Microsoft YaHei:size=10}
$color$hr
${color #ffcb48}网络$color
   ${color #98c2c7}地址: $color ${addr wlan0}   ${color #98c2c7}网关: $color$gw_ip
   ${color #98c2c7}上传: $color ${totalup wlan0}              ${color #98c2c7}下载: $color${totaldown wlan0}
   ${color #98c2c7}无线ESSID:    $color${wireless_essid wlan0}   ${color #98c2c7}信号质量:  $color${wireless_link_qual_perc wlan0}%
$color$hr
${color #ffcb48}信箱
   ${color #98c2c7}126信箱:      $color${pop3_unseen pop3.126.com yaoqiang2003 password}    封未下载邮件
$color$hr
${color #ffcb48}天气
   ${color #98c2c7}上海实况:
$color${texeci 300 ~/bin/weather.pl}${image ~/.fvwm/weather.png -p 150,480}${image ~/.fvwm/weather0.png -p 150,570 -s 48x48}${image ~/.fvwm/weather1.png -p 222,570 -s 48x48}

与之配套的还有一个自动获取气象实时数据的perl脚本。可以在这里 下载。

这里是效果图:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值