刚写了个简单明了的conky 附效果图
Tofloor
poster avatar
lovconky
deepin
2017-04-18 08:23
Author


background yes
double_buffer yes

alignment bottom_left

border_width 1
cpu_avg_samples 2
default_color white
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no

gap_x 1500
gap_y 80
net_avg_samples 2
no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no

own_window yes
own_window_type normal
own_window_transparent yes
own_window_colour 000000
own_window_argb_visual yes
own_window_argb_value 0
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

minimum_size 300 230
stippled_borders 0
update_interval 1.0
uppercase no
use_spacer none

show_graph_scale no
show_graph_range no

use_xft yes
xftalpha 0.1
xftfont Droid Sans:size=12
color0 white
color1 EAEAEA
color2 FFA300
color3 grey

TEXT
##日期
${font Microsoft YaHei:pixelsize=30}${alignc}${time %b%d日星期%a}${alignc}
##时间
${font Microsoft YaHei:pixelsize=40}${alignc}${time %H:%M:%S}
##系统信息
${font Ubuntu:size=10,weight:bold}${color4}系统信息 ${hr 2}
${offset 15}${font Ubuntu:size=10,weight:normal}${color1}$sysname $kernel
${offset 15}${font Ubuntu:size=10,weight:normal}${color1}$nodename
${offset 15}${font Ubuntu:size=10,weight:normal}${color1}开机时间: $uptime
##cpu使用率前2
${color2}CPU ${color0}${alignr}${cpu cpu0}%
${cpubar cpu0 2,}
${top name 1} $alignr ${top cpu 1}%
${top name 2} $alignr ${top cpu 2}%
##内存使用率前2
${color2}RAM ${color0}${alignr}${mem}
${membar 5,}
${top_mem name 1} $alignr ${top_mem mem_res 1}
${top_mem name 2} $alignr ${top_mem mem_res 2}
##cpu整体使用率
${color2}CPU ${color0} ${cpu cpu0}%  ${color3}${cpubar cpu0 10,}
##个核心使用率
${cpugraph cpu0 100,300}${voffset -19}
${cpugraph cpu1 50,100}${cpugraph cpu2 50,100}${cpugraph cpu3 50,100}${voffset -19}
${cpugraph cpu4 50,100}${cpugraph cpu5 50,100}${cpugraph cpu6 50,100}
${font Ubuntu:size=10}${voffset -110}${color3}${goto 10}1 ${goto 110}2 ${goto 210}3 ${goto 0} ${voffset 50} ${goto 10}4 ${goto 110}5 ${goto 210}6
${font Ubuntu:size=8}${voffset -67}${color3}${goto 58}${freq_g (1)}GHz ${goto 158}${freq_g (2)}GHz ${goto 258}${freq_g (3)}GHz ${goto 0}${voffset 50}${goto 58}${freq_g (4)}GHz ${goto 158}${freq_g (5)}GHz ${goto 258}${freq_g (6)}GHz

##网络信息----重要 enp2s0 这个位置可以自己查看自己的网络接口后修改,否则显示流量为0

${voffset 1}${color #98c2c7} 上传: ${color #db7093}${upspeed enp2s0}/s ${alignr}${color #98c2c7}总共: ${color #db7093}${totalup enp2s0}
${voffset 1}${color #98c2c7} 下载: ${color #ddaa00}${downspeed enp2s0}/s ${alignr}${color #98c2c7}总共: ${color #ddaa00}${totaldown enp2s0}
${color #ffa200}${hr 2}

Reply Favorite View the author
All Replies
1 / 2
To page
avatar
jingle
deepin
2017-04-18 15:02
#1
非常不错
Reply View the author
avatar
xujingfu
deepin
2017-04-18 17:20
#2
不明觉厉
Reply View the author
avatar
longxiang
deepin
2017-04-18 18:15
#3
我就想问问这段代码放在哪里可以在桌面上出现如图的效果?
Reply View the author
avatar
FZFZ
deepin
2017-04-18 18:29
#4


我也来一张
EZ.conky.tar.gz
Reply View the author
avatar
FZFZ
deepin
2017-04-18 18:33
#5
https://bbs.deepin.org/post/137763
我就想问问这段代码放在哪里可以在桌面上出现如图的效果?

conky的模板文件路径默认为: ~./.conky/
你只需要把楼主发的代码拷入文本文档保存,再把这文件放入.conky文件夹内即可。
当你打开conky-manager后,你应该能在列表中看到你放入的模板。
Reply View the author
avatar
lovconky
deepin
2017-04-18 18:33
#6
https://bbs.deepin.org/post/137763
我就想问问这段代码放在哪里可以在桌面上出现如图的效果?

安装conky   在安装conky manager
打开conky manager后随便找个配置文件,把找个写进去就可以了
可以搜索一下conky的语法   好多功能
可以把自己需要的东西加进去
我发的代码,都写上注释了
Reply View the author
avatar
longxiang
deepin
2017-04-18 18:50
#7
https://bbs.deepin.org/post/137763
conky的模板文件路径默认为: ~./.conky/
你只需要把楼主发的代码拷入文本文档保存,再把这文件放入.conky ...

我已经放进去了,接下来怎么班,打开conky-manager是什么意思,怎么打开,没有应用图标啊
Reply View the author
avatar
klkl132
deepin
2017-04-18 19:07
#8
学习一下
Reply View the author
avatar
aurthur
deepin
2017-04-18 19:07
#9
这叫配置,不叫写!
Reply View the author
avatar
FZFZ
deepin
2017-04-18 19:19
#10
https://bbs.deepin.org/post/137763
我已经放进去了,接下来怎么班,打开conky-manager是什么意思,怎么打开,没有应用图标啊
...


Reply View the author
avatar
FZFZ
deepin
2017-04-18 19:21
#11
https://bbs.deepin.org/post/137763
我已经放进去了,接下来怎么班,打开conky-manager是什么意思,怎么打开,没有应用图标啊
...

conky-manager 需要安装,atp install 或者商店都行
Reply View the author
avatar
klkl132
deepin
2017-04-18 19:22
#12
网络接口怎么查看?求教
Reply View the author
avatar
hewro
deepin
2017-04-18 19:27
#13
great!已经用上了~
Reply View the author
avatar
klkl132
deepin
2017-04-18 19:49
#14
中文貌似不显示,网速已改为wlan0,但还是无网速。。。还有些错版,求解决方法


Reply View the author
avatar
方老四
deepin
2017-04-18 20:52
#15
还是建议官方在控制中心首页再增加一页,显示cpu、内存和网络传输情况
Reply View the author
avatar
FZFZ
deepin
2017-04-18 20:52
#16
https://bbs.deepin.org/post/137763
网络接口怎么查看?求教

ifconfig  找到你的IP地址。那个就是
Reply View the author
avatar
FZFZ
deepin
2017-04-18 20:54
#17
https://bbs.deepin.org/post/137763
中文貌似不显示,网速已改为wlan0,但还是无网速。。。还有些错版,求解决方法


Reply View the author
avatar
FZFZ
deepin
2017-04-18 20:57
#18
https://bbs.deepin.org/post/137763
中文貌似不显示,网速已改为wlan0,但还是无网速。。。还有些错版,求解决方法

中文问题是因为你没有微软雅黑的字体。
解决方案:1.安装微软雅黑字体。
                 2.更换成其它字体。
Reply View the author
avatar
klkl132
deepin
2017-04-20 06:28
#19
https://bbs.deepin.org/post/137763
中文问题是因为你没有微软雅黑的字体。
解决方案:1.安装微软雅黑字体。
                 2.更换成其它 ...

谢谢 已经OK
Reply View the author
avatar
klkl132
deepin
2017-04-20 06:31
#20
https://bbs.deepin.org/post/137763
中文问题是因为你没有微软雅黑的字体。
解决方案:1.安装微软雅黑字体。
                 2.更换成其它 ...

有没有办法设置成开机自启动?网上试过其他教程 没用
Reply View the author
1 / 2
To page