Advertisement
Guest User

Untitled

a guest
Apr 20th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.24 KB | None | 0 0
  1. #========================================================================
  2. use_xft yes
  3. xftfont 123:size=9
  4. xftalpha 0.1
  5. text_buffer_size 2048
  6.  
  7. # Update interval in seconds
  8. update_interval 1
  9.  
  10. # This is the number of times Conky will update before quitting.
  11. # Set to zero to run forever.
  12. total_run_times 0
  13.  
  14. # Create own window instead of using desktop (required in thunar)
  15. own_window yes
  16. own_window_type normal
  17. own_window_transparent yes
  18. own_window_argb_visual yes
  19. #When ARGB visuals are enabled, use this to modify the alpha value used.
  20. #Valid range is 0-255, where 0 (zero) is 0% opacity, and 255 is 100% opacity.
  21. own_window_argb_value 0
  22. #own_window_type panel
  23. #own_window_type desktop
  24. own_window_hints undecorated,sticky,below,skip_taskbar,skip_pager
  25. # Use double buffering (reduces flicker, may not work for everyone)
  26. double_buffer yes
  27.  
  28. # Minimum size of text area
  29. minimum_size 300 300
  30. maximum_width 300
  31.  
  32. # Draw shades?
  33. draw_shades no
  34.  
  35. # Draw outlines?
  36. draw_outline no
  37.  
  38. # Draw borders around text
  39. draw_borders no
  40.  
  41. # Stippled borders?
  42. stippled_borders 0
  43.  
  44. # border margins
  45. #border_margins 5
  46.  
  47. # border width
  48. border_width 1
  49.  
  50. # Default colors and also border colors
  51. default_color 0A960F
  52. default_shade_color 0A960F
  53. default_outline_color 0A960F
  54. own_window_colour 000000
  55. #default_color d8d8d8
  56. color1 0998ED
  57. color2 C37D0E
  58. color3 0EB3C3
  59.  
  60. # Text alignment, other possible values are commented
  61. #alignment top_left
  62. #alignment top_right
  63. #alignment bottom_left
  64. alignment top_right
  65.  
  66. # Gap between borders of screen and text
  67. # same thing as passing -x at command line
  68. gap_x 5
  69. gap_y 0
  70.  
  71. # Subtract file system buffers from used memory?
  72. no_buffers yes
  73.  
  74. # set to yes if you want all text to be in uppercase
  75. uppercase no
  76.  
  77. # number of cpu samples to average
  78. # set to 1 to disable averaging
  79. cpu_avg_samples 1
  80.  
  81. # number of net samples to average
  82. # set to 1 to disable averaging
  83. net_avg_samples 1
  84.  
  85. # Force UTF8? note that UTF8 support required XFT
  86. override_utf8_locale yes
  87.  
  88. # Add spaces to keep things from moving about? This only affects certain objects.
  89. use_spacer none
  90.  
  91. background yes
  92.  
  93. TEXT
  94. #${alignr}${font Ubuntu:pixelsize=26}Pulpit ${desktop}${font}
  95. ##########
  96. # SYSTEM
  97. ##########
  98. ${voffset -15}${image /home/robson/.conky/Logo.png -p 0,0 -s 35x35}${image /home/robson/.conky/Logo.png -p 263,0 -s 35x35}
  99. ${color3}${font Roboto Black:size=20}$alignc${time %H:%M:%S}
  100. ${voffset -15}${font Roboto Black:size=14}$alignc${time %A} ${time %d} ${time %B} ${time %Y}
  101. ${color1}${voffset -12}${font Roboto Black:size=9}${scroll 42 2 ${execi 1200 whoami}@${nodename}-$sysname $kernel $machine (17.1.8-Hakoila)}
  102. ${voffset 0}${font Roboto Black:size=10}${color2}SYSTEM $color$font Manjaro Xfce ${execi 10000 awk -F'=' '/DISTRIB_RELEASE=/ {printf $2" "} /CODENAME/ {print $2}' /etc/lsb-release}
  103. ${voffset -3}${font :Bold:size=10}$sysname kernel: $font$kernel$alignr$machine
  104. ${voffset -3}${font :Bold:size=10}Czas działania: $font$alignr$uptime
  105. #GPU Temperature $alignr${execi 30 sensors | grep 'temp1:' | cut -c16-19}°C
  106. ${voffset -3}${font :Bold:size=10}Pakiety do aktualizacji: $font${alignr 8}${color2}${execpi 80 checkupdates | wc -l}${color}
  107. ${voffset -3}${font :Bold:size=10}Pakiety zainstalowane: $font$alignr${execi 20 pacman -Q | wc -l}
  108. ${voffset -3}${font :Bold:size=10}Ostatnia aktualizacja: $font$alignr${execi 20 grep "starting full system upgrade" /var/log/pacman.log | tail -n1| cut --bytes=2-17}
  109. ##########
  110. # CPU
  111. ##########
  112. ${voffset -3}${font Roboto Black:size=10}${color2}CPU${color}${font} AMD Athlon 64 X2 4200+ @ ${freq_g cpu0}GHz ${hwmon 2 temp 1}${color0}°C
  113. #Core 1 - ${execi 2 sensors | grep 'Core 1' | cut -c17-20}°C ${alignc 60}${cpubar cpu1}${color}
  114. #Core 2 - ${execi 2 sensors | grep 'Core 2' | cut -c17-20}°C ${alignc 60}${cpubar cpu2}${color}
  115. ${alignc 30}${voffset -5}${cpugraph 1 20,148 0000ff 00ff00 -t}${alignr}${cpugraph 2 20,148 0000ff 00ff00 -t}
  116. ${color0}${alignc 50}${voffset -10}${cpubar cpu1 5,148} ${alignr}${cpubar cpu2 5,148}
  117. ${alignc 30}${voffset -5}${color}${font :Bold:size=10}Core 1 $font${cpu cpu1}% ${alignr 30}${font :Bold:size=10}Core 2 $font${cpu cpu2}%
  118. ####################
  119. ${font Roboto Black:size=10}${color2}USAGE${font Roboto Black:size=10}${color2}${alignr 48}RAM${color2}${alignr 18}${font Roboto Black:size=10}CPU
  120. ${font :Bold:size=10}${color1}${top name 1}${voffset -3}$font$alignr${top cpu 1} %
  121. ${voffset -16}$alignr${voffset 2}${offset -60}${top mem 1} %
  122. ${font :Bold:size=10}${top name 2}${voffset -3}$font$alignr${top cpu 2} %
  123. ${voffset -16}$alignr${voffset 2}${offset -60}${top mem 2} %
  124. ${font :Bold:size=10}${top name 3}${voffset -3}$font$alignr${top cpu 3} %
  125. ${voffset -16}$alignr${voffset 2}${offset -60}${top mem 3} %
  126. ${font :Bold:size=10}${top name 4}${voffset -3}$font$alignr${top cpu 4} %
  127. ${voffset -16}$alignr${voffset 2}${offset -60}${top mem 4} %
  128. ${font :Bold:size=10}${top name 5}${voffset -3}$font$alignr${top cpu 5} %
  129. ${voffset -16}$alignr${voffset 2}${offset -60}${top mem 5} %
  130. ${font :Bold:size=10}${top name 6}${voffset -3}$font$alignr${top cpu 6} %
  131. ${voffset -16}$alignr${voffset 2}${offset -60}${top mem 6} %
  132. ##########
  133. # MEMORY
  134. ##########
  135. ${voffset 0}${font Roboto Black:size=10}${color2}MEMORY $font${color}$memperc% ${color0}${membar 5}
  136. ${voffset -10}${color}$hr
  137. ${color}${font :Bold:size=10}${voffset -5}Used: $font$mem of $memmax$alignr${font :Bold:size=10}${voffset -1}Free: $font$memeasyfree$alignr
  138. ${font :Bold:size=10}${voffset -1}Buffer: $font$buffers$alignr${font :Bold:size=10}${voffset -1}Cache: $font$cached$alignr
  139. ${voffset -15}${color}${voffset 5}$hr
  140. ${font :Bold:size=10}${color1}${top_mem name 1}$font$alignr${top_mem mem_res 1}
  141. ${voffset -17}${alignr}
  142. ${font :Bold:size=10}${top_mem name 2}$font$alignr${top_mem mem_res 2}
  143. ${voffset -17}${alignr}
  144. ${font :Bold:size=10}${top_mem name 3}$font$alignr${top_mem mem_res 3}
  145. ${voffset -17}${alignr}
  146. ${font :Bold:size=10}${top_mem name 4}$font$alignr${top_mem mem_res 4}
  147. ${voffset -17}${alignr}
  148. ${font :Bold:size=10}${top_mem name 5}$font$alignr${top_mem mem_res 5}
  149. ${voffset -17}${alignr}
  150. ${font :Bold:size=10}${top_mem name 6}$font$alignr${top_mem mem_res 6}
  151. ${voffset -17}${alignr}
  152. ##########
  153. # HDD
  154. ##########
  155. ${voffset 0}${font Roboto Black:size=10}${color2}DISC ${color}$font sda: ${execi 3600 cat /sys/block/sda/device/model || echo "none"} ${if_match "${hddtemp /dev/sda}"<="40" }${color 0A960F}$else${if_match "${hddtemp /dev/sda}"<="50" }${color orange}$else${color red}${font :Bold:size=10}UWAGA! $endif$endif${hddtemp /dev/sda}${color0}°C ${voffset 0}${alignr}${diskiograph /dev/sda 8,60 F57900 FCAF3E}
  156. #home
  157. ${color}${voffset -2}${font :Bold:size=10}Home used(${fs_type /}): $font${fs_used /} of ${fs_size /} ${color} ${fs_used_perc /} % ${color0}
  158. $color${voffset -2}${font :Bold:size=10}write: $font${diskio_write /dev/sda}${alignc}${font :Bold:size=10}read: $font${diskio_read /dev/sda}
  159. #swap
  160. ${voffset -2}${font :Bold:size=10}Swap used: $font$swap of $swapmax ${color}$alignr$swapperc% ${color0}${swapbar 7,80}
  161. ##########
  162. # NETWORK
  163. ##########
  164. ${voffset 0}${font Roboto Black:size=10}${color2}NETWORK ${execpi 4 echo "\${font}\${color}(ping: \${font Roboto Black:size=10}\${color #66aaff}$(ping -W 1 -c 1 8.8.8.8 -q | grep rtt | egrep [0-9]+\.[0-9]+ -o | head -n 2 | tail -n 1)\${font}\${color} ms"})
  165. ${voffset -4}${color1}${font Roboto Black:size=10}External IP ${font}${alignr}${execi 10600 curl -s www.icanhazip.com}
  166. #####################
  167. #Wykrywanie karty sieciowej
  168. ${voffset 2}${color}Network connected $hr
  169. ${if_existing /proc/net/route enp0s2f1u3}
  170. ${voffset -28}${font}${alignr}
  171. ${color}↓Pobrane: ${downspeedf enp0s2f1u3} Kb/s $alignr${totaldown enp0s2f1u3}
  172. ${voffset -14}${alignc -40}${color0}${downspeedgraph enp0s2f1u3 8,90 000000 aaddff}
  173. ${color}↑Wysłane: ${upspeedf enp0s2f1u3} Kb/s $alignr${totalup enp0s2f1u3}
  174. ${voffset -14}${alignc -40}${color0}${upspeedgraph enp0s2f1u3 8,90 000000 aaddff}
  175. #
  176. ${else}${if_existing /proc/net/route enp0s2f1u3}
  177. #
  178. ${voffset -28}${font}${alignr}
  179. ${color}↓Pobrane: ${downspeedf enp0s2f1u3} Kb/s $alignr${totaldown enp0s2f1u3}
  180. ${voffset -14}${alignc -40}${color0}${downspeedgraph enp0s2f1u3 8,90 000000 66aaff}
  181. ${color}↑Wysłane: ${upspeedf enp0s2f1u3} Kb/s $alignr${totalup enp0s2f1u3}
  182. ${voffset -14}${alignc -40}${color0}${upspeedgraph enp0s2f1u3 8,90 000000 aaddff}
  183. #
  184. ${else}${if_existing /proc/net/route enp0s2f1u3}
  185. #
  186. ${voffset -28}${font}${alignr}
  187. ${color}↓Pobrane: ${downspeedf enp0s2f1u3} Kb/s $alignr${totaldown enp0s2f1u3}
  188. ${voffset -14}${alignc -40}${color0}${downspeedgraph enp0s2f1u3 8,90 000000 66aaff}
  189. ${color}↑Wysłane: ${upspeedf enp0s2f1u3} Kb/s $alignr${totalup enp0s2f1u3}
  190. ${voffset -14}${alignc -40}${color0}${upspeedgraph enp0s2f1u3 8,90 000000 aaddff}
  191. ${endif}${endif}${endif}
  192. #Koniec wykrywania karty sieciowej
  193. ${voffset -15}${color0}Outbound:${color}${tcp_portmon 1 65535 count} ${alignc}${color0} Inbound:${color}${tcp_portmon 1 32767 count} ${alignr}${color0}Remote Service/Port:${color}${tcp_portmon 32768 61000 count}
  194. ${tcp_portmon 1 65535 rhost 0} $alignr${tcp_portmon 1 65535 rservice 0}
  195. ${tcp_portmon 1 65535 rhost 1} $alignr${tcp_portmon 1 65535 rservice 1}
  196. ${tcp_portmon 1 65535 rhost 2} $alignr${tcp_portmon 1 65535 rservice 2}
  197. ${tcp_portmon 1 65535 rhost 3} $alignr${tcp_portmon 1 65535 rservice 3}
  198. ${tcp_portmon 1 65535 rhost 4} $alignr${tcp_portmon 1 65535 rservice 4}
  199. ${tcp_portmon 1 65535 rhost 5} $alignr${tcp_portmon 1 65535 rservice 5}
  200. #########################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement