来分享一下我的conky插件代码
Tofloor
poster avatar
a946488029
deepin
2016-07-01 21:29
Author
  1. default_color white
  2. double_buffer yes
  3. no_buffers yes
  4. update_interval 1.0
  5. total_run_times 0
  6. own_window yes
  7. own_window_type normal
  8. own_window_transparent yes
  9. own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

  10. own_window_colour 000000
  11. own_window_argb_visual yes
  12. own_window_argb_value 0

  13. double_buffer yes
  14. draw_shades yes
  15. draw_outline no
  16. draw_borders no
  17. draw_graph_borders n0
  18. minimum_size 296 5
  19. maximum_width 406
  20. default_color ffffff
  21. default_shade_color 000000
  22. default_outline_color 000000
  23. alignment top_right
  24. gap_x 6
  25. gap_y 30
  26. cpu_avg_samples 2
  27. override_utf8_locale no
  28. uppercase no # set to yes if you want all text to be in uppercase
  29. use_spacer no
  30. use_xft yes
  31. xftfont KaiTi:pixelsize=12
  32. override_utf8_locale yes
  33. use_spacer no
  34. minimum_size 296 5
  35. TEXT
  36. ${font KaiTi:pixelsize=50}${alignc}${time %H:%M:%S}
  37. ${font KaiTi:pixelsize=18}${time %Y年%b%d日 星期%a}${alignc}
  38. ${exec lunar | grep '干支' | cut -c13-21}${exec lunar | grep '阴历' | cut -c21-36}
  39. ${font KaiTi:pixelsize=13}
  40. ${color #98c2c7}主机名: ${color}$alignr$nodename
  41. ${color #98c2c7}内核:  ${color}$alignr$kernel
  42. ${color #98c2c7}已开机: ${color}$alignr$uptime

  43. 处理器1温度: ${exec sensors | grep 'Core 0' | cut -c17-24}$alignr 处理器2温度: ${exec sensors | grep 'Core 1' | cut -c17-24}
  44. 处理器3温度: ${exec sensors | grep 'Core 2' | cut -c17-24}$alignr 处理器4温度: ${exec sensors | grep 'Core 3' | cut -c17-24}

  45. ${color #98c2c7}处理器使用率: ${color}$cpu%
  46. $cpubar

  47. ${color #98c2c7}处理器占用:${color}${if_match ${top cpu 1}>10}${color #960000}警告:有进程正占用大量处理器资源${color}${endif}
  48. ${top name 1} ${alignr}${top cpu 1}%
  49. ${top name 2} ${alignr}${top cpu 2}%
  50. ${top name 3} ${alignr}${top cpu 3}%
  51. ${top name 4} ${alignr}${top cpu 4}%
  52. ${top name 5} ${alignr}${top cpu 5}%
  53. ${top name 6} ${alignr}${top cpu 6}%

  54. ${color #98c2c7}物理内存:${color}${alignr}$mem / $memmax
  55. ${membar}

  56. ${color #98c2c7}根分区: ${color}${alignr}${fs_free /} / ${fs_size /}
  57. ${fs_bar 4 /}

  58. ${if_match "${fs_size /}"!="${fs_size /mnt/程序}"}${color #98c2c7}数据: ${color}${alignr}${fs_free /mnt/程序} / ${fs_size /mnt/程序}
  59. ${fs_bar 4 /mnt/程序}
  60. ${endif}
  61. ${color #98c2c7}网络状况:${color}

  62. -有线网络-${if_match "${exec ifconfig|grep "enp5s0"|cut -c33-39}"!="RUNNING"}未连接${else}
  63.         下载速度:$alignr${downspeed enp5s0}/s
  64.         上传速度:$alignr${upspeed enp5s0}/s
  65. ${downspeedgraph enp5s0 324D23 77B753}${endif}
  66. -无线网络-${if_match "${exec ifconfig|grep "wlp4s0"|cut -c33-39}"!="RUNNING"}未连接${else}
  67.         下载速度:$alignr${downspeed wlp4s0}/s
  68.         上传速度:$alignr${upspeed wlp4s0}/s
  69. ${downspeedgraph wlp4s0 32FD23 77F753}${endif}

  70. -本地共享-${if_match "${exec ifconfig|grep "ap0"|cut -c30-36}"!="RUNNING"}未连接${else}
  71.         下载速度:$alignr${downspeed ap0}/s
  72.         上传速度:$alignr${upspeed ap0}/s
  73. ${downspeedgraph ap0 32FD23 77F753}${endif}

  74. ${color}剩余电量:${color}${battery_percent BAT0}%${alignr}剩余时间:${if_match "${acpiacadapter}"=="on-line"}(外接电源)${else}${battery_time BAT0}${endif}
  75. ${if_match ${battery_percent BAT0}>75}${color}${else}${if_match ${battery_percent BAT0}<20}${color #960000}${else}${color #969600}${endif}${endif}${battery_bar BAT0}
  76. ${color}

  77. ${font KaiTi:pixelsize=50}${alignc}本人姓名不留
  78. ${font KaiTi:pixelsize=20}  善死修生者己,智利供用以人
Copy the Code
用论坛某位的代码自己改的,农历需要lunar支持,字体改成了楷体,自己找哦!

欢迎各位指正,电量由于系统原因无法正确显示。主板温度无法查询
Reply Favorite View the author
All Replies
avatar
152******14
deepin
2016-07-02 16:17
#1
试试去,谢谢楼主!
Reply View the author
avatar
zwq133
deepin
2016-07-02 17:48
#2
拿走不谢!!
Reply View the author
avatar
justforlxz
deepin
2016-07-02 17:54
#3
多谢分享
Reply View the author
avatar
MattD
deepin
2016-07-02 18:32
#4

虽然其实作为tiling wm来说,完全没必要用conky 2333

Reply View the author
avatar
a946488029
deepin
2016-07-02 18:43
#5
https://bbs.deepin.org/post/41086
虽然其实作为tiling wm来说,完全没必要用conky 2333

好黑,喜欢透明的,哈哈
Reply View the author
avatar
a946488029
deepin
2016-07-02 18:44
#6
https://bbs.deepin.org/post/41086
虽然其实作为tiling wm来说,完全没必要用conky 2333

你那个进程那里应该是用的pa aux跟grep吧
Reply View the author
avatar
v6i6v
deepin
2017-02-28 18:29
#7
win7安装的双系统,50G(6g,swap)用这个配置文件卡出翔了,,,
我再看看调整调整,谢谢分享
Reply View the author
avatar
185******04
deepin
2017-03-04 04:50
#8
https://bbs.deepin.org/post/41086
虽然其实作为tiling wm来说,完全没必要用conky 2333

大神 求配置文件?谢谢
Reply View the author