我的conky主题,个人认为比较好看的

系统字体配置、中文显示和输入法问题
回复
alncat
帖子: 5
注册时间: 2010-09-27 12:06

我的conky主题,个人认为比较好看的

#1

帖子 alncat » 2011-03-26 11:15

代码如下

代码: 全选

background yes

use_xft yes
xftfont Tahoma:size=8
xftalpha 0.8
text_buffer_size 2048
update_interval 1
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type override
double_buffer yes
minimum_size 180 0
draw_shades no
draw_outline no
draw_borders no
stippled_borders no
border_margin 5
border_width 1
default_color C9C5BD
own_window_colour white
alignment top_right
gap_x 10
gap_y 10
no_buffers yes
uppercase no
color0 555753 # серый
color1 f57900 # оранжевый
color2 fcaf3e # светло оранжевый
color3 3465a4 # синий
color4 729fcf # голубой
color5 73d216 # светло зелёный
color6 2e3436 # чёрный
color7 cc0000 # красный
color8 babdb6 # светло серый
color9 eeeeec # почти белый
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer none

TEXT

#Календарь ${hr}
${color4}${goto 10}${font DejaVu Sans Mono:size=44}${time %H}${font DejaVu Sans Mono:size=20}${voffset -25}'${time %M}${font DejaVu Sans Mono:size=8}${voffset -12}${time %S}
${color3}${goto 85}${voffset 10}${font :size=8}${time %A}
${color3}${goto 85}${voffset 1}${font :size=8}${time %d %B %Y}
${voffset 11}${alignc}${color}${font  VeraSansYuanTiMono:size=8}${execpi 300 export LC_TIME=C; DJS=`date +%_d`; cal | sed '/./!d;1s/  //g;2,8s/^/ /;:a;7,8s/^.\{1,20\}$/& /;ta;s/ '"$DJS"'/ ${font VeraSansYuanTiMono:style=Bold:size=8}${color #EE6363}'"$DJS"'${font VeraSansYuanTiMono:size=8}${color}/'}

${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0448 --datatype=CN}
${font Weather:size=44}${color gold}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0116 --datatype=WF}${font}${color}${voffset -20}${offset 18}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0448 --datatype=CC}${offset 10}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0448 --datatype=HT}${offset 10}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0448 --datatype=WS} ${font Arrows:size=10}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0448 --datatype=BF}$font
${offset 60}Sol: ${color}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0448 --datatype=SR}-${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0448 --datatype=SS}
${font Weather:size=26}${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0448 --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
${execi 3600 python ~/conkyrc/conkyForecast.py --location=CHXX0448 --datatype=HT --startday=1 --endday=4 --spaces=11}


${color white}NETWORK ${hr 1}${color}

Down ${downspeed eth0} k/s ${alignr}Up ${upspeed eth0} k/s
${downspeedgraph eth0 25,107} ${alignr}${upspeedgraph eth0 25,107}
Total ${totaldown eth0} ${alignr}Total ${totalup eth0}

${color white}SYSTEM ${hr 1}${color}
CPU1 ${alignr}${cpu cpu1}%
${cpubar 4 cpu1}
CPU2 ${alignr}${cpu cpu2}%
${cpubar 4 cpu2}
CPU3 ${alignr}${cpu cpu3}%
${cpubar 4 cpu3}
CPU4 ${alignr}${cpu cpu4}%
${cpubar 4 cpu4}

Ram ${alignr}$mem / $memmax ($memperc%)
${membar 4}
swap ${alignr}$swap / $swapmax ($swapperc%)
${swapbar 4}

Battery ${alignr} ${battery} / $battery ($battery_percent%)
${battery_bar 4}


城市天气代码的获得可以在http://xoap.weather.com/search/search?where=hefei中获得,我的是合肥,
<search ver="3.0"><loc id="CHXX0448" type="1">Hefei, China</loc></search>
loc id 就是你城市的id
字体和weatherforecast 的phyton脚本可以在这个帖子里下到
viewtopic.php?f=24&t=185454
把所有的location都改成你的
好了,enjoy! :em11
附件
效果图
效果图
头像
zkwlx
帖子: 989
注册时间: 2009-10-09 12:54
系统: debian
来自: 北京某胡同

Re: 我的conky主题,个人认为比较好看的

#2

帖子 zkwlx » 2011-03-26 11:51

我有点怀疑,你这个壁纸是故意一环一环的,还是图片质量差。。。。
alncat
帖子: 5
注册时间: 2010-09-27 12:06

Re: 我的conky主题,个人认为比较好看的

#3

帖子 alncat » 2011-03-26 18:46

嗯,截图分辨率太低了~
头像
月下叹逍遥
论坛版主
帖子: 33994
注册时间: 2010-10-07 14:23
系统: Archdows10
来自: 某系某星某洲某国某省某市
联系:

Re: 我的conky主题,个人认为比较好看的

#5

帖子 月下叹逍遥 » 2011-03-26 19:17

迈克尔逊干涉仪…… :em20
浮生七十今三十,从此凄惶未可知
头像
qy117121
论坛版主
帖子: 50538
注册时间: 2007-12-14 13:40
系统: Winbuntu
来自: 志虚国乌由市
联系:

Re: 我的conky主题,个人认为比较好看的

#6

帖子 qy117121 » 2011-03-26 19:42

墙纸 :em20
渠月 · QY   
本人只会灌水,不负责回答问题
无聊可以点一下→ http://u.nu/ubuntu

Ubuntu 20.04 快速设置指南,请配合浏浏览器自动翻译使用

邮箱 chuan@ubuntu.org.cn
alncat
帖子: 5
注册时间: 2010-09-27 12:06

Re: 我的conky主题,个人认为比较好看的

#7

帖子 alncat » 2011-03-27 1:39

迈克尔逊干涉仪…… :em20
哈哈,正解.
alncat
帖子: 5
注册时间: 2010-09-27 12:06

Re: 我的conky主题,个人认为比较好看的

#8

帖子 alncat » 2011-03-27 9:34

有一个bug,当未联网是,天气不能显示conky会变得很难看。是天气预报脚本的问题。
The Cache Folder Used

Code:

CACHE_FOLDERPATH = /tmp/

This setting dictates where the "pickled" weather data is cached for further use by the script. There will be one pickled file per location with the name .conkyForecast-LOCATION.cache, with LOCATION replace with your used location codes.

Pickling the information retrieved means that it can be reused without needing a round trip to the weather.com XOAP service each time something is displayed through a script call.

The default folder used is /tmp which is fine in most cases. However it should be noted that the /tmp folder is emptied on reboot, so data will not be kept in this case and a will needs refetching from the web again.

In situations where reboots are common, you could change the path to your own home folder if desired, meaning that cached data will never be lost.
应该这样解决吧,按上面更改conkyforecast天气数据储存位置,这样就不需要每次开机联网,一天联一次就够了。或者没联网时干脆关了conky,这样最简单,^_^。再上一次截图。
附件
截图
截图
jtshs256
帖子: 22323
注册时间: 2010-07-19 21:41
系统: OS X

Re: 我的conky主题,个人认为比较好看的

#9

帖子 jtshs256 » 2011-03-27 10:21

:em06 :em06
躺平
回复