conky配置

~/.config/openbox/.conkyrc

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