Advertisement
Guest User

Untitled

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