我也来晒下桌面
Tofloor
poster avatar
李逍遥mx
deepin
2017-12-14 06:01
Author
本帖最后由 lrbmfx 于 2017-12-14 15:05 编辑

无聊看参考做了个conky脚本,晒一下


2017-12-14 今天又做了一些小的修改:
1)增加了磁盘读写速度的监控
2)修改了Top进程的数量和缩进
3)掰开了网络监视和磁盘监视进度框


直接贴代码吧


  1. background yes
  2. double_buffer yes

  3. alignment top_right

  4. border_width 1
  5. cpu_avg_samples 2
  6. default_color white
  7. default_outline_color white
  8. default_shade_color white
  9. draw_borders no
  10. draw_graph_borders yes
  11. draw_outline no
  12. draw_shades no

  13. gap_x 0
  14. gap_y 0
  15. net_avg_samples 2
  16. no_buffers yes
  17. out_to_console no
  18. out_to_stderr no
  19. extra_newline no

  20. own_window yes
  21. own_window_type normal
  22. own_window_transparent no
  23. own_window_colour 000000
  24. own_window_argb_visual yes
  25. own_window_argb_value 128
  26. own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

  27. minimum_size 300 230
  28. stippled_borders 0
  29. update_interval 1
  30. uppercase no
  31. use_spacer none

  32. show_graph_scale no
  33. show_graph_range no

  34. use_xft yes
  35. xftalpha 0.1
  36. xftfont Noto Sans CJK SC:size=10:style=Bold
  37. color0 white
  38. color1 EAEAEA
  39. color2 FFA300
  40. color3 grey

  41. TEXT
  42. ${color2}系统信息 System Info${font Noto Sans CJK SC:pixelsize=10}${alignr}Local Addr:${color0}${addr wlo1}
  43. ${color1}${stippled_hr}
  44. ${color2}系统版本:${color1}$sysname $kernel
  45. ${color2}电脑名称:${color1}$nodename
  46. ${color2}运行时长:${color1}${uptime}${alignc}${font Noto Sans CJK SC:pixelsize=12}
  47. ${stippled_hr}
  48. ${color2}${font Noto Sans CJK SC:size=10:style=Bold}处理器 CPU ${color0} ${cpu cpu0}%  ${color3}${font Ubuntu:size=10:style=Bold}${cpubar cpu0 8}
  49. ${cpugraph cpu0 50,300}${voffset -19}${font Noto Sans CJK SC:pixelsize=12}
  50. ${cpugraph cpu1 50,150}${cpugraph cpu2 50,150}${voffset -19}
  51. ${cpugraph cpu3 50,150}${cpugraph cpu4 50,150}
  52. ${font Ubuntu:size=8}${voffset -110}${color2}${goto 10}Core1 ${goto 160}Core2 ${goto 0} ${voffset 50} ${goto 10}Core3 ${goto 160}Core4
  53. ${font Ubuntu:size=8}${voffset -63}${color2}${goto 108}${freq_g (1)}GHz ${goto 258}${freq_g (2)}GHz ${goto 0}${voffset 50}${goto 108}${freq_g (3)}GHz ${goto 258}${freq_g (4)}GHz
  54. ${font Ubuntu:size=8}${voffset -110}${color2}${goto 10}Core All
  55. ${voffset 135}${font Noto Sans CJK SC:pixelsize=12}${color2}CPU Top 5:${color}${font Noto Sans CJK SC:pixelsize=10}
  56.     ${top name 1} ${alignr}${top cpu 1}
  57.     ${top name 2} ${alignr}${top cpu 2}
  58.     ${top name 3} ${alignr}${top cpu 3}
  59.     ${top name 4} ${alignr}${top cpu 4}
  60.     ${top name 5} ${alignr}${top cpu 5}
  61. ${color1}${stippled_hr}
  62. ${color2}${font Noto Sans CJK SC:size=10:style=Bold}内存 RAM ${color0} ${memperc}%  ${color3}${font Ubuntu:size=10:style=Bold} ${membar 8}
  63. ${memgraph 30,300}${font Noto Sans CJK SC:pixelsize=12}
  64. ${color2}RAM Top 3:${color}${font Noto Sans CJK SC:pixelsize=10}
  65.     ${top_mem name 1} $alignr ${top_mem mem_res 1}
  66.     ${top_mem name 2} $alignr ${top_mem mem_res 2}
  67.     ${top_mem name 3} $alignr ${top_mem mem_res 3}${font Noto Sans CJK SC:pixelsize=12}
  68. ${color1}${stippled_hr}
  69. ${font Noto Sans CJK SC:style=Bold:size=10}${color2}磁盘 I/O${color}${font Noto Sans CJK SC:pixelsize=10}
  70. 写: $diskio_write${alignr}读: $diskio_read
  71. ${diskiograph_write 30,149}${alignr}${diskiograph_read 30,149}
  72. ${color1}${stippled_hr}
  73. ${font Noto Sans CJK SC:style=Bold:size=10}${color2}网络 Net${color}
  74. ${font Noto Sans CJK SC:pixelsize=10}下载速度:${downspeed wlo1} k/s${alignr}上传速度:${upspeed wlo1} k/s
  75. ${downspeedgraph wlo1 30,149}${alignr}${upspeedgraph wlo1 30,149}
  76. #后面空几行是让面板高度填满桌面高度,具体几行自己修改









Copy the Code
Reply Favorite View the author
All Replies
avatar
李逍遥mx
deepin
2017-12-14 06:27
#1
想要这个脚本的请留言
Reply View the author
avatar
1***2@qq.com
deepin
2017-12-14 06:33
#2
想要这个脚本~
Reply View the author
avatar
李逍遥mx
deepin
2017-12-14 06:41
#3

myconky.tar.gz
拿去,不谢!
Reply View the author
avatar
zlw12345
deepin
2017-12-14 13:04
#4
老铁 我推荐 Conky-Harmattan 在GitHub上有
Reply View the author
avatar
卷毛龙
deepin
2017-12-14 15:59
#5
老铁,你右下角的关机按钮怎么不见了?

哇塞,四核心CPU啊,厉害,我两核的,哇哈哈。
Reply View the author
avatar
李逍遥mx
deepin
2017-12-14 18:36
#6
https://bbs.deepin.org/post/150147
老铁,你右下角的关机按钮怎么不见了?

哇塞,四核心CPU啊,厉害,我两核的,哇哈哈。 ...

老铁Conky-Harmattan这个我不会用
右下角的关机按钮我隐藏了,右键单击任务栏在插件里可以去掉,然后把启动器换成迷你的,
那里会自己带有关机按钮的。
最后我的CPU是I5,这U不是4核心,是4线程...
Reply View the author
avatar
李逍遥mx
deepin
2017-12-14 23:10
#7
直接贴代码了,需要的直接复制粘贴吧。
Reply View the author