Advertisement
Guest User

Pplware - Conky

a guest
Nov 18th, 2012
861
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 12.83 KB | None | 0 0
  1. # set to yes if you want Conky to be forked in the background
  2. background no
  3.  
  4. cpu_avg_samples 2
  5. net_avg_samples 2
  6.  
  7. out_to_console no
  8.  
  9. # X font when Xft is disabled, you can pick one with program xfontsel
  10. #font 7x12
  11. #font 6x10
  12. #font 7x13
  13. #font 8x13
  14. #font 7x12
  15. #font *mintsmild.se*
  16. #font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
  17. #font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1
  18.  
  19. # Use Xft?
  20. use_xft yes
  21.  
  22. # Xft font when Xft is enabled
  23. xftfont Bitstream Vera Sans Mono:size=8
  24.  
  25. own_window_transparent no
  26. #own_window_colour hotpink
  27. # Text alpha when using Xft
  28. xftalpha 0.8
  29.  
  30. on_bottom yes
  31.  
  32. # mail spool
  33. mail_spool $MAIL
  34.  
  35. # Update interval in seconds
  36. update_interval 1
  37. # Create own window instead of using desktop (required in nautilus)
  38. own_window yes
  39. own_window_transparent yes
  40. own_window_hints undecorated,below,skip_taskbar
  41. own_window_type override
  42.  
  43. # Use double buffering (reduces flicker, may not work for everyone)
  44. double_buffer yes
  45.  
  46. # Minimum size of text area
  47. minimum_size 260 5
  48. maximum_width 260
  49.  
  50. # Draw shades?
  51. draw_shades no
  52.  
  53. # Draw outlines?
  54. draw_outline no
  55.  
  56. # Draw borders around text
  57. draw_borders no
  58.  
  59. # Stippled borders?
  60. stippled_borders no
  61.  
  62. # border margins
  63. border_margin 4
  64.  
  65. # border width
  66. border_width 1
  67.  
  68. # Default colors and also border colors
  69. default_color white
  70. default_shade_color white
  71. default_outline_color white
  72.  
  73. # Text alignment, other possible values are commented
  74. #alignment top_left
  75. #minimum_size 10 10
  76. gap_x 15
  77. gap_y 70
  78. alignment top_right
  79. #alignment bottom_left
  80. #alignment bottom_right
  81.  
  82. # Gap between borders of screen and text
  83.  
  84. # Add spaces to keep things from moving about?  This only affects certain objects.
  85. use_spacer no
  86.  
  87. # Subtract file system buffers from used memory?
  88. no_buffers yes
  89.  
  90. # set to yes if you want all text to be in uppercase
  91. uppercase no
  92.  
  93. # none, xmms, bmp, audacious, infopipe (default is none)
  94. xmms_player bmp
  95.  
  96. # boinc (seti) dir
  97. # seti_dir /opt/seti
  98.  
  99. # Possible variables to be used:
  100. #
  101. #      Variable         Arguments                  Description                
  102. #  acpiacadapter                     ACPI ac adapter state.                  
  103. #  acpifan                           ACPI fan state                          
  104. #  acpitemp                          ACPI temperature.                        
  105. #  adt746xcpu                        CPU temperature from therm_adt746x      
  106. #  adt746xfan                        Fan speed from therm_adt746x            
  107. #  battery           (num)           Remaining capasity in ACPI or APM        
  108. #                                    battery. ACPI battery number can be      
  109. #                                    given as argument (default is BAT0).    
  110. #  buffers                           Amount of memory buffered                
  111. #  cached                            Amount of memory cached                  
  112. #  color             (color)         Change drawing color to color            
  113. #  cpu                               CPU usage in percents                    
  114. #  cpubar            (height)        Bar that shows CPU usage, height is      
  115. #                                    bar's height in pixels                  
  116. #  downspeed         net             Download speed in kilobytes              
  117. #  downspeedf        net             Download speed in kilobytes with one    
  118. #                                    decimal                                  
  119. #  exec              shell command   Executes a shell command and displays    
  120. #                                    the output in torsmo. warning: this      
  121. #                                    takes a lot more resources than other    
  122. #                                    variables. I'd recommend coding wanted  
  123. #                                    behaviour in C and posting a patch :-).  
  124. #  execi             interval, shell Same as exec but with specific interval.
  125. #                    command         Interval can't be less than              
  126. #                                    update_interval in configuration.        
  127. #  fs_bar            (height), (fs)  Bar that shows how much space is used on
  128. #                                    a file system. height is the height in  
  129. #                                    pixels. fs is any file on that file      
  130. #                                    system.                                  
  131. #  fs_free           (fs)            Free space on a file system available    
  132. #                                    for users.                              
  133. #  fs_free_perc      (fs)            Free percentage of space on a file      
  134. #                                    system available for users.              
  135. #  fs_size           (fs)            File system size                        
  136. #  fs_used           (fs)            File system used space                  
  137. #  hr                (height)        Horizontal line, height is the height in
  138. #                                    pixels                                  
  139. #  i2c               (dev), type, n  I2C sensor from sysfs (Linux 2.6). dev  
  140. #                                    may be omitted if you have only one I2C  
  141. #                                    device. type is either in (or vol)      
  142. #                                    meaning voltage, fan meaning fan or temp
  143. #                                    meaning temperature. n is number of the  
  144. #                                    sensor. See /sys/bus/i2c/devices/ on    
  145. #                                    your local computer.                    
  146. #  kernel                            Kernel version                          
  147. #  loadavg           (1), (2), (3)   System load average, 1 is for past 1    
  148. #                                    minute, 2 for past 5 minutes and 3 for  
  149. #                                    past 15 minutes.                        
  150. #  machine                           Machine, i686 for example                
  151. #  mails                             Mail count in mail spool. You can use    
  152. #                                    program like fetchmail to get mails from
  153. #                                    some server using your favourite        
  154. #                                    protocol. See also new_mails.            
  155. #  mem                               Amount of memory in use                  
  156. #  membar            (height)        Bar that shows amount of memory in use  
  157. #  memmax                            Total amount of memory                  
  158. #  memperc                           Percentage of memory in use              
  159. #  new_mails                         Unread mail count in mail spool.        
  160. #  nodename                          Hostname                                
  161. #  outlinecolor      (color)         Change outline color                    
  162. #  pre_exec          shell command   Executes a shell command one time before
  163. #                                    torsmo displays anything and puts output
  164. #                                    as text.                                
  165. #  processes                         Total processes (sleeping and running)  
  166. #  running_processes                 Running processes (not sleeping),        
  167. #                                    requires Linux 2.6                      
  168. #  shadecolor        (color)         Change shading color                    
  169. #  stippled_hr       (space),        Stippled (dashed) horizontal line        
  170. #                    (height)        
  171. #  swapbar           (height)        Bar that shows amount of swap in use    
  172. #  swap                              Amount of swap in use                    
  173. #  swapmax                           Total amount of swap                    
  174. #  swapperc                          Percentage of swap in use                
  175. #  sysname                           System name, Linux for example          
  176. #  time              (format)        Local time, see man strftime to get more
  177. #                                    information about format                
  178. #  totaldown         net             Total download, overflows at 4 GB on    
  179. #                                    Linux with 32-bit arch and there doesn't
  180. #                                    seem to be a way to know how many times  
  181. #                                    it has already done that before torsmo  
  182. #                                    has started.                            
  183. #  totalup           net             Total upload, this one too, may overflow
  184. #  updates                           Number of updates (for debugging)        
  185. #  upspeed           net             Upload speed in kilobytes                
  186. #  upspeedf          net             Upload speed in kilobytes with one      
  187. #                                    decimal                                  
  188. #  uptime                            Uptime                                  
  189. #  uptime_short                      Uptime in a shorter format              
  190. #
  191. #  seti_prog                         Seti@home current progress
  192. #  seti_progbar      (height)        Seti@home current progress bar
  193. #  seti_credit                       Seti@hoome total user credit
  194.  
  195.  
  196. # variable is given either in format $variable or in ${variable}. Latter
  197. # allows characters right after the variable and must be used in network
  198. # stuff because of an argument
  199. #${font Dungeon:style=Bold:pixelsize=10}I can change the font as well
  200. #${font Verdana:size=10}as many times as I choose
  201. #${font Perry:size=10}Including UTF-8,
  202. # stuff after 'TEXT' will be formatted on screen
  203. #${font Grunge:size=12}${time %a  %b  %d}${alignr -25}${time %k:%M}
  204.  
  205. TEXT
  206. ${color #0077ff}$sysname $kernel $machine - $nodename
  207.  
  208. ${color #0077ff}Uptime:${color lightgrey} $uptime ${color #0077ff} Load:${color lightgrey} $loadavg
  209.  
  210. ${color #0077ff}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'} ${color lightgrey}${freq_dyn}Mhz
  211. ${color #0077ff}Usage:${color #0077ff} ${color lightgrey}${cpu}% ${color #0077ff}${cpubar}
  212. ${color #0077ff}${cpugraph 000000 0077ff}
  213. ${color #0077ff}Proces:${color lightgrey} $processes  ${color #0077ff}Run:${color lightgrey} $running_processes ${color #0077ff}CPU:${color lightgrey} ${i2c temp 2}C${color lightgrey} ${color #0077ff}MB:${color lightgrey} ${i2c temp 1}C
  214.  
  215. ${color #0077ff}RAM:${color lightgrey} $mem/$memmax - $memperc% ${alignr}${color #0077ff}${membar 5,110}
  216. ${color #0077ff}SWP:${color lightgrey} $swap/$swapmax - $swapperc% ${alignr}${color #0077ff}${swapbar 5,110}
  217.  
  218. ${color #0077ff}HD IO: ${color lightgrey}${diskio} ${alignr}${color #0077ff}Temperature: ${color lightgrey}${execi 10 /home/admin/.bin/hddconky}C
  219. ${color #0077ff}${diskiograph 000000 0077ff}
  220.  
  221. ${color #0077ff}Hard Disks:
  222. ${color #0077ff} Root ${color lightgrey}${fs_used /}/${fs_size /}${alignr}${color #0077ff}${fs_bar 5,120 /}
  223. ${color #0077ff} Home ${color lightgrey}${fs_used /home}/${fs_size /home}${alignr}${color #0077ff}${fs_bar 5,120 /home}
  224. ${color #0077ff} Data ${color lightgrey}${fs_used /media/data}/${fs_size /media/data}${alignr}${color #0077ff}${fs_bar 5,120 /media/data}
  225.  
  226. ${color #0077ff}CPU Usage         PID     CPU%   MEM%
  227. ${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
  228. ${color #0077ff} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
  229. ${color #0077ff} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
  230. ${color #0077ff}Mem Usage
  231. ${color lightgrey} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
  232. ${color #0077ff} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
  233. ${color #0077ff} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
  234.  
  235. ${color #0077ff}Network: ${color lightgrey}${addr eth0}
  236.  
  237. ${color #0077ff}Down:${color lightgrey} ${downspeed eth0} k/s $alignr${color #0077ff} Up:${color lightgrey} ${upspeed eth0} k/s
  238. ${color #0077ff}${downspeedgraph eth0 27,120 000000 0077ff 180} $alignr${color #0077ff}${upspeedgraph eth0 27,120 000000 0077ff 25}
  239. ${color lightgrey}${totaldown eth0}           $alignr${color lightgrey}${totalup eth0}
  240.  
  241. ${color #0077ff}Port(s)${alignr}#Connections
  242. ${color #0077ff}Inbound: ${color lightgrey}${tcp_portmon 1 32767 count}  ${color #0077ff}Outbound: ${color lightgrey}${tcp_portmon 32768 61000 count}${alignr}${color #0077ff}Total: ${color lightgrey}${tcp_portmon 1 65535 count}
  243.  
  244. ${color #0077ff}Inbound Connection ${alignr} Local Service/Port${color lightgrey}
  245.  ${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0}
  246.  ${tcp_portmon 1 32767 rhost 1} ${alignr} ${tcp_portmon 1 32767 lservice 1}
  247.  ${tcp_portmon 1 32767 rhost 2} ${alignr} ${tcp_portmon 1 32767 lservice 2}
  248.  ${tcp_portmon 1 32767 rhost 3} ${alignr} ${tcp_portmon 1 32767 lservice 3}
  249.  ${tcp_portmon 1 32767 rhost 4} ${alignr} ${tcp_portmon 1 32767 lservice 4}
  250.  ${tcp_portmon 1 32767 rhost 5} ${alignr} ${tcp_portmon 1 32767 lservice 5}
  251.  ${tcp_portmon 1 32767 rhost 6} ${alignr} ${tcp_portmon 1 32767 lservice 6}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement