|
代码如下 我的locale是us-utf8 但我中文locale都配只好了 系统支持中文
但是 conky 的日期部分无法显示中文 其他的部分中文正常
代码如下
background no
use_xft yes
xftfont Microsoft YaHei:size=10
xftalpha 0.9
mail_spool $MAIL
update_interval 5.0
total_run_times 0
own_window yes
own_window_colour hotpink
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar
own_window_type override
double_buffer yes
minimum_size 280 5
maximum_width 580
draw_shades yes
draw_outline no
draw_borders yes
draw_graph_borders yes
stippled_borders 8
border_margin 4
border_width 0
default_color white
default_shade_color black
default_outline_color black
gap_x 10
gap_y 10
alignment top_right
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
use_spacer none
show_graph_scale no
show_graph_range no
override_utf8_locale yes
default_graph_size 0 25
#default_gauge_size 25 25
short_units yes
alias chineseweek
TEXT
${font Microsoft YaHei:style=Bold:size=12}${alignc}${time %H:%M:%S}
${font Microsoft YaHei:style=Bold:size=12}${alignc}${time %H:%M:%S}
${font Microsoft YaHei:style=Bold:pixelsize=18}${alignc}${time %Y年%m月%d日 星期%w }${font Microsoft YaHei:style=Bold:pixelsize=12}
${alignc}${execi 3600 /home/frankju/bin/conkyweather/tianqi -nongli}
${font Microsoft YaHei:size=8}${alignc}${sysname}${kernel}-${machine}
${font Microsoft YaHei:size=8}${alignc}系统运行时间${uptime}${color #ffffff}
$stippled_hr
${color #98c2c7}${font Microsoft YaHei:style=Bold:pixelsize=12}系统信息${font Microsoft YaHei:size=8}
${color #ffffff}处理器 ${color #8844ee} ${cpu}% ${color #ffffff}[${color #8844ee} ${acpitemp} ${color #ffffff} C]
${color #ffffff}程 序 ${color #8844ee} $running_processes ${color #ffffff} : ${color #8844ee} $processes
${color #ffffff}内 存 ${color #8844ee} $mem ${color #ffffff} / ${color #8844ee} $memmax ${color #ffffff} - ${color #8844ee} $memperc%
${color #ffffff} ${membar}
${color #ffffff}缓 存 ${color #8844ee} $swap ${color #ffffff} / ${color #8844ee} $swapmax ${color #ffffff} - ${color #8844ee} $swapperc%
${color #ffffff} ${swapbar}
$color$stippled_hr
${color #98c2c7}${font Microsoft YaHei:style=Bold:pixelsize=12}网 络 ${font Microsoft YaHei:size=8} ${color #ffffff} $alignr 下载 ${color #8844ee} ${downspeed eth0} k/s ${color #ffffff} 上传 ${color #8844ee} ${upspeed eth0} k/s${color lightgrey}
$stippled_hr
${color #98c2c7}${font Microsoft YaHei:style=Bold:pixelsize=12}程 序 ${font Microsoft YaHei:size=8} ${color #ffffff}$alignr PID CPU% MEM%
${color #ddaa00} ${top name 1} ${offset 20} $alignr ${top pid 1} ${top cpu 1} ${top mem 1}
${color #8844ee} ${top name 2} ${offset 20} $alignr ${top pid 2} ${top cpu 2} ${top mem 2}
${color #8844ee} ${top name 3} ${offset 20} $alignr ${top pid 3} ${top cpu 3} ${top mem 3}
${color #8844ee} ${top name 4} ${offset 20} $alignr ${top pid 4} ${top cpu 4} ${top mem 4}
${color #8844ee} ${top name 5} ${offset 20} $alignr ${top pid 5} ${top cpu 5} ${top mem 5}
${color #8844ee} ${top name 6} ${offset 20} $alignr ${top pid 6} ${top cpu 6} ${top mem 6}
${color #ffffff}$stippled_hr
${color #98c2c7}${font Microsoft YaHei:style=Bold:pixelsize=12}硬 盘${font Microsoft YaHei:size=8} $alignr${color #f0e68c}${hddtemp /dev/hda}
$color${diskiograph 10 00ff00 2f4f4f}
${voffset -25}${color #ffd700} Reading: $color$diskio_read$alignr${color #ffd700}Writing: $color$diskio_write ${voffset 10}
${color #ffe7ba}文件系统$color $alignr ${fs_used /}/ ${fs_size /} ${color #ffd700}${fs_type /} $color${fs_used_perc /}%
${voffset -5}${color #ffffff}${fs_bar 3 /}
${color #ffe7ba}Home $color $alignr ${fs_used /home}/ ${fs_size /home} ${color #ffd700}${fs_type /home} $color${fs_used_perc /home}%
${voffset -5}${color #ffffff}${fs_bar 3 /home}
${color #ffffff}${stippled_hr}
${color #98c2c7}${font Microsoft YaHei:style=Bold:pixelsize=12}天气预报$alignr${color #ffffff}${execi 3600 /home/frankju/bin/conkyweather/tianqi -chengshi}
${color gold} ${font Weather:size=38}${execi 3600 /home/frankju/bin/conkyweather/tianqi -icon}${font Microsoft YaHei:size=8} ${color #ffffff}${voffset -15} $alignr ${execi 3600 /home/frankju/bin/conkyweather/tianqi -tianqi} ${execi 3600 /home/frankju/bin/conkyweather/tianqi -qiwen} ${execi 3600 /home/frankju/bin/conkyweather/tianqi -fengxiang}
${color #ffffff}$stippled_hr
${color #98c2c7}${font Microsoft YaHei:style=Bold:pixelsize=12}财经新闻 ${font Microsoft YaHei:size=8} ${color #ffffff}
${rss http://money.163.com/special/00252EQ2/toutiaorss.xml 5 item_titles 8}
效果图如下:(星期4 怎么变成中文)
先谢谢大家 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|