当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 12 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : ubuntu 9.10 conky问题求助(已解决)
帖子发表于 : 2010-03-10 16:05 

注册: 2010-01-14 16:33
帖子: 47
送出感谢: 0 次
接收感谢: 0 次
安装后出现显示的子都是方块。 原文地址http://www.ubuntuchina.com/viewthread.php?tid=3561 因为很菜 我是照搬的。

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

cpu_avg_samples 2
net_avg_samples 2

out_to_console no

# X font when Xft is disabled, you can pick one with program xfontsel
#font 7x12
#font 6x10
#font 7x13
#font 8x13
#font 7x12
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
#font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
#xftfont Bitstream Vera Sans Mono:size=8
xftfont Monospace:size=8

own_window_transparent yes
own_window_colour hotpink
# Text alpha when using Xft
xftalpha 0.8

on_bottom yes

# mail spool
mail_spool $MAIL

# Update interval in seconds
update_interval 1
# Create own window instead of using desktop (required in nautilus)
own_window yes
#If own_window is yes, you may use type normal, desktop or override
#own_window_type normal
#own_window_type desktop
own_window_type override

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

# Minimum size of text area
#minimum_size 280 5
maximum_width 308

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 10

# border margins
border_margin 4

# border width
border_width 1

# Default colors and also border colors
default_color white
default_shade_color white
default_outline_color white

# Text alignment, other possible values are commented
#alignment top_left
#minimum_size 10 10
gap_x 10
gap_y 10
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text

# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer no

# Subtract file system buffers from used memory?
no_buffers yes

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

# boinc (seti) dir
# seti_dir /opt/seti

# Possible variables to be used:
#
# Variable Arguments Description
# acpiacadapter ACPI ac adapter state.
# acpifan ACPI fan state
# acpitemp ACPI temperature.
# adt746xcpu CPU temperature from therm_adt746x
# adt746xfan Fan speed from therm_adt746x
# battery (num) Remaining capasity in ACPI or APM
# battery. ACPI battery number can be
# given as argument (default is BAT0).
# buffers Amount of memory buffered
# cached Amount of memory cached
# color (color) Change drawing color to color
# cpu CPU usage in percents
# cpubar (height) Bar that shows CPU usage, height is
# bar's height in pixels
# downspeed net Download speed in kilobytes
# downspeedf net Download speed in kilobytes with one
# decimal
# exec shell command Executes a shell command and displays
# the output in torsmo. warning: this
# takes a lot more resources than other
# variables. I'd recommend coding wanted
# behaviour in C and posting a patch :-).
# execi interval, shell Same as exec but with specific interval.
# command Interval can't be less than
# update_interval in configuration.
# fs_bar (height), (fs) Bar that shows how much space is used on
# a file system. height is the height in
# pixels. fs is any file on that file
# system.
# fs_free (fs) Free space on a file system available
# for users.
# fs_free_perc (fs) Free percentage of space on a file
# system available for users.
# fs_size (fs) File system size
# fs_used (fs) File system used space
# hr (height) Horizontal line, height is the height in
# pixels
# i2c (dev), type, n I2C sensor from sysfs (Linux 2.6). dev
# may be omitted if you have only one I2C
# device. type is either in (or vol)
# meaning voltage, fan meaning fan or temp
# meaning temperature. n is number of the
# sensor. See /sys/bus/i2c/devices/ on
# your local computer.
# kernel Kernel version
# loadavg (1), (2), (3) System load average, 1 is for past 1
# minute, 2 for past 5 minutes and 3 for
# past 15 minutes.
# machine Machine, i686 for example
# mails Mail count in mail spool. You can use
# program like fetchmail to get mails from
# some server using your favourite
# protocol. See also new_mails.
# mem Amount of memory in use
# membar (height) Bar that shows amount of memory in use
# memmax Total amount of memory
# memperc Percentage of memory in use
# new_mails Unread mail count in mail spool.
# nodename Hostname
# outlinecolor (color) Change outline color
# pre_exec shell command Executes a shell command one time before
# torsmo displays anything and puts output
# as text.
# processes Total processes (sleeping and running)
# running_processes Running processes (not sleeping),
# requires Linux 2.6
# shadecolor (color) Change shading color
# stippled_hr (space), Stippled (dashed) horizontal line
# (height)
# swapbar (height) Bar that shows amount of swap in use
# swap Amount of swap in use
# swapmax Total amount of swap
# swapperc Percentage of swap in use
# sysname System name, Linux for example
# time (format) Local time, see man strftime to get more
# information about format
# totaldown net Total download, overflows at 4 GB on
# Linux with 32-bit arch and there doesn't
# seem to be a way to know how many times
# it has already done that before torsmo
# has started.
# totalup net Total upload, this one too, may overflow
# updates Number of updates (for debugging)
# upspeed net Upload speed in kilobytes
# upspeedf net Upload speed in kilobytes with one
# decimal
# uptime Uptime
# uptime_short Uptime in a shorter format
#
# seti_prog Seti@home current progress
# seti_progbar (height) Seti@home current progress bar
# seti_credit Seti@hoome total user credit


# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument
#${font Dungeon:style=Bold:pixelsize=10}I can change the font as well
#${font Verdana:size=10}as many times as I choose
#${font Perry:size=10}Including UTF-8,
#${font Luxi Mono:size=10}justo como este texto que o google traduz f锚z o portugu锚s
# stuff after 'TEXT' will be formatted on screen
#${font Grunge:size=12}${time %a %b %d}${alignr -25}${time %k:%M}

TEXT
${color lightgrey}${font Monospace:style=Bold:size=8}${time %b%d鏃� 鏄熸湡%a}${alignr}${time %p%l:%M:%S}
${color #ddaa00}${exec whoami}${color snow} on ${color #88aadd}$nodename${alignr}$sysname $kernel
${color #88aadd}$stippled_hr
${color lightgrey}Uptime:$color $uptime ${color lightgrey}- Load:$color $loadavg
${color lightgrey}CPU Usage:${offset 50}${color}${acpitemp}掳C ${color lightgrey}Disk IO:${color}${alignr}${diskio}/s
${color #5000a0} ${cpu}% ${cpubar}
${color black}${cpugraph 25,150 000000 5000a0}${alignr}${color black}${diskiograph 25,150 5000a0 000000}
${color lightgrey}RAM Usage:$color $mem/$memmax - $memperc% ${color #88aadd}$membar
${color lightgrey}Swap Usage:$color $swap/$swapmax - $swapperc% ${color #88aadd}${swapbar}
${color #88aadd}$stippled_hr
${color lightgrey}Networking:$alignr${color snow}${addr ppp0}
${color lightgrey}Down:${color #8844ee} ${downspeed eth0} k/s${color lightgrey} ${offset 70}Up:${color #22ccff} ${upspeed eth0} k/s
${color black}${downspeedgraph eth0 25,150 ff0000 0000ff} $alignr${color black}${upspeedgraph eth0 25,150 0000ff ff0000}
${color lightgrey}File systems:
/ $color${fs_used /}/${fs_size /} ${color #000000}${fs_bar /}
${color lightgrey}/home $color${fs_used /home}/${fs_size /home} ${color #000000}${fs_bar /home}
${color #88aadd}$stippled_hr
${color lightgrey}Processes:$color $processes ${color grey}Running:$color $running_processes
${color}CPU usage PID CPU% MEM%
${color #ddaa00} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color}Mem usage
${color #ddaa00} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color lightgrey} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${color #88aadd}$stippled_hr
${font Monospace:style=Bold:pixelsize=12}${color #88aadd}${alignc}$mpd_status $mpd_elapsed-$mpd_length
${color #88aadd}$mpd_bar
${color #88aadd}${alignc}$mpd_smart
$stippled_hr
${rss http://feed.feedsky.com/my_cnbeta 5 item_titles 5}


目前还不会贴图,见笑了。


_________________
水!树!


最后由 xiaoqing58 编辑于 2010-03-11 15:08,总共编辑了 1 次

页首
 用户资料  
 
2 楼 
 文章标题 : Re: ubuntu 9.10 conky问题求助
帖子发表于 : 2010-03-10 16:10 
头像

注册: 2008-11-21 20:26
帖子: 36913
送出感谢: 1
接收感谢: 36
字体换成能正确显示中文的,比如wenquanyi zenhei
开头有#的都是注释行,没必要帖


_________________
讨厌我的人可以试着点一下
浏览全部ubuntu技巧


页首
 用户资料  
 
3 楼 
 文章标题 : Re: ubuntu 9.10 conky问题求助
帖子发表于 : 2010-03-10 16:23 

注册: 2010-01-14 16:33
帖子: 47
送出感谢: 0 次
接收感谢: 0 次
:em01 如何把字体换成正确显示中文的呢?如何换成wenquanyi zenhei的呢?能给个详细步骤吗?
我现在打算不用WINDOWS了,英文水平初中没满。不知道以后能不能会用linxu。如果学不会,计算机这东西我以后打算不怎么用了。除非必要。


_________________
水!树!


页首
 用户资料  
 
4 楼 
 文章标题 : Re: ubuntu 9.10 conky问题求助
帖子发表于 : 2010-03-10 16:37 
头像

注册: 2008-11-21 20:26
帖子: 36913
送出感谢: 1
接收感谢: 36
http://forum.ubuntu.org.cn/viewtopic.php?f=33&t=168040
这个帖里有简单配置,字体已经换成zenhei了
需要其他东西的话照猫画虎吧

代码:
use_spacer right
use_xft yes
font wenquanyi zenhei:size=8
xftfont wenquanyi zenhei:size=8
override_utf8_locale yes
update_interval 1.0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 206 5
maximum_width 400
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders no
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_right
gap_x 10
gap_y 30
cpu_avg_samples 2
uppercase no # set to yes if you want all text to be in uppercase

TEXT
${font wenquanyi zenhei:style=Bold:pixelsize=30}${alignc}${time %H:%M:%S}
${font wenquanyi zenhei:pixelsize=18}${alignc}${time %b%d日 星期%a}${font wenquanyi zenhei:pixelsize=12}
${color #ffd700}${hr 1}$color
${color #98c2c7}主机名:${color #db7093} $alignr$nodename
${color #98c2c7}内核: ${color #db7093}$alignr$kernel
${color #98c2c7}已开机: ${color #db7093}$alignr$uptime
${color #98c2c7}IP地址: ${color #db7093} ${alignr} ${addr eth0}
${color #98c2c7}CPU使用率: ${color #db7093} $alignr$cpu%
${color #78af78}$cpubar
${color #ddaa00} ${top name 1}$alignr ${top cpu 1}
${color lightgrey} ${top name 2}$alignr ${top cpu 2}
${color lightgrey} ${top name 3} $alignr${top cpu 3}
${color #98c2c7}物理内存:${color #4169e1}$alignr ${color}$mem ${color #98c2c7}/${color}$memmax${color #4169e1}${color #db7093}$memperc%
${color #78af78}${membar}
${color #98c2c7}根分区: ${color}${alignr}${fs_free /} / ${fs_size /}
${color #78af78}${fs_bar 4 /}
${color #98c2c7}Home分区: ${color}${alignr}${fs_free /home} / ${fs_size /home}
${color #78af78}${fs_bar 4 /home}
${color #98c2c7}下载速度:${color} ${downspeed eth0} k/s
${color #98c2c7}上传速度:${color} ${upspeed eth0} k/s
${color #ffd700}${hr 1}$color


_________________
讨厌我的人可以试着点一下
浏览全部ubuntu技巧


页首
 用户资料  
 
5 楼 
 文章标题 : Re: ubuntu 9.10 conky问题求助
帖子发表于 : 2010-03-10 17:44 
头像

注册: 2006-09-10 22:36
帖子: 10670
地址: 北京
送出感谢: 1
接收感谢: 16
楼主是来给ubuntuchina做广告的吧?


_________________
看破、放下、自在、随缘、念佛
真诚、清净、平等、正觉、慈悲


页首
 用户资料  
 
6 楼 
 文章标题 : Re: ubuntu 9.10 conky问题求助
帖子发表于 : 2010-03-10 17:47 
头像

注册: 2008-10-27 22:28
帖子: 1151
地址: 暮色酒馆
送出感谢: 0 次
接收感谢: 0 次
qiang_liu8183 写道:
楼主是来给ubuntuchina做广告的吧?

:em99


_________________
优猫饼


页首
 用户资料  
 
7 楼 
 文章标题 : Re: ubuntu 9.10 conky问题求助
帖子发表于 : 2010-03-10 17:50 
头像

注册: 2009-10-08 11:15
帖子: 8428
地址: 大城市铁岭
送出感谢: 0 次
接收感谢: 9
wangks18 写道:
qiang_liu8183 写道:
楼主是来给ubuntuchina做广告的吧?

:em99

:em04


附件:
抓图18.png
抓图18.png [ 159.81 KiB | 被浏览 520 次 ]



_________________
我们是命运的妓女,它把我们都嫖了

N卡驱动:http://www.nvidia.cn/Download/index.aspx?lang=cn
极品飞车:http://www.geforce.cn/optimize/optimal-game-settings/need-for-speed-shift-geforce-gts-450-ops
孤岛危机优化设置:http://www.geforce.cn/optimize/optimal-game-settings/crysis-geforce-gtx-450-ops
:cp /etc/skel/.bashrc ~/
PS1="\[\e]2;\u@\H \w\a\e[32;1m\]\T$\[\e[0m\] "
http://cdimage.ubuntu.com/
http://releases.ubuntu.com/
页首
 用户资料  
 
8 楼 
 文章标题 : Re: ubuntu 9.10 conky问题求助
帖子发表于 : 2010-03-11 6:43 

注册: 2010-01-14 16:33
帖子: 47
送出感谢: 0 次
接收感谢: 0 次
qiang_liu8183 写道:
楼主是来给ubuntuchina做广告的吧?

绝无此意,我倒是真希望用ubuntu的人越来越多。希望ubuntu的中文越来越好。


_________________
水!树!


页首
 用户资料  
 
9 楼 
 文章标题 : Re: ubuntu 9.10 conky问题求助
帖子发表于 : 2010-03-11 6:57 

注册: 2010-01-14 16:33
帖子: 47
送出感谢: 0 次
接收感谢: 0 次
谢谢tenzu 给出了详细的。
不过我还是特别喜欢tenzu的头像,乍一看很普通,仔细一看不得了,心跳跳。 :em04


_________________
水!树!


页首
 用户资料  
 
10 楼 
 文章标题 : Re: ubuntu 9.10 conky问题求助
帖子发表于 : 2010-03-11 8:56 
头像

注册: 2008-11-21 20:26
帖子: 36913
送出感谢: 1
接收感谢: 36
开始我也觉得是做广告的,不过本着宁可放过一千不可错杀一个的原则,还是回答了

LZ可以YY我头像,不许YY我本人! :em35


_________________
讨厌我的人可以试着点一下
浏览全部ubuntu技巧


页首
 用户资料  
 
11 楼 
 文章标题 : Re: ubuntu 9.10 conky问题求助(已解决)
帖子发表于 : 2010-03-11 15:10 

注册: 2010-01-14 16:33
帖子: 47
送出感谢: 0 次
接收感谢: 0 次
tenzu 头像真的给人一种美的享受。一点不夸张


_________________
水!树!


页首
 用户资料  
 
12 楼 
 文章标题 : Re: ubuntu 9.10 conky问题求助
帖子发表于 : 2010-03-11 15:14 

注册: 2010-01-14 16:33
帖子: 47
送出感谢: 0 次
接收感谢: 0 次
tenzu 写道:
http://forum.ubuntu.org.cn/viewtopic.php?f=33&t=168040
这个帖里有简单配置,字体已经换成zenhei了
需要其他东西的话照猫画虎吧

代码:
use_spacer right
use_xft yes
font wenquanyi zenhei:size=8
xftfont wenquanyi zenhei:size=8
override_utf8_locale yes
update_interval 1.0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 206 5
maximum_width 400
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders no
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_right
gap_x 10
gap_y 30
cpu_avg_samples 2
uppercase no # set to yes if you want all text to be in uppercase

TEXT
${font wenquanyi zenhei:style=Bold:pixelsize=30}${alignc}${time %H:%M:%S}
${font wenquanyi zenhei:pixelsize=18}${alignc}${time %b%d日 星期%a}${font wenquanyi zenhei:pixelsize=12}
${color #ffd700}${hr 1}$color
${color #98c2c7}主机名:${color #db7093} $alignr$nodename
${color #98c2c7}内核: ${color #db7093}$alignr$kernel
${color #98c2c7}已开机: ${color #db7093}$alignr$uptime
${color #98c2c7}IP地址: ${color #db7093} ${alignr} ${addr eth0}
${color #98c2c7}CPU使用率: ${color #db7093} $alignr$cpu%
${color #78af78}$cpubar
${color #ddaa00} ${top name 1}$alignr ${top cpu 1}
${color lightgrey} ${top name 2}$alignr ${top cpu 2}
${color lightgrey} ${top name 3} $alignr${top cpu 3}
${color #98c2c7}物理内存:${color #4169e1}$alignr ${color}$mem ${color #98c2c7}/${color}$memmax${color #4169e1}${color #db7093}$memperc%
${color #78af78}${membar}
${color #98c2c7}根分区: ${color}${alignr}${fs_free /} / ${fs_size /}
${color #78af78}${fs_bar 4 /}
${color #98c2c7}Home分区: ${color}${alignr}${fs_free /home} / ${fs_size /home}
${color #78af78}${fs_bar 4 /home}
${color #98c2c7}下载速度:${color} ${downspeed eth0} k/s
${color #98c2c7}上传速度:${color} ${upspeed eth0} k/s
${color #ffd700}${hr 1}$color


这个效果非常好。


_________________
水!树!


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 12 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 3 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译