未名Q

此生若能得幸福安稳,谁又愿颠沛流离。

  :: 首页 :: 博问 :: 闪存 :: 新随笔 :: :: 订阅 订阅 :: 管理 ::

在 Ubutnu 10.04 安装conky:sudo apt-get install conky

conky 官网:http://conky.sourceforge.net/

conky 手册:http://conky.sourceforge.net/docs.html

conky 配置实例:http://conky.sourceforge.net/screenshots.html

 

conky config file settings:http://conky.sourceforge.net/config_settings.html

conky config variables:http://conky.sourceforge.net/variables.html

 

conky的配置文件,可手动创建在任何一个目录,启动时带上指定配置文件的参数 --config= FILE  ;未带参数启动时,默认配置文件为 ~/.conkyrc 。

注意:conky虽然可以嵌入桌面,但它是伪嵌入。如果在桌面上有图标时嵌入桌面,会导到桌面闪烁和图标被覆盖问题出现,所以建议桌面不放图标。

 

我的桌面效果:

 

我的配置文件:

 

# 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 yes

use_xft yes

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

# Text alpha when using Xft
xftalpha 1
mail_spool $MAIL

# Update interval in seconds
update_interval 4.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 280 5

# 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 24
gap_y 24

# 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}$nodename$color      ${color #828282}$sysname $kernel on $machine$color
   ${color #98c2c7}Uptime:$color   ${uptime}

${color #ffcb48}PROCESSING$color
   ${color #98c2c7}CPU:$color     ${execi 5 cpuspeed}MHz    $cpu%    ${execi 5 cputemp}°C ${color #78af78}$cpubar
   ${color #78af78}${cpugraph 78af78 a3a3a3}

   ${color #98c2c7}Process: ${color }${processes}    ${color #98c2c7}Running: ${color}${running_processes}
   ${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 #ffcb48}DATA$color
   ${color #98c2c7}RAM: ${color } $mem/$memmax - $memperc% ${color #78af78}${membar 6}${color}
#   ${color #98c2c7}Swap: ${color } $swap/$swapmax - $swapperc% ${color #78af78}${swapbar 6} 

   ${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}

${color #ffcb48}File System$color
   ${color #98c2c7}Disk I/O: $color$diskio  ${color #98c2c7}Read/Write: $color$diskio_read/$color$diskio_write
   ${color #98c2c7}/:       $color${fs_used /}/${fs_size /} - ${fs_used_perc /}% ${color #78af78}${fs_bar 6 /}$color
   ${color #98c2c7}/home:   $color${fs_used /home}/${fs_size /home} - ${fs_used_perc /home}% ${color #78af78}${fs_bar 6 /home}$color

${color #ffcb48}Wireless Networks$color
   ${color #98c2c7}ESSID:   $color${wireless_essid wlan0}   ${color #98c2c7}Intensity: $color${wireless_link_qual_perc wlan0}%
   ${color #98c2c7}Address: $color${addr wlan0}   ${color #98c2c7}Gateways: $color$gw_ip
   ${color #98c2c7}Upload:  $color${upspeed wlan0}   ${color #98c2c7}Download:  $color${downspeed wlan0}

#${color #ffcb48}Local Networks$color
#   ${color #98c2c7}Address: $color${addr eth0}   ${color #98c2c7}Gateways: $color$gw_ip
#   ${color #98c2c7}Upload:  $color${upspeed eth0}     ${color #98c2c7}Download:  $color${downspeed eth0}

 

 

设置自启动confy:

1、保存以下内容到 ~/conky.sh

 

#!/bin/bash
sleep 10 && conky

保存以下内容到 ~/.hidden

 

conky.sh

  2、打开 系统-首选项-启动应用程序 ,添加命令为 $HOME/conky.sh 名称为 conky 的启动项。

 https://files.cnblogs.com/Tty725/conky-config.zip

 

Flashget 发布 linux版的flashget ,比原来d4x好用多了,不过在1.0后的1.0.1添加bt功能,个人不喜。

如果安装后界面显示为英文,请手动编辑配置文件 ~/.flashget/config.ini 中的语言设置为zh_CN

官方下载:http://bbs.flashget.com/viewthread.php?tid=18519

posted on 2010-07-25 08:31  未名Q  阅读(1084)  评论(0编辑  收藏  举报