我就是保存一下我的Conky的配置~

仅供存放个人的配置文件,不要在本版发问。
回复
头像
Ney
帖子: 112
注册时间: 2009-09-13 19:23
送出感谢: 0
接收感谢: 0

我就是保存一下我的Conky的配置~

#1

帖子 Ney » 2010-02-08 10:38

全是抄袭的,不过还是学了点东西~

代码: 全选

background no
cpu_avg_samples 2
net_avg_samples 2
out_to_console no
use_xft yes
xftfont iYaHei:size=8
own_window_transparent no
xftalpha 0.8
mail_spool $MAIL
update_interval 1
own_window yes
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar
own_window_type override
double_buffer yes
minimum_size 260 5
maximum_width 240
draw_shades no
draw_outline no
draw_borders no
stippled_borders no
border_inner_margin 4
border_width 1
default_color #FFFFFF
default_shade_color black
default_outline_color green
gap_x 5
gap_y 30
alignment top_right
use_spacer none
no_buffers yes
uppercase no
TEXT
${color #2E8B57}${font iYaHei:size=8}时间${font}${color}${color #87CEEB}${hr 1}${color}
${font iYaHei:size=20}${color #87CEEB}${time %l:%M:%S}${font}${alignr}${color}
${color #87CEEB}${alignc}${font iYaHei:size=8}${time %b%d日星期%a}${color}${font}
${font iYaHei:size=10}${color brown}${alignc}一  二  三  四  五  六  日${font}
${color gold}${font DejaVu Sans Mono:size=10}${execpi 300 DJS=`date +%_d`; cal -m| sed '1d' | sed '/./!d' | sed 's/$/ /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${alignc} /' | sed /" $DJS "/s/" $DJS "/" "'${color yellow}'"$DJS"'${color green}'" "/}
${font iYaHei:size=8}${color #2E8B57}系统信息:${color}${color #87CEEB}${hr 1}${color}
${font iYaHei:size=8}${color #2E8B57}宿主信息:${color}${alignr}${color #87CEEB}$nodename${color}
${font iYaHei:size=8}${color #2E8B57}内核信息:${color}${alignr}${color #87CEEB}$kernel${color}
${font iYaHei:size=8}${color #2E8B57}开机时长:${color}${alignr}${color #87CEEB}$uptime${color}
${font iYaHei:size=8}${color #2E8B57}CPU温度:${color}${alignr}${color #87CEEB}${acpitemp}°C${color}
${font iYaHei:size=8}${color #2E8B57}${execi 99999 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2- | sed 's#Processor ##'}${font iYaHei:size=8}${color}
${color #2E8B57}CPU1 ${cpu cpu1}%${alignr}CPU2 ${cpu cpu2}%${color}
${color #2E8B57}Ram ${color}${alignr}${color #082E54}$mem / $memmax ($memperc%)${color}
${color #87CEEB}${membar 4}${color}
${color #2E8B57}swap ${color}${alignr}${color #082E54}$swap / $swapmax ($swapperc%)${color}
${color #87CEEB}${swapbar 4}${color}
${color #2E8B57}Highest CPU${color}${alignc}${color #87CEEB}CPU%${color}${color #082E54}${alignr}PID${color}
${color #2E8B57}${top name 1}${color}${alignc}${color #87CEEB}${top cpu 1}${color}${color #082E54}${alignr}${top pid 1}${color}
${color #2E8B57}${top name 2}${color}${alignc}${color #87CEEB}${top cpu 2}${color}${color #082E54}${alignr}${top pid 2}${color}
${color #2E8B57}${top name 3}${color}${alignc}${color #87CEEB}${top cpu 3}${color}${color #082E54}${alignr}${top pid 3}${color}
${color #2E8B57}Highest MEM ${color}${alignc}${color #87CEEB}MEM% ${color}${color #082E54}${alignr}PID${color}
${color #2E8B57}${top_mem name 1}${color}${alignc}${color #87CEEB}${top_mem mem 1}${color}${color #082E54}${alignr}${top_mem pid 1}${color}
${color #2E8B57}${top_mem name 2}${color}${alignc}${color #87CEEB}${top_mem mem 2}${color}${color #082E54}${alignr}${top_mem pid 2}${color}
${color #2E8B57}${top_mem name 3}${color}${alignc}${color #87CEEB}${top_mem mem 3}${color}${color #082E54}${alignr}${top_mem pid 3}${color}
${color #2E8B57}文件系统${color}${color #87CEEB}${hr 1}${color}
${color #2E8B57}Root:${color} ${alignr}${color #87CEEB}${fs_free /} ${color} @ ${color #87CEEB}${fs_size /}${color}
${color #082E54}${fs_bar 4 /}${color}
${color #2E8B57}Home:${color} ${alignr}${color #87CEEB}${fs_free /home} ${color} @ ${color #87CEEB}${fs_size /home}${color}
${color #082E54}${fs_bar 4 /home}${color}
${color #2E8B57}网络流量${color}${color #87CEEB}${hr 1}${color}
${color #082E54}Down ${downspeed eth0} k/s ${alignr}Up ${upspeed eth0} k/s${color}
${color #082E54}Total ${totaldown eth0} ${alignr}Total ${totalup eth0}${color}
${color #2E8B57}天气状况${color}${color #87CEEB}${hr 1}${color}
${execi 3600 python ~/.conky/conkyForecast.py --location=CHXX0129 --datatype=CN}
${font Weather:size=25}${color gold}${execi 3600 python ~/.conky/conkyForecast.py --location=CHXX0129 --datatype=WF}${font}${color}${voffset -20}${offset 18}${execi 3600 python ~/.conky/conkyForecast.py --location=CHXX0129 --datatype=CC}${offset 10}${execi 3600 python ~/.conky/conkyForecast.py --location=CHXX0129 --datatype=HT}${offset 10}${execi 3600 python ~/.conky/conkyForecast.py --location=CHXX0129 --datatype=WS} ${font Arrows:size=8}${execi 3600 python ~/.conky/conkyForecast.py --location=CHXX0129 --datatype=BF}$font
${offset 60}Sol: ${color}${execi 3600 python ~/.conky/conkyForecast.py --location=CHXX0129 --datatype=SR}-${execi 3600 python ~/.conky/conkyForecast.py --location=CHXX0129 --datatype=SS}
${font Weather:size=20}${execi 3600 python ~/.conky/conkyForecast.py --location=CHXX0129 --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
${execi 3600 python ~/.conky/conkyForecast.py --location=CHXX0129 --datatype=HT --startday=1 --endday=4 --spaces=11}
${color #2E8B57}倒计时${color}${color #87CEEB}${hr 1}${color}
${color #ff0000}${font DotMatrix:style=Bold:pixelsize=24}${alignc}据开学还有${exec echo $((($(date --date=2010-2-28 +%s)-$(date +%s))/86400))}天


另外我的天气脚本用的是雅虎的,论坛有的下载。具体请查找东风唯笑的帖子。
下面是各个城市的代码~不全,省的一些同学去找~

"北京", "0008");
"天津", "0133");
"杭州", "0044");
"合肥", "0448");
"上海", "0116");
"福州", "0031");
"重庆", "0017");
"南昌", "0097");
"香港", "0049");
"济南", "0064");
"澳门", "0512");
"郑州", "0165");
"呼和浩特", "0249");
"乌鲁木齐", "0135");
"长沙", "0013");
"银川", "0259");
"广州", "0037");
"拉萨", "0080");
"海口", "0502");
"南宁", "0100");
"成都", "0016");
"石家庄", "0122");
"贵阳", "0039");
"太原", "0129");
"昆明", "0076");
"沈阳", "0119");
"西安", "0141");
"长春", "0010");
"兰州", "0079");
"西宁", "0236");
"南京", "0099");
把CONKY里面天气部分的CHXXaaaa的aaaa替换成你要的城市的代码就好。
我的天气脚本是放在home/peter/.conky下的。去刚才那个人的帖子里面下载就好了 我就不再发上来了。

最后问一下:时间的最后和系统信息中间的一大段空白怎么才能去掉啊?
附件
screenshot_001.png
效果图
----------

代码: 全选

萝莉有三好:清音、柔体、易推倒;御姐有三好:啤酒、洗澡、吃嫩草;女王有三妙:木马、蜡烛、皮鞭操;人妻有三情:爱情、亲情、婚外情;
无口有三套:眼罩、绷带、表情少;御妹有三巧:乖巧、灵巧、推的巧;女僕有三件:猫耳、眼镜、蝴蝶结;护士有三色:白色、粉色、绿灯色;
老师有三事:教室、房事、坐莲式;学生有三要:不要、还要、毓婷药;兄贵有三招:夜袭、胸推、吃泡泡;正太有三宝:天真、可爱、皮肤好。
头像
qqdotavs
帖子: 170
注册时间: 2009-11-06 8:47
来自: 哪儿来着???
送出感谢: 0
接收感谢: 0

Re: 我就是保存一下我的Conky的配置~

#2

帖子 qqdotavs » 2010-02-08 11:36

学习了~ :em11
让我想想写点啥?
头像
sunningv
帖子: 1818
注册时间: 2006-12-17 13:34
来自: 武汉
送出感谢: 1 次
接收感谢: 0
联系:

Re: 我就是保存一下我的Conky的配置~

#3

帖子 sunningv » 2010-02-08 11:45

嗯“据”
人生长恨水长东;
远近高低各不同.
头像
sunningv
帖子: 1818
注册时间: 2006-12-17 13:34
来自: 武汉
送出感谢: 1 次
接收感谢: 0
联系:

Re: 我就是保存一下我的Conky的配置~

#4

帖子 sunningv » 2010-02-08 11:49

时间的最后和系统信息中间的一大段空白怎么才能去掉啊?
到3月份的时候就好了吧 似乎2月只有28天??不懂瞎联想
人生长恨水长东;
远近高低各不同.
头像
Ney
帖子: 112
注册时间: 2009-09-13 19:23
送出感谢: 0
接收感谢: 0

Re: 我就是保存一下我的Conky的配置~

#5

帖子 Ney » 2010-02-08 12:18

刚才我把代码小小的改了下
具体就是最大CPU和内存的最后都换成了PID了~
为了KILL用~
不上图了~
代码如一楼~
----------

代码: 全选

萝莉有三好:清音、柔体、易推倒;御姐有三好:啤酒、洗澡、吃嫩草;女王有三妙:木马、蜡烛、皮鞭操;人妻有三情:爱情、亲情、婚外情;
无口有三套:眼罩、绷带、表情少;御妹有三巧:乖巧、灵巧、推的巧;女僕有三件:猫耳、眼镜、蝴蝶结;护士有三色:白色、粉色、绿灯色;
老师有三事:教室、房事、坐莲式;学生有三要:不要、还要、毓婷药;兄贵有三招:夜袭、胸推、吃泡泡;正太有三宝:天真、可爱、皮肤好。
wang020612
帖子: 427
注册时间: 2009-11-07 21:05
送出感谢: 1 次
接收感谢: 0
联系:

Re: 我就是保存一下我的Conky的配置~

#6

帖子 wang020612 » 2010-04-30 23:29

不错不错,收藏, :em06
头像
qingwu77
帖子: 162
注册时间: 2010-01-12 11:13
送出感谢: 0
接收感谢: 0

Re: 我就是保存一下我的Conky的配置~

#7

帖子 qingwu77 » 2010-08-21 20:09

纠结那个天气开不起来 !!lz教教我吧
Linux or Windows?
Of course,Linux!
Ubuntu or others?
Of course,ubuntu!
头像
Ney
帖子: 112
注册时间: 2009-09-13 19:23
送出感谢: 0
接收感谢: 0

Re: 我就是保存一下我的Conky的配置~

#8

帖子 Ney » 2010-09-09 0:10

qingwu77 写了:纠结那个天气开不起来 !!lz教教我吧
viewtopic.php?f=24&t=229312去这个里面下载
----------

代码: 全选

萝莉有三好:清音、柔体、易推倒;御姐有三好:啤酒、洗澡、吃嫩草;女王有三妙:木马、蜡烛、皮鞭操;人妻有三情:爱情、亲情、婚外情;
无口有三套:眼罩、绷带、表情少;御妹有三巧:乖巧、灵巧、推的巧;女僕有三件:猫耳、眼镜、蝴蝶结;护士有三色:白色、粉色、绿灯色;
老师有三事:教室、房事、坐莲式;学生有三要:不要、还要、毓婷药;兄贵有三招:夜袭、胸推、吃泡泡;正太有三宝:天真、可爱、皮肤好。
头像
Ney
帖子: 112
注册时间: 2009-09-13 19:23
送出感谢: 0
接收感谢: 0

Re: 我就是保存一下我的Conky的配置~

#9

帖子 Ney » 2016-04-20 19:27

代码: 全选

#######################################################################################
###  Conky by http://gnome-look.org/content/show.php/conky+gray?content=155967     ####
###  Modified by    :   http://www.NoobsLab.com                                    ####
#######################################################################################

double_buffer yes
own_window_class conky
own_window yes
own_window_type conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_argb_visual yes
draw_borders no
draw_graph_borders no
border_margin 3
draw_shades yes
gap_x 0
gap_y 5
alignment bottom_left
update_interval 1
default_color  010101
own_window_colour FFFFFF
use_xft yes
xftfont sans:size=7
override_utf8_locale yes
use_spacer none
minimum_size 1920 0
TEXT
${goto 5}Date: ${color BD4D4D}${font sans:size=7}${time %d/%m/%y}${color}${font}  Time: ${color BD4D4D}${font sans:size=7}${time %H:%M}${color}${font}  |  Kernel: ${color BD4D4D}${font sans:size=7}$kernel${color}${font}  Uptime: ${color BD4D4D}${font sans:size=7}${uptime_short}${color}${font}  |  Cpu: ${color BD4D4D}${font sans:size=7}${cpu}%${color}${font}  Ram: ${color BD4D4D}${font sans:size=7}${memperc}%${color}${font}  Swap: ${color BD4D4D}${font sans:size=7}${swapperc}%${color}${font}  |  ${color}${font}Hdd:${color BD4D4D}${font sans:size=7} ${fs_used_perc /}% ${fs_used /} / ${fs_size /}  |  ${color}${font}CPU Temp: ${color BD4D4D}${font sans:size=7}${exec sensors |sed '1,8d'|sed '2,$d'|cut -b 15-24}${color}${font}  |  Local ip ${color BD4D4D}${font sans:size=7}${addr wlp2s0}${font}${color} | ${color} ${if_existing /proc/net/route eth0}Network: ${color 82BA00}Up :${color} ${color BD4D4D}${upspeed eth0} kb/s${color}  ${color 82BA00}Down :${color} ${color BD4D4D}${downspeed } kb/s${color} ${color 82BA00}Total :${color} ${color BD4D4D}${totaldown eth0}${color}${else}${if_existing /proc/net/route wlp2s0}${color 82BA00}${font sans:size=7}Up :${color}${font} ${color BD4D4D}${upspeed wlp2s0} kb/s${color}  ${color 82BA00}${font sans:size=7}Down :${color}${font} ${color BD4D4D}${downspeed wlp2s0} kb/s${color} ${color 82BA00}${font sans:size=7}Total down :${color}${font} ${color BD4D4D}${totaldown wlp2s0}${color}${endif}${else}Network Unavailable${endif} | Countdown:There are ${color BD4D4D} ${exec echo $((($(date --date=2016-5-1 +%s)-$(date +%s))/86400))}${color} days from ${color BD4D4D}DEADLINE.
----------

代码: 全选

萝莉有三好:清音、柔体、易推倒;御姐有三好:啤酒、洗澡、吃嫩草;女王有三妙:木马、蜡烛、皮鞭操;人妻有三情:爱情、亲情、婚外情;
无口有三套:眼罩、绷带、表情少;御妹有三巧:乖巧、灵巧、推的巧;女僕有三件:猫耳、眼镜、蝴蝶结;护士有三色:白色、粉色、绿灯色;
老师有三事:教室、房事、坐莲式;学生有三要:不要、还要、毓婷药;兄贵有三招:夜袭、胸推、吃泡泡;正太有三宝:天真、可爱、皮肤好。
头像
qy117121
论坛版主
帖子: 49936
注册时间: 2007-12-14 13:40
系统: Winbuntu
来自: 志虚国乌由市
送出感谢: 17 次
接收感谢: 332 次
联系:

Re: 我就是保存一下我的Conky的配置~

#10

帖子 qy117121 » 2016-04-20 19:32

代码: 全选

萝莉有三好:清音、柔体、易推倒;御姐有三好:啤酒、洗澡、吃嫩草;女王有三妙:木马、蜡烛、皮鞭操;人妻有三情:爱情、亲情、婚外情;
无口有三套:眼罩、绷带、表情少;御妹有三巧:乖巧、灵巧、推的巧;女僕有三件:猫耳、眼镜、蝴蝶结;护士有三色:白色、粉色、绿灯色;
老师有三事:教室、房事、坐莲式;学生有三要:不要、还要、毓婷药;兄贵有三招:夜袭、胸推、吃泡泡;正太有三宝:天真、可爱、皮肤好。
:em05
渠月 · QY

本人只会灌水,不负责回答问题

无聊可以点一下→ http://u.nu/ubuntu
lizphoenix
帖子: 1
注册时间: 2016-12-05 21:40
系统: Centos
送出感谢: 0
接收感谢: 0

Re: 我就是保存一下我的Conky的配置~

#11

帖子 lizphoenix » 2016-12-06 9:13

请问我这个报错是为什么?


Conky: /home/johnny/.conkyrc: 22: no such configuration: 'border_margin'
Conky: desktop window (1200003) is subwindow of root window (115)
Conky: window type - override
Conky: drawing to created window (0x2e00001)
Conky: drawing to double buffer
Can't open perl script "/home/johnny/.conky/check_gmail.sh": No such file or directory
Can't open perl script "/home/johnny/.conky/check_gmail.sh": No such file or directory
:3: parser error : Input is not proper UTF-8, indicate encoding !
Bytes: 0xB0 0xD9 0xB6 0xC8
<title>�ٶ�--���ķ��ʳ�����</title>
^
:4: parser error : AttValue: " or ' expected
<META http-equiv=content-type content="text/html; charset=gb2312">
^
:4: parser error : attributes construct error
<META http-equiv=content-type content="text/html; charset=gb2312">
^
:4: parser error : Couldn't find end of Start Tag META line 4
<META http-equiv=content-type content="text/html; charset=gb2312">
^
:5: parser error : AttValue: " or ' expected
<META content="MSHTML 6.00.2462.0" name=GENERATOR></HEAD>
^
:5: parser error : attributes construct error
<META content="MSHTML 6.00.2462.0" name=GENERATOR></HEAD>
^
:5: parser error : Couldn't find end of Start Tag META line 5
<META content="MSHTML 6.00.2462.0" name=GENERATOR></HEAD>
^
:5: parser error : Opening and ending tag mismatch: head line 2 and HEAD
<META content="MSHTML 6.00.2462.0" name=GENERATOR></HEAD>
^
:6: parser error : Opening and ending tag mismatch: html line 1 and head
</head>
^
:7: parser error : Extra content at the end of the document
<style type="text/css">
^
回复

回到 “个人配置文件存放点”