折腾了2小时。做了这么个玩意。
Tofloor
default avatar
ghostry
deepin
2015-12-31 20:11
Author

Reply Favorite View the author
All Replies
2 / 5
To page
joyk3000
deepin
2016-01-05 10:33
#21
不错的样子
Reply View the author
kingskill
deepin
2016-01-05 11:24
#22
https://bbs.deepin.org/post/35029
个人喜好不一样、我习惯中文

中文怎么弄的?
Reply View the author
153******45
deepin
2016-01-05 11:43
#23
https://bbs.deepin.org/post/35029
中文怎么弄的?

直接翻译就行了
Reply View the author
kingskill
deepin
2016-01-05 11:59
#24
weather.sh文件打开是空白?地区代码直接写在里面?
Reply View the author
Comments
ghostry
2016-01-05 12:43
更新看看,可能没有下载好。不应该是空白。
153******45
deepin
2016-01-05 12:05
#25
https://bbs.deepin.org/post/35029
weather.sh文件打开是空白?地区代码直接写在里面?
  1. alignment top_right
  2. background no
  3. border_width 0
  4. cpu_avg_samples 2
  5. default_color green
  6. default_outline_color white
  7. default_shade_color white
  8. draw_borders no
  9. draw_graph_borders yes
  10. draw_outline no
  11. draw_shades no
  12. use_xft yes
  13. #xftfont DejaVu Sans Mono:size=12
  14. xftfont WenQuanYi Zen Hei:pixelsize=16
  15. override_utf8_locale yes
  16. minimum_size 300 800
  17. maximum_width 300
  18. net_avg_samples 2
  19. no_buffers yes
  20. out_to_console no
  21. out_to_stderr no
  22. extra_newline no
  23. own_window yes
  24. own_window_class Conky
  25. #own_window_type desktop
  26. own_window_type normal
  27. #own_window_type override
  28. #own_window_type panel
  29. #own_window_transparent true
  30. own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
  31. double_buffer yes
  32. own_window_colour 000000
  33. own_window_argb_visual yes
  34. own_window_argb_value 20
  35. stippled_borders 0
  36. update_interval 1.0
  37. uppercase no
  38. use_spacer none
  39. show_graph_scale no
  40. show_graph_range no
  41. #append_file ~/.conky/myConky/config
  42. gap_x 10
  43. gap_y 130

  44. #enp4s0=enp4s0
  45. TEXT
  46. #${font Weather :pixelsize=88}${exec ./weather.sh 1}${alignr}${font Weather :pixelsize=24}y${font WenQuanYi Zen Hei:pixelsize=18}${exec ./weather.sh 0}
  47. #${font Weather :pixelsize=64}abcdefg
  48. #hijklmn
  49. #opq rst
  50. #uvw xyz
  51. #${image /home/momo/.b.png -p -1521,-12 -s 1920x1080}
  52. #${image /home/momo/图片/Wallpapers/viman.jpg -p -1521,-12 -s 1366x768}
  53. #$hr
  54. #            $nodename - $sysname $kernel
  55. #${color grey}${hr 1}${color}
  56. ${font LCD:style=Bold:pixelsize=30}${alignc}${time %H:%M:%S}
  57. ${font WenQuanYi Zen Hei:pixelsize=18}${alignc}${time %Y年%b%d日 星期%a}${alignc}
  58. #${font WenQuanYi Zen Hei:pixelsize=18}${alignc}${time %Y年%b 星期%a}${alignc}
  59. #${color grey}${hr 1}${color}
  60. ${font WenQuanYi Zen Hei:pixelsize=16}${if_existing /proc/net/route enp4s0}${color grey}有线网络 ${hr 1}${color}
  61. ${color grey}下载$color ${downspeed enp4s0} ${alignr}${color grey}上传$color ${upspeed enp4s0}
  62. ${color grey}${downspeedgraph enp4s0 25,107 FF6600 FFFFFF} ${alignr}${upspeedgraph enp4s0 25,107 FF6600 FFFFFF}
  63. 以上传:$color ${alignr}${totalup enp4s0}
  64. ${color grey}以下载:$color ${alignr}${totaldown enp4s0}
  65. ${color grey}IP地址:$color ${alignr}${addr enp4s0}
  66. ${color grey}${alignc}本月流量:$color ${exec echo $(export LANG=en_US;vnstat -s -i enp4s0|grep -v day|grep -v "^$"|awk -F '/' 'END {print $3}')}  ${color grey}今日流量:$color ${exec echo $(export LANG=en_US;vnstat -s -i enp4s0|grep today|awk -F '/' '{print $3}')}
  67. $endif
  68. ${if_existing /proc/net/route wlp3s0}${color grey}无线网络 ${hr 1}${color}
  69. ${color grey}下载$color ${downspeed wlp3s0} ${alignr}${color grey}上传$color ${upspeed wlp3s0}
  70. ${color grey}${downspeedgraph wlp3s0 25,107 FF6600 FFFFFF} ${alignr}${upspeedgraph wlp3s0 25,107 FF6600 FFFFFF}
  71. 以上传:$color ${totalup wlp3s0}${alignr}${color grey}以下载:$color ${totaldown wlp3s0}
  72. ${color grey}IP地址:$color ${alignr}${addr wlp3s0}${color grey}
  73. ${alignc}本月流量:$color ${exec echo $(export LANG=en_US;vnstat -s -i wlp3s0|grep -v day|grep -v "^$"|awk -F '/' 'END {print $3}')}  ${color grey}今日流量:$color ${exec echo $(export LANG=en_US;vnstat -s -i wlp3s0|grep today|awk -F '/' '{print $3}')}
  74. $endif
  75. ${color grey}系统 ${color}${acpitemp}℃${color grey}${hr 1}${color}
  76. ${color grey}运行时间:$color ${alignr 10}$uptime
  77. ${color grey}CPU频率:$color ${alignr 10}$freq MHz
  78. #${color grey}CPU频率:$color ${alignr 10}$freq_g GHz
  79. ${color grey}RAM使用率:$color ${alignr 10}$mem/$memmax - $memperc%
  80. # ${membar 4}
  81. ${color grey}${memgraph 4 25,300 FF6600 FFFFFF}
  82. ${color grey}SWAP使用率:$color $swap/$swapmax - $swapperc% ${swapbar 4}
  83. ${color grey}CPU 使用率:$color $cpu%
  84. # ${cpubar 4}
  85. ${color grey}${cpugraph 4 25,300 FF6600 FFFFFF}
  86. #${color grey}进程:$color $processes  ${alignr}${color grey}运行进程:$color $running_processes
  87. ${color grey}文件系统 ${color}${exec echo $(hddtemp /dev/sda|awk '{ print $4}')}${color grey}${hr 1}${color}
  88. /${alignr}$color${fs_used /}/${fs_size /}
  89. ${fs_bar 6 /}
  90. /home${alignr}$color${fs_used /home/}/${fs_size /home}
  91. ${fs_bar 6 /home}
  92. ${color grey}进程 ${hr 1}${color}
  93. ${color grey}进程名${alignr 70}  CPU%${alignr}内存%
  94. ${color lightgrey}${top name 1}${alignr 90}${top cpu 1}${alignr 10}${top mem 1}
  95. ${color lightgrey}${top name 2}${alignr 90}${top cpu 2}${alignr 10}${top mem 2}
  96. ${color lightgrey}${top name 3}${alignr 90}${top cpu 3}${alignr 10}${top mem 3}
  97. ${color lightgrey}${top name 4}${alignr 90}${top cpu 4}${alignr 10}${top mem 4}
  98. ${color lightgrey}${top name 5}${alignr 90}${top cpu 5}${alignr 10}${top mem 5}


Copy the Code

Reply View the author
Comments
kingskill
2016-01-05 13:35
不是没下载好,是weather那段有问题,好像打字多出来了个y~~然后他找不到错误就注释掉了
ghostry
2016-01-05 12:32
git pull 看看,可能没有下载好。
kingskill
deepin
2016-01-05 12:10
#26

昏倒。。。这是weather.sh的内容?!
Reply View the author
zqpetlee
deepin
2016-01-05 12:13
#27
https://bbs.deepin.org/post/35029
我指的是上面的天气,不是用箭头标出来了么。

用中国天气通的api不知道行不行
Reply View the author
kingskill
deepin
2016-01-05 12:29
#28
我这边天气总是弄不好,是在/.conky下面有个weather.sh吗?里面的内容是什么?

还有如图所示,我的网络流量总是没有显示……不晓得怎么回事……


Reply View the author
ghostry
deepin
2016-01-05 12:33
#29
https://bbs.deepin.org/post/35029
用中国天气通的api不知道行不行

应该行吧,道理是一样的。
Reply View the author
kingskill
deepin
2016-01-05 12:38
#30
我的conky中,但凡涉及到网络流量的组件,总是不显示。。。不晓得什么道理?
Reply View the author
ghostry
deepin
2016-01-05 12:38
#31
https://bbs.deepin.org/post/35029
我这边天气总是弄不好,是在/.conky下面有个weather.sh吗?里面的内容是什么?

还有如图所示,我的网络流 ...

先更新一下。3天前有更新。字体加了一些符号。
weather.sh里边有个地区码要改成你自己的。看目录下的readme
流量没提示应该是网卡名称的问题,
用ip addr看看网卡名称,然后把monitor里边的eth0改成你的网卡名称。
Reply View the author
zqpetlee
deepin
2016-01-05 12:50
#32
https://bbs.deepin.org/post/35029
应该行吧,道理是一样的。

估计得去修改天气插件,本人对代码很敏感见了就头疼……
Reply View the author
ghostry
deepin
2016-01-05 12:57
#33
https://bbs.deepin.org/post/35029
估计得去修改天气插件,本人对代码很敏感见了就头疼……



那就不能了。改这个肯定要改代码的。
Reply View the author
zqpetlee
deepin
2016-01-05 12:58
#34
https://bbs.deepin.org/post/35029
那就不能了。改这个肯定要改代码的。

bash: git: 未找到命令
神马鬼
Reply View the author
kingskill
deepin
2016-01-05 13:05
#35
https://bbs.deepin.org/post/35029
先更新一下。3天前有更新。字体加了一些符号。
weather.sh里边有个地区码要改成你自己的。看目录下的read ...

哇塞网络问题解决了。。。困扰好久。。。谢谢谢谢

不过天气还是没看懂。比如我是魔都的,编号我也查到了:CHXX0116,但是,有两个weather.sh,一个在./conky,一个在./conky/Ghostry_Conky,改哪个?
Reply View the author
kingskill
deepin
2016-01-05 13:08
#36
https://bbs.deepin.org/post/35029
bash: git: 未找到命令
神马鬼

要安装一下git。
Reply View the author
zqpetlee
deepin
2016-01-05 13:09
#37
https://bbs.deepin.org/post/35029
要安装一下git。

我了个去
Reply View the author
ghostry
deepin
2016-01-05 13:11
#38
https://bbs.deepin.org/post/35029
bash: git: 未找到命令
神马鬼

哦,那你重新下载下文件包。
Reply View the author
ghostry
deepin
2016-01-05 13:12
#39
https://bbs.deepin.org/post/35029
哇塞网络问题解决了。。。困扰好久。。。谢谢谢谢

不过天气还是没看懂。比如我是魔都的,编号我也查到 ...



怎么会有两个,我的只有一个,在Ghostry_Conky目录下。
Reply View the author
zqpetlee
deepin
2016-01-05 13:12
#40
https://bbs.deepin.org/post/35029
哦,那你重新下载下文件包。

这玩意确实很折腾人
Reply View the author
2 / 5
To page
New Thread

Popular Events

More
国际排名
WHLUG