折腾了2小时。做了这么个玩意。
Tofloor
poster avatar
ghostry
deepin
2016-01-01 04:11
Author

Reply Favorite View the author
All Replies
4 / 5
To page
ghostry
deepin
2016-01-06 01:07
#61
https://bbs.deepin.org/post/35029
不晓得呀。。。怎么提权。。。

和bios中的acpi设置有关么?

{:4_89:}

其实我也不懂。这个是conky自带的东西。
Reply View the author
kingskill
deepin
2016-01-06 01:35
#62
https://bbs.deepin.org/post/35029
其实我也不懂。这个是conky自带的东西。

发现了件蛮诡异的事情,这个天气是怎么回事?明明应该是小雨啊~~
${exec ./weather.sh 1}$这句,如果是1的话,就是这样,





如果是0或者其他数字的话,永远是下雪的图形……

Reply View the author
ghostry
deepin
2016-01-06 02:18
#63
https://bbs.deepin.org/post/35029
发现了件蛮诡异的事情,这个天气是怎么回事?明明应该是小雨啊~~
${exec ./weather.sh 1}$这句,如果是1 ...

应该是出了个我数据库里没有的天气。没事,慢慢会补齐的。
Reply View the author
kingskill
deepin
2016-01-06 02:48
#64
https://bbs.deepin.org/post/35029
应该是出了个我数据库里没有的天气。没事,慢慢会补齐的。

Climacons.ttf里面有小雨的嘛。。。怎么不能显示呢。。。魔都是小雨,可现在显示的是多云……{:4_88:}
Reply View the author
ghostry
deepin
2016-01-06 02:52
#65
https://bbs.deepin.org/post/35029
Climacons.ttf里面有小雨的嘛。。。怎么不能显示呢。。。魔都是小雨,可现在显示的是多云…… ...

在weather.sh里边有个time+3600.意思是1小时更新一次。通过修改3600这个秒数,可以修改更新频率。
Reply View the author
kingskill
deepin
2016-01-06 18:39
#66
https://bbs.deepin.org/post/35029
在weather.sh里边有个time+3600.意思是1小时更新一次。通过修改3600这个秒数,可以修改更新频率。 ...

哦好的。。。回去试试~~
Reply View the author
WangZhongyun
deepin
2016-01-09 01:22
#67
https://bbs.deepin.org/post/35029
应该是出了个我数据库里没有的天气。没事,慢慢会补齐的。

天气里没显示地址,希望能补齐
Reply View the author
Comments
ghostry
2016-01-11 00:51
看83楼,自己写上就好了。
WangZhongyun
deepin
2016-01-09 01:40
#68
本帖最后由 WangZhongyun 于 2016-1-8 17:42 编辑



相差6度,不是问题出在哪里
Reply View the author
ghostry
deepin
2016-01-09 03:03
#69
https://bbs.deepin.org/post/35029
天气里没显示地址,希望能补齐

什么地址
Reply View the author
ghostry
deepin
2016-01-09 03:04
#70
https://bbs.deepin.org/post/35029
相差6度,不是问题出在哪里

估计是缓存
Reply View the author
young999888
deepin
2016-01-09 04:06
#71

我的不是中文,请教?
Reply View the author
WangZhongyun
deepin
2016-01-09 04:24
#72
地址看不到
Reply View the author
153******45
deepin
2016-01-09 04:33
#73
https://bbs.deepin.org/post/35029
我的不是中文,请教?

没几个单词
自己汉化一下拔
我的配置和这个不太一样
照着改改
  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
ochipedeepin
deepin
2016-01-10 17:24
#74
https://bbs.deepin.org/post/35029
彻底完成了:)

你好,你的今日流量,本月流量哪里是怎么做到的,,我这边哪里什么都不显示,好蛋疼啊
Reply View the author
ochipedeepin
deepin
2016-01-10 17:25
#75
https://bbs.deepin.org/post/35029
发现了件蛮诡异的事情,这个天气是怎么回事?明明应该是小雨啊~~
${exec ./weather.sh 1}$这句,如果是1 ...

你好,,,今日流量,本月流量哪里您是怎么做的,,我的这边什么都不显示,,求指点
Reply View the author
kingskill
deepin
2016-01-10 20:50
#76
https://bbs.deepin.org/post/35029
你好,,,今日流量,本月流量哪里您是怎么做的,,我的这边什么都不显示,,求指点 ...

我之前和你一样,没有网络的显示。

解决方案是认真看本帖35楼。
Reply View the author
kingskill
deepin
2016-01-10 21:38
#77

他的意思是显示本地地址。比如上海,南京。。。之类
Reply View the author
Comments
ghostry
2016-01-11 00:50
哦哦,自己写个就行了,看83楼
kingskill
deepin
2016-01-10 21:47
#78

老大,问一下,这是什么天气?这不会是月亮吧{:4_131:}

现在是下午。。。{:4_126:}


Reply View the author
Comments
ghostry
2016-01-11 00:49
这是小太阳,表示晴,阳光不是很强。
打击越
deepin
2016-01-10 23:21
#79
哈哈,我也弄了一下,蛮好看的
Reply View the author
kingskill
deepin
2016-01-11 00:55
#80
https://bbs.deepin.org/post/35029
哈哈,我也弄了一下,蛮好看的

地址代码怎么写的?
Reply View the author
4 / 5
To page