Advertisement
Guest User

Untitled

a guest
Apr 4th, 2016
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.15 KB | None | 0 0
  1. conky.config = {
  2.  
  3.  
  4. own_window = true,
  5. own_window_type = 'normal',
  6. own_window_transparent = true,
  7. own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
  8. own_window_argb_visual = true,
  9. own_window_argb_value = 255,
  10. double_buffer = true,
  11.  
  12. gap_x = 2570,
  13. gap_y = 10,
  14. minimum_height = 5,
  15. minimum_width = 400,
  16. maximum_width = 400,
  17.  
  18. cpu_avg_samples = 2,
  19.  
  20. alignment = 'top_left',
  21. border_width = 1,
  22. draw_borders = false,
  23. draw_graph_borders = true,
  24. draw_outline = true,
  25. draw_shades = true,
  26. use_xft = true,
  27. net_avg_samples = 2,
  28. no_buffers = true,
  29. out_to_console = false,
  30. out_to_stderr = false,
  31. extra_newline = false,
  32. stippled_borders = 0,
  33. update_interval = 2.0,
  34. uppercase = false,
  35. use_spacer = 'left',
  36. show_graph_scale = false,
  37. show_graph_range = false,
  38. pad_percents = 3,
  39.  
  40. if_up_strictness = 'link',
  41.  
  42. font = 'Droid Sans Mono:size=12',
  43. background = false,
  44. --- Colors
  45. default_color = 'pink', --- Don't use
  46. default_outline_color = 'black',
  47. default_shade_color = 'red',
  48.  
  49. color1 = 'f0501b', -- Orange
  50. color2 = '4cd200', -- Green
  51. color3 = 'darkgrey',
  52. color4 = 'white',
  53.  
  54. color5 = "0b1208",
  55. color6 = "77B753",
  56.  
  57. --- Header 1 / Seperator
  58. ---template0 = '${font Droid Sans Mono:size=14,weight:bold}${color1}',
  59. template0 = '${font Ubuntu:size=17,weight:bold}${color1}',
  60. template1 = ' ${hr 3}${template2}',
  61.  
  62. --- Header 2
  63. ---template2 = '${offset 7}${font Droid Sans Mono:size=13:weight:bold}${color2}',
  64. template2 = '${offset 7}${font Ubuntu:size=15,weight:bold}${color2}',
  65.  
  66. --- Name (eg CPU, RAM, File Systems)
  67. ---template3 = '${offset 15}${font Droid Sans Mono:size=12:weight:bold}${color3}',
  68. template3 = '${offset 15}${font Ubuntu Mono:size=14,weight:bold}${color3}',
  69.  
  70. --- Normal text
  71. ---template4 = '${font Droid Sans Mono:size=12,weight=normal}${color4}${alignr}',
  72. template4 = '${font Ubuntu Mono:size=14}${color4}${alignr}',
  73.  
  74. --- Graph colors
  75. template9 = '$color5 $color6'
  76. }
  77.  
  78.  
  79. conky.text = [[
  80. ${template0}System Info${template1}
  81. ${template3}Hostname:${template4}$nodename
  82. ${template3}Kernel:${template4}$sysname $kernel
  83. ${template3}Clock:${template4}${time %H:%M.%S %Y/%m/%d}
  84. ${template3}Uptime:${template4}$uptime
  85.  
  86. ${template0}GPU${template1}
  87. ${template2}Nvidia GTX 780 Ti ${template4}${if_match ${nvidia temp} > 70}${color red}${endif}${nvidia temp}°C
  88. ${template3}Core:${template4}${nvidia gpufreq}MHz ${template3} Mem:${template4}${nvidia memfreq}MHz
  89.  
  90. ${template0}CPU${template1}
  91. ${template2}Intel Core i7-4790 ${template4}${if_match ${acpitemp} > 75}${color red}${endif}${acpitemp}°C${template3}
  92. ${template3}Load: ${template4}${if_match ${cpu} > 80 }${color red}${endif}$cpu% @${template4}${freq}MHz
  93. ${template4}${cpugraph cpu0 40,380 0b1208 77B753}
  94. ${template3}Cpu1 ${template4}${if_match ${cpu cpu1} > 80 }${color red}${endif}${cpu cpu1}%${cpugraph cpu1 15,90 0b1208 77B753} ${template3}Cpu2 ${template4}${if_match ${cpu cpu2} > 80 }${color red}${endif}${cpu cpu2}%${cpugraph cpu2 15,90 0b1208 77B753}
  95. ${template3}Cpu3 ${template4}${if_match ${cpu cpu3} > 80 }${color red}${endif}${cpu cpu3}%${cpugraph cpu3 15,90 0b1208 77B753} ${template3}Cpu4 ${template4}${if_match ${cpu cpu4} > 80 }${color red}${endif}${cpu cpu4}%${cpugraph cpu4 15,90 0b1208 77B753}
  96. ${template3}Cpu5 ${template4}${if_match ${cpu cpu5} > 80 }${color red}${endif}${cpu cpu5}%${cpugraph cpu5 15,90 0b1208 77B753} ${template3}Cpu6 ${template4}${if_match ${cpu cpu6} > 80 }${color red}${endif}${cpu cpu6}%${cpugraph cpu6 15,90 0b1208 77B753}
  97. ${template3}Cpu7 ${template4}${if_match ${cpu cpu7} > 80 }${color red}${endif}${cpu cpu7}%${cpugraph cpu7 15,90 0b1208 77B753} ${template3}Cpu8 ${template4}${if_match ${cpu cpu8} > 80 }${color red}${endif}${cpu cpu8}%${cpugraph cpu8 15,90 0b1208 77B753}
  98. ${template2}Top CPU Processes
  99. ${template3}Running / Total:${template4} $running_processes / $processes
  100. ${template3}Name PID CPU% MEM%
  101. ${template4} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
  102. ${template4} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
  103. ${template4} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
  104. ${template4} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
  105.  
  106. ${template0}RAM${template1}
  107. ${template2}Usage
  108. ${template3}RAM: ${color4} ${if_match ${memperc} > 80 }${color red}${endif}$mem/$memmax - $memperc%${membar 6}
  109. ${template3}Swap: ${color4} ${if_match ${swapperc} > 80 }${color red}${endif}$swap/$swapmax - $swapperc%${swapbar 6}
  110. ${template2}Top RAM Processes
  111. ${template3}Name PID CPU% MEM%
  112. ${template4} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
  113. ${template4} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
  114. ${template4} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
  115. ${template4} ${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
  116.  
  117. ${template0}File System${template1}
  118. ${template2}Usage
  119. ${template3}Root:${template4}${if_match ${fs_used_perc /} > 80 }${color red}${endif}${fs_used /}/${fs_size /} -${fs_used_perc /}% ${fs_bar 6,100 /}
  120. ${template3}Read: ${template4}${diskio_read /dev/sda}/s${template3}Write:${template4} ${diskio_write}/s
  121. ${template4}${alignr 10}${diskiograph_read /dev/sda 35,185 0b1208 77B753} ${diskiograph_write /dev/sda 35,185 0b1208 77B753}
  122. ${template2}Top FS Processes
  123. ${template3}Name PID R/s W/s
  124. ${template4} ${top_io name 1} ${top_io pid 1} ${top_io io_read 1} ${top_io io_write 1}
  125. ${template4} ${top_io name 2} ${top_io pid 2} ${top_io io_read 2} ${top_io io_write 2}
  126. ${template4} ${top_io name 3} ${top_io pid 3} ${top_io io_read 3} ${top_io io_write 3}
  127. ${template4} ${top_io name 4} ${top_io pid 4} ${top_io io_read 4} ${top_io io_write 4}
  128.  
  129. ${template0}Network${template1}
  130. ${template3}Default Gateway:${template4}${gw_ip} via ${gw_iface}${if_up enp0s25}
  131. ${template2}enp0s25
  132. ${template3}IP Address${template4}${addrs enp0s25}
  133. ${template3}Download Speed:${template4}${downspeed enp0s25}/s ${template3}Total:${template4} ${totaldown enp0s25}
  134. ${template4}${downspeedgraph enp0s25 35,380 0b1208 77B753}
  135. ${template3}Upload Speed:${template4}${upspeed enp0s25}/s ${template3}Total:${template4} ${totalup enp0s25}
  136. ${template4}${upspeedgraph enp0s25 35,380 0b1208 77B753}${endif}${if_up enp3s0}
  137. ${template2}enp3s0
  138. ${template3}IP Address${template4}${addrs enp3s0}
  139. ${template3}Download Speed:${template4}${downspeed enp3s0}/s ${template3}Total:${template4} ${totaldown enp3s0}
  140. ${template4}${downspeedgraph enp3s0 35,380 0b1208 77B753}
  141. ${template3}Upload Speed:${template4}${upspeed enp3s0}/s ${template3}Total:${template4} ${totalup enp3s0}
  142. ${template4}${upspeedgraph enp3s0 35,380 0b1208 77B753}${endif}${if_up tun0}
  143. ${template2}tun0
  144. ${template3}IP Address${template4}${addrs tun0}
  145. ${template3}Download Speed:${template4}${downspeed tun0}/s ${template3}Total:${template4} ${totaldown tun0}
  146. ${template4}${downspeedgraph tun0 35,380 0b1208 77B753}
  147. ${template3}Upload Speed:${template4}${upspeed tun0}/s ${template3}Total:${template4} ${totalup tun0}
  148. ${template4}${upspeedgraph tun0 35,380 0b1208 77B753}${endif}
  149. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement